Răsfoiți Sursa

OculusHandPointerModel: Replace prototype with super.

Mr.doob 4 ani în urmă
părinte
comite
9bbd837deb
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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();