mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-06 05:36:36 +02:00
Fix default icon checking.
This commit is contained in:
parent
a554d28c5c
commit
a7e7a5fc94
1 changed files with 4 additions and 1 deletions
|
@ -550,7 +550,10 @@ class Icon:
|
||||||
|
|
||||||
def is_default(self) -> bool:
|
def is_default(self) -> bool:
|
||||||
"""Check whether first shape is default."""
|
"""Check whether first shape is default."""
|
||||||
return self.shape_specifications[0].is_default()
|
return (
|
||||||
|
len(self.shape_specifications) == 1
|
||||||
|
and self.shape_specifications[0].is_default()
|
||||||
|
)
|
||||||
|
|
||||||
def recolor(self, color: Color, white: Optional[Color] = None) -> None:
|
def recolor(self, color: Color, white: Optional[Color] = None) -> None:
|
||||||
"""Paint all shapes in the color."""
|
"""Paint all shapes in the color."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue