Skip to content

Ir 6535 resizable components #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@
"name": "HDVideo.mp4"
},
"public/avatars/Adam.gltf": {
"type": "avatar",
"type": "asset",
"tags": [
"Model"
],
Expand Down Expand Up @@ -687,21 +687,21 @@
"dependencies": [],
"name": "ffd667f5c4c57f61a582c47337035d704ae616104df6ee505b3c715455c4c11c.ktx2"
},
"public/avatars/Test Avaturn.glb": {
"type": "avatar",
"public/avatars/Test_Avaturn.glb": {
"type": "asset",
"tags": [
"Model"
],
"dependencies": [],
"name": "Test Avaturn.glb"
"name": "Test_Avaturn.glb"
},
"public/avatars/Test RPM.glb": {
"type": "avatar",
"public/avatars/Test_RPM.glb": {
"type": "asset",
"tags": [
"Model"
],
"dependencies": [],
"name": "Test RPM.glb"
"name": "Test_RPM.glb"
},
"public/scenes/animations-test.envmap.ktx2": {
"type": "asset",
Expand Down
4 changes: 2 additions & 2 deletions src/examples/Retargeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const RetargetingDND = () => {
const originalBoneName = useHookstate(() => bone.name)

const boneHelper = getComponent(
NameComponent.entitiesByName[boneName.value + '--helper'][0],
NameComponent.getEntitiesByName(boneName.value + '--helper')[0],
GroupComponent
)[0] as Mesh<ConeGeometry, MeshBasicMaterial>
const isBone = bone.type === 'Bone'
Expand All @@ -315,7 +315,7 @@ const RetargetingDND = () => {
boneHelper.name = name + '--helper'
const currentBoneName = boneName.value as MixamoBoneNames
boneName.set(name)
const helperEntity = NameComponent.entitiesByName[currentBoneName + '--helper'][0]
const helperEntity = NameComponent.getEntitiesByName(currentBoneName + '--helper')[0]
setComponent(helperEntity, NameComponent, name + '--helper')
}

Expand Down
Loading