On 14/07/2017 at 03:25, xxxxxxxx wrote:
Cinema 4D Version: 12 - 18
Platform: Windows ; Mac ;
Language(s) : C++ ;
from the GetVirtualObjects() of my generator, I need to detect if changes to the hierarchical structure of its children have occurred.
For example, the childrens' hierarchy looks like this:
And the user changes it like this:
After changing the hierarchy like shown above, none of the objects becomes dirty. And checking the generator's dirtyness with DIRTYFLAGS_CHILDREN also doesn't help.
GetAndCheckHierarchyClone() notices the change. But I don't always want a hierarchy clone to be created (since I'm only drawing a simplified representation of my generator's results in most cases). I just need to know if the hierarchy of my generator's children has changed. Is there any way to do that?
Thanks & greetings,
On 14/07/2017 at 05:37, xxxxxxxx wrote:
calling op- >GetHDirty(HDIRTYFLAGS_OBJECT_HIERARCHY) and comparing the result to the previous result does the trick. Totally didn't have HDirty on my radar anymore...