Browse Source

introduce _cachedTexture for Inspector display

Loïc Baumann 8 years ago
parent
commit
e8dde419dc
1 changed files with 7 additions and 0 deletions
  1. 7 0
      canvas2D/src/Engine/babylon.group2d.ts

+ 7 - 0
canvas2D/src/Engine/babylon.group2d.ts

@@ -1025,6 +1025,13 @@
             }
             }
         }
         }
 
 
+        public get _cachedTexture(): MapTexture {
+            if (this._renderableData) {
+                return this._renderableData._cacheTexture;
+            }
+            return null;
+        }
+
         private _trackedNode: Node;
         private _trackedNode: Node;
         protected _isRenderableGroup: boolean;
         protected _isRenderableGroup: boolean;
         protected _isCachedGroup: boolean;
         protected _isCachedGroup: boolean;