openfl / dragonbones

Runtime support for DragonBones skeletal animation
http://www.dragonbones.com
Other
41 stars 14 forks source link

Fix DCE #5

Closed freem-trg closed 7 years ago

freem-trg commented 7 years ago

Hello. I'm using this library with OpenFL + Starling. If i build it with openfl build html5 -final (which include -dce flag) the project will be broken. The problem is that dce remove constructors of all object created via BaseObject.borrowObject(...). I added @:keep metadata to all objects created with BaseObject.borrowObject(...). This fix the problem.