Tag Changed in parent
-
On 20/09/2016 at 12:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;---------
Hello.I scan the hierarchy and I store the dirty bits for each object, so I can detect any changes.
When a tag is changed, the DIRTYFLAGS_CACHE and DIRTYFLAGS_DATA counters of that objects are updated.The children remain the same (their dirty bits don't change) even though some tags, such as Compositing, affect the children as well.
Is there anyway to detect these changes in the children as well or do I simply have to consider the children updated any time the parent's bits have changed ?
Thank you for your time.
-
On 21/09/2016 at 03:15, xxxxxxxx wrote:
Hi,
the point here is, that the Compositing tag is basically just a BaseContainer, which contents are used by and provide hints to the rendering pipeline. The Compositing tag doesn't change any of the children of its host object and thus there are no changes in the dirty flags.
While I haven't done any further testing, I'd expect for example a Dynamics tag with "Inherit Tag" set to "Apply Tag to Children" would very well change the dirty counts of child objects.