Explorar o código

fix: Replace "hasRenderTargetTextures" property by a getter

yuccai %!s(int64=7) %!d(string=hai) anos
pai
achega
07f52498df
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  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
          */