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

Copy-paste ImageSkin duplicates Texture component as well #13

Open
b005t3r opened this issue Sep 2, 2013 · 0 comments
Open

Copy-paste ImageSkin duplicates Texture component as well #13

b005t3r opened this issue Sep 2, 2013 · 0 comments
Assignees
Labels

Comments

@b005t3r
Copy link
Member

b005t3r commented Sep 2, 2013

In the editor:

  • create Texture
  • set Texture's bitmapData to any bitmap
  • create ImageSkin
  • set ImageSkin's texture to Texture
  • copy & paste ImageSkin

Current behaviour: New ImageSkin instance is pasted, but its internal DisplayObject is never validated, so nothing is displayed. Texture instance is serialized and deserialized along with the ImageSkin instance (new Texture instance is created in effect). Copied Texture is never added to scene nor validated (by validateNow() call), so its internal texture never gets created. Copied ImageSkin instance relies on this texture when creating its internal DisplayObject.

Expected behaviour: Copied ImageSkin instance should use the same Texture instance as the original one does. No new Texture instance should be created.

Probably this problem does not only occur with ImageSkins and Textures, but with any objects copied & pasted, which reference other object, outside of the copied object hierarchy.

@ghost ghost assigned robsilv Sep 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants