Sfoglia il codice sorgente

Fix missing controllerModel usage

The throwing error call directly motionController.assertUrl that will be undefined. Update to controllerModel.motionController.assertUrl.
Tristan VALCKE 5 anni fa
parent
commit
fb84d84123
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/jsm/webxr/XRControllerModelFactory.js

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