diff --git a/type_templates/glb.js b/type_templates/glb.js index a829ed6..4afb6c9 100644 --- a/type_templates/glb.js +++ b/type_templates/glb.js @@ -271,7 +271,7 @@ export default e => { const {instanceId} = app; const localPlayer = useLocalPlayer(); - const rideBone = sitSpec.sitBone ? rideMesh.skeleton.bones.find(bone => bone.name === sitSpec.sitBone) : null; + const rideBone = sitSpec.sitBone ? rideMesh.skeleton.bones.find(bone => bone.name === sitSpec.sitBone).name : null; const sitAction = { type: 'sit', time: 0, @@ -330,4 +330,4 @@ export const contentId = ${this.contentId}; export const name = ${this.name}; export const description = ${this.description}; export const type = 'glb'; -export const components = ${this.components}; \ No newline at end of file +export const components = ${this.components};