Parcourir la source

tiny improvement

David Catuhe il y a 7 ans
Parent
commit
7e09d1a00f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

@@ -315,7 +315,7 @@
          * @returns a Matrix
          */
         public getWorldMatrix(): Matrix {
-            if (this._currentRenderId !== this.getScene().getRenderId()) {
+            if (this._currentRenderId !== this._scene.getRenderId()) {
                 this.computeWorldMatrix();
             }
             return this._worldMatrix;