On 13/05/2013 at 11:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r14
Platform:
Language(s) : C++ ;
---------
Hi, i have a problem regarding updating of my ObjectPlugin. It is updated whenever the camera is turned around (and maybe other times, too).
This is how i check now:
BaseObject *HANDRAIL::GetVirtualObjects(BaseObject *op, HierarchyHelp *hh)
{
BaseDocument *doc = op->GetDocument();
BaseContainer *bc = op->GetDataInstance();
BaseObject *spline = op->GetDown();
if (!spline || (spline->GetInfo() & OBJECT_ISSPLINE) != OBJECT_ISSPLINE) return NULL;
Bool dirty = op->CheckCache(hh) || op->IsDirty(DIRTYFLAGS_DATA);
if (mode!=Mpoints) dirty |= spline->IsDirty(DIRTYFLAGS_DATA) || spline->IsDirty(DIRTYFLAGS_MATRIX) || spline->IsDirty(DIRTYFLAGS_CACHE);
dirty = dirty || !op->CompareDependenceList();
if (!dirty)
{
return op->GetCache(hh);
}
....
and this is my message function:
Bool HANDRAIL::Message(GeListNode *node, LONG type, void *t_data)
{
if (type==MSG_DESCRIPTION_VALIDATE || type==MSG_FILTER)
{
BaseObject *op = (BaseObject* )node;
readParameters(op);
}
return TRUE;
}
can anyone tell me what i am doing wrong there?
cheers,
Ello