Hi!
The code below generates the following console output while failing:
However, achieving the same with XML does work.
Any ideas?
I found a similar issue with the SingleNodeTargets:
Debugging the Init() method of SingleNodeTarget told me that mNumberOfNodes was still set to zero.
The code below generates the following console output while failing:
1 2 | Graph::SingleResourceTarget::Init(): Need exactly 1 object Graph::PlaneSequenceGeometry::InitSelf(): Failed to init atlas resource target |
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 | Graph::INode* parameters = root->CreateNode( "FixedParameters" ); Graph::IPlaneSequenceGeometry* geometry = dynamic_cast <Graph::IPlaneSequenceGeometry*>(root->CreateNode( "PlaneSequenceGeometry" )); if (parameters != 0 && geometry != 0) { AddChild(parameters); parameters->AddChild(geometry->GetNodeInterface()); geometry->GetAtlasResourceTarget()->SetResourceId( "particles:atlas_particles" , 0); return true ; } else { Debug::Trace( "InitSelf(): Failed to create subnodes." ); return false ; } |
However, achieving the same with XML does work.
Any ideas?
I found a similar issue with the SingleNodeTargets:
1 2 3 4 5 6 | Graph::INode* node = GetCurrentNamespace()->FindNode(nodeIdToFind); mNodeTarget.SetNode(node, 0); if (!mNodeTarget.Init(tracker)) { return false ; } |
Debugging the Init() method of SingleNodeTarget told me that mNumberOfNodes was still set to zero.
1 2 3 4 5 | if ((mMinNumberOfNodes != 0) && (mNumberOfNodes == 0)) { Debug::Error( "Graph::SingleNodeTarget::Init(): Need exactly 1 node" ); return false ; } |