Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saitonakamura committed Jan 13, 2023
1 parent 48a31de commit 4f9ce97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webxr/XRControllerModelFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export class XRControllerModel extends Object3D {
}

addScene(scene: Object3D): void {
if (!this.motionController) {
console.warn('scene tried to add, but no motion controller')
return
}

this.scene = scene
addAssetSceneToControllerModel(this, scene)
this.dispatchEvent({
Expand Down

0 comments on commit 4f9ce97

Please sign in to comment.