diff --git a/src/webxr/XRControllerModelFactory.ts b/src/webxr/XRControllerModelFactory.ts index 229254c1..48ab9a7e 100644 --- a/src/webxr/XRControllerModelFactory.ts +++ b/src/webxr/XRControllerModelFactory.ts @@ -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({