Преглед на файлове

Merge pull request #18661 from Itee/patch-1

XRControllerModelFactory: Fix missing controllerModel usage
Mr.doob преди 5 години
родител
ревизия
672729dbd0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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.` );
 
 						} );