On 13/12/2014 at 21:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi folks,
I'm having a bit of an issue with this one (similar to a previous topic of mine). I'm not sure why, it was working up until recently. I don't know when it stopped working though.
Example - in my ObjectData's Execute() method, there's something not right about the passed "doc" variable. I'm testing for whether the doc is null, and it's not, but printing it's name gives nothing. Don't know if this is related to the issue in another topic of mine on trying to copy references etc, but in almost all places this is happening.
EXECUTIONRESULT MyObjectPlugin::Execute(BaseObject* op,BaseDocument* doc,BaseThread* bt,LONG priority,EXECUTIONFLAGS flags)
{
if(doc == NULL)
{
GePrint("doc is NULL");
}
else
{
GePrint("doc name is: " + doc->GetName());
}
// The "else" braces above run, and the
// print given is "doc name is:" - that's
// all. No document name. The same prints
// occur regardless of whether the document
// is a new scene, or previously saved one.
return EXECUTIONRESULT_OK;
}
As I mentioned before, it was working, but now it does the above. Any ideas on what might be causing this? Or any thoughts on what I could look into?
WP.