Sfoglia il codice sorgente

OculusHandPointerModel: Replace prototype with super.

Mr.doob 5 anni fa
parent
commit
9bbd837deb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/jsm/webxr/OculusHandPointerModel.js

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

@@ -258,7 +258,7 @@ class OculusHandPointerModel extends THREE.Object3D {
   }
 
   updateMatrixWorld(force) {
-    THREE.Object3D.prototype.updateMatrixWorld.call(this, force);
+    super.updateMatrixWorld( force );
     if (this.pointerGeometry) {
       this._updatePointer();
       this._updateRaycaster();

粤ICP备19079148号