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

AssetConversion.js - PIXI.Graphics instance is generated twice when applied as mask and results in build error #110

Open
kulabros opened this issue Nov 25, 2021 · 2 comments

Comments

@kulabros
Copy link

kulabros commented Nov 25, 2021

Hi there,

I'm using 2.0.0-rc11 assetConversion.js to migrate my assets... I've seen at some of the assets i was migrating, that if there is PIXI.Graphics instance, it is generated twice but only in some cases - there, where I'm using the instance as a mask! - the line with the instance, line with draw commands and also the line for setRenderable.. and the instance name is the same, so the build fail.. All I have to do, is remove the duplicity and the assets are fine.. So, I'm writing just to let you check and maybe fix this, it it's not only some special case of mine. Good luck, Michal

@kulabros kulabros changed the title AssetConversion.js - PIXI.Graphics instance is generated twice and results in error AssetConversion.js - PIXI.Graphics instance is generated twice when applied as mask and results in build error Nov 25, 2021
@andrewstart
Copy link
Collaborator

To make sure I'm understanding this properly, this is a case where the original export from Animate created the (probably undesirable) duplication and the asset conversion script didn't handle that?

@kulabros
Copy link
Author

Hi, it was the case, where was original old format exported from Animate and I convert the script using assetConversion. The original export was ok. After it is converted, in come containers, where are graphics instances, that are applied to another instance in the container, the line with the code of the graphics instance of the mask graphics object and it's related calls, are generated twice. I'l leave here an example, but tomorrow.

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

2 participants