Fix create Sprite with PolygonInfo issue

This commit is contained in:
pandamicro 2015-06-18 21:48:57 +08:00
parent 10a8adad53
commit e09ba8080f
2 changed files with 4 additions and 1 deletions

View File

@ -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");

View File

@ -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);
}
}
};