Browse Source

XRHandOculusMeshModel: Fixed models path.

Mr.doob 5 years ago
parent
commit
334243b098
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/webxr/XRHandOculusMeshModel.js

+ 1 - 1
examples/jsm/webxr/XRHandOculusMeshModel.js

@@ -11,7 +11,7 @@ class XRHandOculusMeshModel {
 		var loader = new FBXLoader();
 		const low = options && options.model === "lowpoly" ? "_low" : "";
 
-		loader.load( `/examples/models/fbx/OculusHand_${handedness === "right" ? "R" : "L"}${low}.fbx`, object => {
+		loader.load( `../../models/fbx/OculusHand_${handedness === "right" ? "R" : "L"}${low}.fbx`, object => {
 
 			this.handModel.add( object );
 			// Hack because of the scale of the skinnedmesh