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

Fix missing controllerModel usage

The throwing error call directly motionController.assertUrl that will be undefined. Update to controllerModel.motionController.assertUrl.
Tristan VALCKE 5 жил өмнө
parent
commit
fb84d84123

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

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