On 30/08/2017 at 06:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I came across this phenomenon today. When parsing objects within the thread context of a SceneHook::Execute() the method GetBit(BIT_CONTROLOBJECT) always returns false.
I am parsing selected objects (and their children) as well as objects, which tags are selected (using doc->GetActiveObjects(selection) and doc->GetActiveTags(selection)).
As test, I was then using a Hierarchy derived class to parse through the document but that results in an instant error.
p:\c4d_perforce_work\release\16.0\modules\xpressocore\source\graphview\gv_world.cpp(1264) : CRITICAL: Stop
I tried both - with and without - a BaseThread for Hierarchy.Run(). The BaseThread I used was the parameter from SceneHook::Execute()
When I parse the (partial) document from outside the thread context of the scene hook the GetBit(BIT_CONTROLOBJECT) returns true for control objects. Also, quickly printing the control bit from the Python console also yields true.
Is this a known problem?
Thanks,
Martin