-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Description
Reported in this forum thread. Loading this glTF in CesiumJS produces the following crash:
TypeError: Cannot read property 'parents' of undefined
TypeError: Cannot read property 'parents' of undefined
at createRuntimeNodes (http://localhost:8080/Source/Scene/Model.js:3649:33)
at createResources (http://localhost:8080/Source/Scene/Model.js:3805:9)
at Model.update (http://localhost:8080/Source/Scene/Model.js:4709:21)
at PrimitiveCollection.update (http://localhost:8080/Source/Scene/PrimitiveCollection.js:384:27)
at updateAndRenderPrimitives (http://localhost:8080/Source/Scene/Scene.js:2993:27)
at executeCommandsInViewport (http://localhost:8080/Source/Scene/Scene.js:2832:13)
at updateAndExecuteCommands (http://localhost:8080/Source/Scene/Scene.js:2640:13)
at render (http://localhost:8080/Source/Scene/Scene.js:3291:9)
at tryAndCatchError (http://localhost:8080/Source/Scene/Scene.js:3311:13)
at Scene.render (http://localhost:8080/Source/Scene/Scene.js:3382:13)
This model is a valid glTF according to the Khronos validator and displays correctly in ThreeJS.
The problem seems to be that this model doesn't have any skeletons defined (which is optional according to the spec). So when it attempts to map joint names here:
The returned mappedJointNames is an empty object, which causes it to push undefined nodes into skinnedNode.joints.
Reactions are currently unavailable