Explorar o código

Merge pull request #18661 from Itee/patch-1

XRControllerModelFactory: Fix missing controllerModel usage
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
672729dbd0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/jsm/webxr/XRControllerModelFactory.js

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

@@ -139,7 +139,7 @@ function findNodes( motionController, scene ) {
 
 
 			} else {
 			} 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,
 						null,
 						() => {
 						() => {
 
 
-							throw new Error( `Asset ${motionController.assetUrl} missing or malformed.` );
+							throw new Error( `Asset ${controllerModel.motionController.assetUrl} missing or malformed.` );
 
 
 						} );
 						} );