Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
clean out userdata after initializing ecs data from gltfs
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomut1 committed Jun 27, 2024
1 parent ae4a3f7 commit 2972fde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/engine/src/scene/functions/loadGLTFModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,10 @@ export const generateEntityJsonFromObject = (rootEntity: Entity, obj: Object3D,
if (!hasComponent(objEntity, MeshComponent)) {
setComponent(objEntity, Object3DComponent, obj)
}

delete mesh.userData['componentJson']
delete mesh.userData['gltfExtensions']
delete mesh.userData['useVisible']

return eJson
}
Binary file modified packages/projects/default-project/assets/platform.glb
Binary file not shown.

0 comments on commit 2972fde

Please sign in to comment.