THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/09/2009 at 08:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
in the GetVirtualObject-method i create a PolgonObject with some values.
If i change the values, the viewport doesn't refresh. I have to click somewhere in the interface and then it refreshs.
I tried it with something like this.
> \> op->Message(MSG_UPDATE);//and MSG_CHANGE \> EventAdd(EVENT_FORCEREDRAW); \>
I also tried
> DrawViews(DA_ONLY_ACTIVE_VIEW|DA_NO_THREAD|DA_NO_ANIMATION); //DrawViews(DA_NO_THREAD|DA_FORCEFULLREDRAW);
I even overwrote the Message-method of the GeneratorObject without success.
If i catch the MSG_GETCUSTOMICON-message in the Message-method and call EventAdd(EVENT_FORCEREDRAW); there, it works. But i don't like this dirty hack and i don't want to refresh everytime.
Anybody an idea what i could try else?
Thanks!
cheers,
Oli