浏览代码

Ground color setter missed underscore

Tero 7 年之前
父节点
当前提交
b23a84e983
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      proceduralTexturesLibrary/src/grass/babylon.grassProceduralTexture.ts

+ 2 - 2
proceduralTexturesLibrary/src/grass/babylon.grassProceduralTexture.ts

@@ -38,8 +38,8 @@ module BABYLON {
         }
         }
 
 
         public set groundColor(value: Color3) {
         public set groundColor(value: Color3) {
-            this.groundColor = value;
+            this._groundColor = value;
             this.updateShaderUniforms();
             this.updateShaderUniforms();
         }
         }
     }
     }
-}
+}