THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2010 at 08:04, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
Hi,
I'm in the process of updating my plugins for R12, and it's mostly going well so far.
Except, when i call DrawViews from within MouseInput:
Bool PolyPaintTool::MouseInput(BaseDocument *doc, BaseContainer &data, BaseDraw *bd,EditorWindow *win, const BaseContainer &msg){
.
.
while(win->MouseDrag(&dx,&dy,&device)==MOUSEDRAG_CONTINUE){
.
// manipulate active object's poly points
.
DrawViews(DRAWFLAGS_ONLY_ACTIVE_VIEW
|DRAWFLAGS_NO_THREAD
|DRAWFLAGS_NO_ANIMATION);
} // END DRAG LOOP
.
.
} END MouseInput
Problem is that the Viewport is not updated anymore, which was the case with previous SDK versions.
My Toolplugin manipulates polygon points of the active Object, but now you cannot see the change, and neither my helper lines/Points (Line3D/Handle..) until after you have finished dragging the mouse.. So it seems that my Draw(..) is not called at all..
Does this have to do with the openGL changes maybe ?
Do i maybe have to set the Matrix here inside MouseInput, before calling DrawViews, as well ?
I did that in my Draw(..) funtion already, and when when I'm not dragging or clicking with the LMB, my handles and lines are drawn fine.
thx,
Daniel