Closed Blitzy closed 1 year ago
@KallynGowdy I reverted the changes to disposeObject3D
and disposeGroup
. Instead, when disposing of the glTF scene, we loop through all of the descendants and dispose of each object, checking for when an object is actually a Mesh
and calling disposeMesh
appropriately.
This PR adds support for the
color
tag on all meshes and materials of a bot loading a glTF model. Previously CasualOS would only apply thecolor
tag value to the first mesh child of glTF. This PR also fixes material texture registration and disposal for glTF models that have many materials and textures.Before:
After: