Raanan Weber пре 5 година
родитељ
комит
56175cf519
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Cameras/XR/motionController/webXRProfiledMotionController.ts

+ 2 - 2
src/Cameras/XR/motionController/webXRProfiledMotionController.ts

@@ -40,7 +40,7 @@ export class WebXRProfiledMotionController extends WebXRAbstractMotionController
     }
     private _touchDots: { [visKey: string]: AbstractMesh } = {};
 
-    protected _processLoadedModel(meshes: AbstractMesh[]): void {
+    protected _processLoadedModel(_meshes: AbstractMesh[]): void {
         this.getComponentTypes().forEach((type) => {
             const componentInLayout = this.layout.components[type];
             this._buttonMeshMapping[type] = {
@@ -79,7 +79,7 @@ export class WebXRProfiledMotionController extends WebXRAbstractMotionController
     }
 
     protected _setRootMesh(meshes: AbstractMesh[]): void {
-        this.rootMesh = new Mesh(this.profileId + " " + this.handness, this.scene);
+        this.rootMesh = new Mesh(this.profileId + "-" + this.handness, this.scene);
         this.rootMesh.isPickable = false;
         let rootMesh;
         // Find the root node in the loaded glTF scene, and attach it as a child of 'parentMesh'