Skip to content

Commit 10356b6

Browse files
author
pandamicro
committed
Fix armature skipped by RendererWebGL issue
1 parent 3c06801 commit 10356b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/cocostudio/armature/CCArmature.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
4141
animation: null,
4242
armatureData: null,
4343
batchNode: null,
44-
_textureAtlas: null,
4544
_parentBone: null,
4645
_boneDic: null,
4746
_topBoneList: null,
@@ -70,6 +69,8 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
7069
this._armatureTransformDirty = true;
7170
this._blendFunc = {src: cc.BLEND_SRC, dst: cc.BLEND_DST};
7271
name && ccs.Armature.prototype.init.call(this, name, parentBone);
72+
// Hack way to avoid RendererWebGL from skipping Armature
73+
this._texture = {};
7374
},
7475

7576
/**

0 commit comments

Comments
 (0)