Explorar el Código

Fix missing controllerModel usage

The throwing error call directly motionController.assertUrl that will be undefined. Update to controllerModel.motionController.assertUrl.
Tristan VALCKE hace 5 años
padre
commit
fb84d84123
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/jsm/webxr/XRControllerModelFactory.js

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

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