animate icon indicating copy to clipboard operation
animate copied to clipboard

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

Open kulabros opened this issue 3 years ago • 2 comments

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 avatar Nov 25 '21 20:11 kulabros

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?

andrewstart avatar Nov 26 '21 01:11 andrewstart

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.

kulabros avatar Nov 26 '21 01:11 kulabros