mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-28 17:57:11 +02:00
Issue #150: get rid of shape duplication.
This commit is contained in:
parent
0da966f170
commit
825eb34191
1 changed files with 10 additions and 9 deletions
|
@ -541,15 +541,16 @@ class Icon:
|
||||||
"""
|
"""
|
||||||
svg: Drawing = Drawing(str(file_name), (16, 16))
|
svg: Drawing = Drawing(str(file_name), (16, 16))
|
||||||
|
|
||||||
for shape_specification in self.shape_specifications:
|
if outline:
|
||||||
if color:
|
for shape_specification in self.shape_specifications:
|
||||||
shape_specification.color = color
|
if color:
|
||||||
shape_specification.draw(
|
shape_specification.color = color
|
||||||
svg,
|
shape_specification.draw(
|
||||||
np.array((8.0, 8.0)),
|
svg,
|
||||||
outline=outline,
|
np.array((8.0, 8.0)),
|
||||||
outline_opacity=outline_opacity,
|
outline=outline,
|
||||||
)
|
outline_opacity=outline_opacity,
|
||||||
|
)
|
||||||
|
|
||||||
for shape_specification in self.shape_specifications:
|
for shape_specification in self.shape_specifications:
|
||||||
if color:
|
if color:
|
||||||
|
|
Loading…
Add table
Reference in a new issue