LumaPictures / maya-to-hydra

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd
Other
10 stars 3 forks source link

Fixing circular symbol dependency between hdview and hdmaya and enable unresolved symbol warnings #15

Closed sirpalee closed 5 years ago

sirpalee commented 6 years ago

@Szabolcs found this issue while compiling Maya-to-Hydra for windows. This issue was first introduced in : 9aadaf49b800367795e92b67f4404baf4b9005ff . The delegate registry calls clear resources when a new delegate is registered.

I'm thinking about installing callbacks when new delegates are registered. Clearing all the resources at the next render is the most accessible approach, but we could check which delegates are not created yet and append them to the list. For now, I'm going to clear all the resources so that @Szabolcs can pull in an upstream solution for their work quickly.

When new adapters are registered, the HdMayaSceneDelegate has to call populate again, so any new shape that is supported is going to have its adapter created.

sirpalee commented 6 years ago

Added --no-undefined to the linker flags and added a very rough feature to the delegate registry to handle the dependency. I'm going to look into a more complete solution in the near future.

sirpalee commented 5 years ago

The current solution is good enough.