Bläddra i källkod

Merge pull request #18661 from Itee/patch-1

XRControllerModelFactory: Fix missing controllerModel usage
Mr.doob 5 år sedan
förälder
incheckning
672729dbd0
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      examples/jsm/webxr/XRControllerModelFactory.js

+ 2 - 2
examples/jsm/webxr/XRControllerModelFactory.js

@@ -139,7 +139,7 @@ function findNodes( motionController, scene ) {
 
 			} else {
 
-				console.warn( `Could not find touch dot, ${component.touchPointNodeName}, in touchpad component ${componentId}` );
+				console.warn( `Could not find touch dot, ${component.touchPointNodeName}, in touchpad component ${component.id}` );
 
 			}
 
@@ -281,7 +281,7 @@ var XRControllerModelFactory = ( function () {
 						null,
 						() => {
 
-							throw new Error( `Asset ${motionController.assetUrl} missing or malformed.` );
+							throw new Error( `Asset ${controllerModel.motionController.assetUrl} missing or malformed.` );
 
 						} );