Browse Source

Fix for cloning of models and materials.

sgrenier 13 years ago
parent
commit
66981ce830
1 changed files with 2 additions and 4 deletions
  1. 2 4
      gameplay/src/RenderState.cpp

+ 2 - 4
gameplay/src/RenderState.cpp

@@ -345,14 +345,12 @@ void RenderState::cloneInto(RenderState* renderState, NodeCloneContext& context)
         renderState->_parameters.push_back(paramCopy);
         renderState->_parameters.push_back(paramCopy);
     }
     }
     renderState->_parent = _parent;
     renderState->_parent = _parent;
-    if (Node* node = context.findClonedNode(_nodeBinding))
-    {
-        renderState->setNodeBinding(node);
-    }
     if (_state)
     if (_state)
     {
     {
         renderState->setStateBlock(_state);
         renderState->setStateBlock(_state);
     }
     }
+
+    // Note that _nodeBinding is not set here, it should be set by the caller.
 }
 }
 
 
 RenderState::StateBlock::StateBlock()
 RenderState::StateBlock::StateBlock()