Merge pull request #314 from lvlonggame/v3

fix bug: set sprite name
This commit is contained in:
XiaoYang 2015-04-28 12:00:24 +08:00
commit 8920491287
1 changed files with 2 additions and 1 deletions

View File

@ -479,7 +479,8 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
{
if(it->bones.size() > 0 || singleSprite)
{
this->setName(nodedata->id);
if(singleSprite)
root->setName(nodedata->id);
auto mesh = Mesh::create(nodedata->id, getMeshIndexData(it->subMeshId));
if(mesh)
{