Skip to content

Commit 92e579d

Browse files
committed
Fix fill color getting set to true
1 parent 5f31606 commit 92e579d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webgl/material.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,9 @@ function material(p5, fn){
31173117
this._renderer.states.setValue('curAmbientColor', color._array);
31183118
this._renderer.states.setValue('_useNormalMaterial', false);
31193119
this._renderer.states.setValue('enableLighting', true);
3120-
this._renderer.states.setValue('fillColor', true);
3120+
if (!this._renderer.states.fillColor) {
3121+
this._renderer.states.setValue('fillColor', new Color([1, 1, 1]));
3122+
}
31213123
return this;
31223124
};
31233125

0 commit comments

Comments
 (0)