Browse Source

tiny improvement

David Catuhe 7 years ago
parent
commit
7e09d1a00f
1 changed files with 1 additions and 1 deletions
  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;