On 27/04/2013 at 02:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
in my GetVirtualObjects function i check if the first child object (a spline) has changed. if so, some objects are generated along a spline.
now, when i move a point of the spline, the plugin always updates (which makes the whole thing quite slow)..
how can i get it so the plugin just starts after the movement of the point is finished and not every time? i guess it has something to do with the message MSG_POINTS_CHANGED. but how do i check this within GetVirtualObjects?
thanks for any input.
cheers,
Ello
edit: btw, here is how i check right now:
Bool dirty = op->CheckCache(hh) || op->IsDirty(DIRTYFLAGS_DATA);
dirty |= spline->IsDirty(DIRTYFLAGS_DATA) || spline->IsDirty(DIRTYFLAGS_MATRIX) || spline->IsDirty(DIRTYFLAGS_CACHE);
if (!dirty)
{
return op->GetCache(hh);
}