Skip to content

Commit 9c2d36e

Browse files
authored
fix: always create a material for ground, close #2642 (#2643)
1 parent 22e2dd5 commit 9c2d36e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/gl/src/layer/GroundPainter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,7 @@ class GroundPainter {
467467
}
468468

469469
_updateMaterial() {
470-
const materialConfig = this.getSymbol() && this.getSymbol().material;
471-
if (!materialConfig) {
472-
return;
473-
}
470+
const materialConfig = this.getSymbol() && this.getSymbol().material || {};
474471
const material = {};
475472
let hasTexture = false;
476473
const ground = this._layer.getGroundConfig();

0 commit comments

Comments
 (0)