playcanvas / editor

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

Updating a GLB asset with a different number of meshes creates a Container error #1165

Open daredevildave opened 5 months ago

daredevildave commented 5 months ago

Description

bug-test.zip

When updating a GLB asset if the new asset creates a different (larger?) number of render assets the container gets into an error state after importing, The render assets and template appear to work. The project will then run fine in the Editor Launch window but after publishing the asset loading will fail as the Container asset is not exported or won't load.

This project is in the error state: https://playcanvas.com/project/1228197/overview/glb-import-bug-test

I've attached two GLB resources to test with.

Steps to Reproduce

  1. Create empty project
  2. Upload one/model.glb from the attached zip file
  3. Navigate into the "model.glb" folder in the asset pane
  4. Drag two/model.glb" into the asset pane
  5. Observe error in the Container asset