Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color transition problem #15

Open
flashup opened this issue May 5, 2019 · 0 comments
Open

Color transition problem #15

flashup opened this issue May 5, 2019 · 0 comments

Comments

@flashup
Copy link

flashup commented May 5, 2019

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.

andrew-git added a commit to andrew-git/dragonbones that referenced this issue May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant