Pārlūkot izejas kodu

Fix missing controllerModel usage

The throwing error call directly motionController.assertUrl that will be undefined. Update to controllerModel.motionController.assertUrl.
Tristan VALCKE 5 gadi atpakaļ
vecāks
revīzija
fb84d84123
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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.` );
 
 						} );