This change released in 4.1.1 of the Editor allows us to use the same import logic the editor uses when a gltf file is drag-dropped into the scene from the asset manager.
This allows us to remove all of the (frankly hacky and hard to maintain) code that was written to subtly manipulate paths and metadata so that hosts would save and reload properly.
Testing done
Create a new (blank) project
Add a host from Open Source Hosts Tools
Press play, confirm that the host animates properly and looks at the camera
Save, and then File -> Reload Project
Confirm that the host is not missing textures
Press play again and confirm that the host still animates properly and looks at the camera
Additionally, press Run... and then Open in browser to ensure that textures/animations load properly when the project is run from the browser
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description
This change released in 4.1.1 of the Editor allows us to use the same import logic the editor uses when a gltf file is drag-dropped into the scene from the asset manager.
This allows us to remove all of the (frankly hacky and hard to maintain) code that was written to subtly manipulate paths and metadata so that hosts would save and reload properly.
Testing done
Open Source Hosts Tools
File -> Reload Project
Additionally, press
Run...
and thenOpen in browser
to ensure that textures/animations load properly when the project is run from the browserBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.