Merge pull request #124 from liuliang2004/Meshv3

Set the node name
This commit is contained in:
XiaoYang 2014-09-03 13:12:33 +08:00
commit 4e0c358a90
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
auto sprite = createSprite3DNode(nodedata,it,matrialdatas);
if (sprite)
{
sprite->setName(nodedata->id);
if(root)
{
root->addChild(sprite);
@ -399,6 +400,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
node= Node::create();
if(node)
{
node->setName(nodedata->id);
node->setAdditionalTransform(&nodedata->transform);
if(root)
{