playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
155 stars 28 forks source link

When an element changes type, it is still referencing the previous type's asset #567

Open yaustar opened 3 years ago

yaustar commented 3 years ago

Create an entity with an element component Change type to Image Assign a texture or sprite to it Change type to Text Assign a font to it Notice in the assets panel that the image asset is still shown as being referenced by the element

https://user-images.githubusercontent.com/16639049/136229258-f7e66505-447e-4a6e-8b55-119a4c03a495.mp4

When fixing, please test against this bug: https://forum.playcanvas.com/t/critical-editor-bug-assets-are-getting-de-referenced/21366

albertvanveen commented 8 months ago

Maybe the forum topic below is related to this issue as well.

https://forum.playcanvas.com/t/bug-image-slot-missing-in-element-section