Просмотр исходного кода

OculusHandPointerModel: Replace prototype with super.

Mr.doob 4 лет назад
Родитель
Сommit
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();

粤ICP备19079148号