Generator doesn't receive updates if objects attached to a FieldList are updated (moved in space, or resized, or whatever)
def GetDirty(self, op, doc): if op is None or doc is None: raise RuntimeError("Failed to retrieves op or doc.") self.DIRTY_SELF = op.GetDirty(c4d.DIRTYFLAGS_MATRIX | c4d.DIRTYFLAGS_DATA | c4d.DIRTYFLAGS_DESCRIPTION) if op[PLUGIN_FIELD] is not None: # PLUGIN_FIELD is as FIELDLIST defined in a res file self.DIRTY_FIELDS = op[PLUGIN_FIELD].GetDirty(doc) return self.DIRTY_SELF + self.DIRTY_FIELDS
op[PLUGIN_FIELD].GetDirty(doc) is only changed when properties changed inside of the FieldList (like opacity, blend-mode and so on).
But it updates if I'll disable and enable generator in Object Manager
Should I iterate through FieldList object and through child GroupField sub-objects to check if they are also dirty?