Преглед на файлове

fix: Replace "hasRenderTargetTextures" property by a getter

yuccai преди 7 години
родител
ревизия
07f52498df
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      src/Materials/babylon.material.ts

+ 5 - 3
src/Materials/babylon.material.ts

@@ -1,4 +1,4 @@
-module BABYLON {
+module BABYLON {
     /**
      * Manages the defines for the Material
      */
@@ -466,8 +466,10 @@
         /**
          * Gets a boolean indicating that current material needs to register RTT
          */
-        public hasRenderTargetTextures = false;
-
+        public get hasRenderTargetTextures(): boolean {
+          return false;
+        }
+        
         /**
          * Specifies if the material should be serialized
          */