Notifications
Clear all
[Closed] SDK – check topology's validity
Apr 17, 2015 9:40 am
Hi there,
I’m trying to make my first baby steps with the SDK (Modifier) and it starts to make fun at the moment! One thing I don’t understand is:
How do I calculate a mod’s data (variable) only when it doesn’t exist or something in the mesh (topology) has changed? Some kind of cache…
Thanks!
4 Replies
Apr 17, 2015 9:40 am
At the beginning of ModifyObject, check if your cache exists and is valid. In response to things like InputChanged or NotifyRefChanged, invalidate your cache.
Apr 17, 2015 9:40 am
Mhhh…
Shouldn’t there be something like “checkValidity(TOPOLOGY)” to check the modifier pipeline? Do I have to “listen” to the parameters of the node below the modifer?
Apr 17, 2015 9:40 am
You don’t have to listen for specific parameters. NotifyInputChanged sends you the partID mask which has changed.