Popov72 4 years ago
parent
commit
03c4bc3d30
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.ts

+ 4 - 4
src/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.ts

@@ -76,17 +76,17 @@ export abstract class ReflectionTextureBaseBlock extends NodeMaterialBlock {
         const scene = texture?.getScene() ?? Engine.LastCreatedScene;
         const scene = texture?.getScene() ?? Engine.LastCreatedScene;
 
 
         if (!texture && scene) {
         if (!texture && scene) {
-            /*scene.markAllMaterialsAsDirty(Constants.MATERIAL_TextureDirtyFlag, (mat) => {
+            scene.markAllMaterialsAsDirty(Constants.MATERIAL_TextureDirtyFlag, (mat) => {
                 return mat.hasTexture(this._texture!);
                 return mat.hasTexture(this._texture!);
-            });*/
+            });
         }
         }
 
 
         this._texture = texture;
         this._texture = texture;
 
 
         if (texture && scene) {
         if (texture && scene) {
-            /*scene.markAllMaterialsAsDirty(Constants.MATERIAL_TextureDirtyFlag, (mat) => {
+            scene.markAllMaterialsAsDirty(Constants.MATERIAL_TextureDirtyFlag, (mat) => {
                 return mat.hasTexture(texture);
                 return mat.hasTexture(texture);
-            });*/
+            });
         }
         }
     }
     }