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

Merge pull request #1737 from nockawa/devmsi

introduce _cachedTexture for Inspector display
Loïc Baumann 8 лет назад
Родитель
Сommit
a7e747b5fe
1 измененных файлов с 7 добавлено и 0 удалено
  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;
         protected _isRenderableGroup: boolean;
         protected _isCachedGroup: boolean;