2
0
Эх сурвалжийг харах

Merge pull request #18661 from Itee/patch-1

XRControllerModelFactory: Fix missing controllerModel usage
Mr.doob 5 жил өмнө
parent
commit
672729dbd0

+ 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.` );
 
 						} );