@@ -8,7 +8,6 @@ import { DndWrapper } from '@ir-engine/editor/src/components/dnd/DndWrapper'
88import { defineState , getMutableState , getState , none , useHookstate } from '@ir-engine/hyperflux'
99
1010import { EntityTreeComponent , getComponent , setComponent } from '@ir-engine/ecs'
11- import { MixamoBoneNames } from '@ir-engine/engine/src/avatar/AvatarBoneMatching'
1211import { VRMHumanBoneName } from '@ir-engine/engine/src/avatar/maps/VRMHumanBoneName'
1312import { AssetState } from '@ir-engine/engine/src/gltf/GLTFState'
1413import { ReferenceSpaceState , TransformComponent } from '@ir-engine/spatial'
@@ -22,7 +21,7 @@ console.log({ bones })
2221
2322const BoneMatchedState = defineState ( {
2423 name : 'BoneMatchedState' ,
25- initial : { } as Record < MixamoBoneNames , boolean >
24+ initial : { } as Record < string , boolean > //Record< MixamoBoneNames, boolean>
2625} )
2726
2827const overrideNames = [ ] as string [ ]
@@ -272,7 +271,7 @@ const RetargetingDND = () => {
272271 }
273272 } , [ assetFile ] )
274273
275- const nextUnmatchedBone = ( boneName ?: MixamoBoneNames ) => {
274+ const nextUnmatchedBone = ( boneName ?: string ) => {
276275 if ( boneName && boneState . value [ boneName ] ) return null
277276 const boneIndex = boneName ? bones . indexOf ( boneName ) : 0
278277 for ( let i = boneIndex + 1 ; i < bones . length ; i ++ ) {
@@ -300,13 +299,13 @@ const RetargetingDND = () => {
300299 const mouseOver = useHookstate ( false )
301300 const boneState = useHookstate ( getMutableState ( BoneMatchedState ) )
302301
303- const nextUnmatchedBoneName = nextUnmatchedBone ( boneName . value as MixamoBoneNames )
302+ const nextUnmatchedBoneName = nextUnmatchedBone ( boneName . value )
304303
305304 const setBoneName = ( name : string ) => {
306305 if ( ! isBone ) return
307306 bone . name = name
308307 boneHelper . name = name + '--helper'
309- const currentBoneName = boneName . value as MixamoBoneNames
308+ const currentBoneName = boneName . value
310309 boneName . set ( name )
311310 const helperEntity = UUIDComponent . getEntityByUUID (
312311 UUIDComponent . join ( {
0 commit comments