We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb6389 commit 8178ce8Copy full SHA for 8178ce8
extensions/scripting/lua-bindings/manual/spine/LuaSkeletonAnimation.cpp
@@ -45,7 +45,10 @@ LuaSkeletonAnimation* LuaSkeletonAnimation::createWithFile(const char* skeletonD
45
float scale)
46
{
47
LuaSkeletonAnimation* node = new LuaSkeletonAnimation();
48
- node->initWithJsonFile(skeletonDataFile, atlasFile, scale);
+ if (FileUtils::getInstance()->getFileExtension(skeletonDataFile) == ".json")
49
+ node->initWithJsonFile(skeletonDataFile, atlasFile, scale);
50
+ else
51
+ node->initWithBinaryFile(skeletonDataFile, atlasFile, scale);
52
node->autorelease();
53
return node;
54
}
0 commit comments