Browse Source

Fixed Node::cloneInto() so that a node's tags are cloned too.

Darryl Gough 13 years ago
parent
commit
51c82f741e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      gameplay/src/Node.cpp

+ 4 - 0
gameplay/src/Node.cpp

@@ -949,6 +949,10 @@ void Node::cloneInto(Node* node, NodeCloneContext &context) const
     }
     node->_world = _world;
     node->_bounds = _bounds;
+    if (_tags)
+    {
+        node->_tags = new std::map<std::string, std::string>(_tags->begin(), _tags->end());
+    }
 }
 
 AudioSource* Node::getAudioSource() const