THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/07/2004 at 12:53, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
If I use this object ( OBJECT_GENERATOR|OBJECT_INPUT) in a scene with OBJECTINPUT as the parent, internal C4D Array object as child, and a polygon object as the source for the Array which is animated dirty never returns true while the Array is being animated. If I set the flag to HCLONE_ASPOLY then it returns dirty as it plays. If I set the flag to HCLONE_ASSPLINE it only returns dirty if the Array input is a spline ( understandably ). The issue is that I am covering splines and polygon objects with the one GetAndCheckHierarchyClone call which DOES NOT CORRECTLT evaluate the dirty state. This seems like a bug.
BaseObject * OBJECTINPUT :: GetVirtualObjects ( PluginObject *op, HierarchyHelp *hh )
{
Bool dirty = FALSE;
if ( !op->GetDown() ) return NULL;
BaseObject *hierarchy_Clone = op->GetAndCheckHierarchyClone( hh, op->GetDown(), HCLONE_ASIS, &dirty;, NULL, TRUE );
if ( !hierarchy_Clone ) return NULL;
if ( dirty )
{ GePrint( "Dirty" ); blDelete( hierarchy_Clone ); } else GePrint( "Clean" );
BaseObject *object = BaseObject::Alloc( Onull );
op->Message( MSG_UPDATE );
return object;
}
Regards,
darf