09 Apr 2014, 15:39
Oops, that's a bug.
Currently, the Graph::Anchor node expects an ID to be set, otherwise initialization fails. Unfortunately, the debug error output for this case is broken as well, that's why you get the "(null)" error message.
Will be fixed in the next release; we removed the ID check so that it's possible to create an unnamed anchor node (which is probably what you want when generating nodes from code).
In the meantime, you can work around that problem by setting a unique ID for the newly created anchor nodes:
Hope that helps!
Currently, the Graph::Anchor node expects an ID to be set, otherwise initialization fails. Unfortunately, the debug error output for this case is broken as well, that's why you get the "(null)" error message.
Will be fixed in the next release; we removed the ID check so that it's possible to create an unnamed anchor node (which is probably what you want when generating nodes from code).
In the meantime, you can work around that problem by setting a unique ID for the newly created anchor nodes:
mAnchor = dynamic_cast<Graph::IAnchor*>(root->CreateNode("Anchor", newAnchorId));
AddChild(mAnchor->GetNodeInterface());
Hope that helps!