openfl / dragonbones

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

Color transition problem #15

Open flashup opened 5 years ago

flashup commented 5 years ago

Hello.

I had a problem with color animation on Flash and Android targets for Starling renderer - alpha just didn't change. But on HTML5 it works properly. I've discovered a mistake here:

_parseColorTransform(Reflect.field(rawData, DataParser.COLOR) || Reflect.field(rawData, DataParser.COLOR_TRANSFORM), frame.color);

https://github.com/openfl/dragonbones/blob/master/dragonBones/parsers/ObjectDataParser.hx#L1042

OR operator returns Bool as a result for flash and android and value as a result only for js. So we always get default color after parsing data and don't have animations for any color transformations.

Could you fix it in repo?

Thanks.