mirror of https://github.com/axmolengine/axmol.git
commit
4e0c358a90
|
@ -385,6 +385,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
|
||||||
auto sprite = createSprite3DNode(nodedata,it,matrialdatas);
|
auto sprite = createSprite3DNode(nodedata,it,matrialdatas);
|
||||||
if (sprite)
|
if (sprite)
|
||||||
{
|
{
|
||||||
|
sprite->setName(nodedata->id);
|
||||||
if(root)
|
if(root)
|
||||||
{
|
{
|
||||||
root->addChild(sprite);
|
root->addChild(sprite);
|
||||||
|
@ -399,6 +400,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
|
||||||
node= Node::create();
|
node= Node::create();
|
||||||
if(node)
|
if(node)
|
||||||
{
|
{
|
||||||
|
node->setName(nodedata->id);
|
||||||
node->setAdditionalTransform(&nodedata->transform);
|
node->setAdditionalTransform(&nodedata->transform);
|
||||||
if(root)
|
if(root)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue