Преглед изворни кода

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
          */