On 24/01/2017 at 04:47, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
I was trying to support Render Region in my render engine, but for some reason, I was getting vps->thread->TestBreak() as true inside my VideoPostData::Execute(...). After a lot of investigation, I found that the document I get in vps->doc is the same as in GetActiveDocument(). The problem here is that during my render engine initialization, I have to set to false the Linear Workflow parameter using:
vps->doc->SetParameter(DOCUMENT_LINEARWORKFLOW, FALSE, DESCFLAGS_SET_0);
because it would cause the texture baking to create washed out images.
Removing the above line, vps->thread stops breaking.
What does this line do that causes thread break and how can I overpass it ?
I have noticed that EventAdd(EVENT_FORCEREDRAW); also causes the thread to break.
Could you please help me understand it or give me a link to any manual ?
I have checked BaseThread manual, but I couldn't find any reference to this.
Thank you very much for your time !