THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2003 at 08:51, xxxxxxxx wrote:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
I am evaluating an in-exclude list in my Draw function in my object plugin but encounter a problem. I get the objects correctly but my draw function does not update correctly when I move the objects of the in-exclude list. I most of the time need to rotate the view to let my draw function update. Here is a snipped of code:
inex = (InExcludeData* )data->GetCustomDataType(INFORM_PLACE_1, CUSTOMDATATYPE_INEXCLUDE_LIST);
if(inex && inex->GetObjectCount()!=0)
itable = inex->BuildInclusionTable(doc,0);
xcnt = itable->GetObjectCount();
BaseObject* temp = (BaseObject* )itable->GetObject(n); if(!temp) continue;
PolygonObject *active = (PolygonObject* )GetDeformedObject(ToPoly(temp),doc);
//NOW I AM DRAWING STUFF
Any idea what might help?
On 05/11/2003 at 08:53, xxxxxxxx wrote:
addition: I am drawing stuff that need the objects of course ;o) For example I am drawing a polygon or an edge...
On 11/11/2003 at 16:14, xxxxxxxx wrote:
I'm not sure I understand the problem. Do you get the right object pointers from the InExclude-list, but it still somehow interferes with your drawing?
On 11/11/2003 at 16:32, xxxxxxxx wrote:
yep, the object pointers are correct but the drawing is not updated correctly. When I for example put an object under my object plugin, then getvirtualobjects is called and everything is recalculated. I assume that my draw function is then called too?! (if not that seems to be the problem but afai can see it is called)
But the editor view does not update the view according to my drawing operations until I manually rotate, pan or zoom the editor view. Only then everything is (re)drawn.