kopia lustrzana https://github.com/inkstitch/inkstitch
render single point elements (#701)
rodzic
1006476946
commit
c65b437cae
|
@ -121,7 +121,12 @@ class Fill(EmbroideryElement):
|
|||
@property
|
||||
@cache
|
||||
def paths(self):
|
||||
return self.flatten(self.parse_path())
|
||||
paths = self.flatten(self.parse_path())
|
||||
#ensure path length
|
||||
for i, path in enumerate(paths):
|
||||
if len(path) < 3:
|
||||
paths[i] = [(path[0][0], path[0][1]), (path[0][0]+1.0, path[0][1]), (path[0][0], path[0][1]+1.0)]
|
||||
return paths
|
||||
|
||||
@property
|
||||
@cache
|
||||
|
|
|
@ -26,7 +26,7 @@ def node_to_elements(node): # noqa: C901
|
|||
return [SatinColumn(node)]
|
||||
else:
|
||||
elements = []
|
||||
if element.get_style("fill", 'black') and not element.get_style('fill-opacity', 1) == "0":
|
||||
if element.get_style("fill", "black") and not element.get_style('fill-opacity', 1) == "0":
|
||||
if element.get_boolean_param("auto_fill", True):
|
||||
elements.append(AutoFill(node))
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue