cocostudio 动画加载

现在在做项目引擎的升级,从3.0升到4.0,以前用cocostudio编辑的动画,加载到panel上显示,在4.0中运行,程序直接挂掉,并且报 QuadCommand: resizing index size from [-1] to [2560]。我的代码是:
local tArm_path = “test_tarm”
ccs.ArmatureDataManager:getInstance():addArmatureFileInfo(“test/armature/test_tarm/test_tarm.ExportJson”)

if self.mArmature ~= nil then
	self.mArmature:removeFromParent()
	self.mArmature = nil
end
self.mArmature = ccs.Armature:create(tArm_path)

if self.mArmature ~= nil then
	local tScale = g_visibleSize.width / 960
	self.mArmature:setScale(tScale, 1)
	self.mPanel:addChild(self.mArmature)

	local tsize = self.mPanel:getCustomSize()

	self.mArmature:setPosition(cc.p(tsize.width/2 , tsize.height/2))
	self.mArmature:getAnimation():playWithIndex(0)
end

报错的貌似是这句,self.mPanel:addChild(self.mArmature);不知道为什么

非常感谢,用你的方法,可以了:slightly_smiling: