mirror of https://github.com/axmolengine/axmol.git
Fix create Sprite with PolygonInfo issue
This commit is contained in:
parent
10a8adad53
commit
e09ba8080f
|
@ -138,5 +138,5 @@ if (jsb.ParticleSystem3D) {
|
|||
require('script/3d/jsb_cocos2d_3d_ext.js');
|
||||
}
|
||||
|
||||
if(jsb.Physics3DObject)
|
||||
if (jsb.Physics3DObject)
|
||||
require("script/physics3d/jsb_physics3d.js");
|
||||
|
|
|
@ -97,6 +97,9 @@ _p._ctor = function(fileName, rect) {
|
|||
} else if (fileName instanceof cc.SpriteFrame) {
|
||||
//init with a sprite frame
|
||||
this.initWithSpriteFrame(fileName);
|
||||
} else if (fileName instanceof jsb.PolygonInfo) {
|
||||
//init with a polygon info
|
||||
this.initWithPolygon(fileName);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue