Преглед изворни кода

OculusHandPointerModel: Replace prototype with super.

Mr.doob пре 4 година
родитељ
комит
9bbd837deb
1 измењених фајлова са 1 додато и 1 уклоњено
  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();