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

Fix wrong code generated for ReflectionBlock

Popov72 пре 4 година
родитељ
комит
cad360a549
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Materials/Node/Blocks/PBR/reflectionBlock.ts

+ 1 - 1
src/Materials/Node/Blocks/PBR/reflectionBlock.ts

@@ -428,7 +428,7 @@ export class ReflectionBlock extends ReflectionTextureBaseBlock {
         let codeString: string = super._dumpPropertiesCode();
 
         if (this.texture) {
-            codeString += `${this._codeVariableName}.texture.gammaSpace = ${this.texture.gammaSpace});\r\n`;
+            codeString += `${this._codeVariableName}.texture.gammaSpace = ${this.texture.gammaSpace};\r\n`;
         }
         codeString += `${this._codeVariableName}.useSphericalHarmonics = ${this.useSphericalHarmonics};\r\n`;
         codeString += `${this._codeVariableName}.forceIrradianceInFragment = ${this.forceIrradianceInFragment};\r\n`;