dragonbones icon indicating copy to clipboard operation
dragonbones copied to clipboard

Color transition problem

Open flashup opened this issue 5 years ago • 0 comments

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.

flashup avatar May 05 '19 19:05 flashup