mirror of https://github.com/axmolengine/axmol.git
commit
7f1d48978f
|
@ -58,6 +58,8 @@ bool Animation3D::initWithFile(const std::string& filename, const std::string& a
|
|||
Animation3DData animationdata;
|
||||
if (bundle->load(fullPath) && bundle->loadAnimationData(animationName, &animationdata) && init(animationdata))
|
||||
{
|
||||
std::string key = fullPath + "#" + animationName;
|
||||
Animation3DCache::getInstance()->addAnimation(key, this);
|
||||
Bundle3D::destroyBundle(bundle);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -573,7 +573,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
|
|||
}
|
||||
for(const auto& it : nodedata->children)
|
||||
{
|
||||
createNode(it,node, matrialdatas, singleSprite);
|
||||
createNode(it,node, matrialdatas, nodedata->children.size() == 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue