Don't render null items
This commit is contained in:
parent
af86c5c5a2
commit
7fda8eb9f5
1 changed files with 2 additions and 0 deletions
|
|
@ -132,6 +132,8 @@ class GerberContext(object):
|
|||
self._invert = invert
|
||||
|
||||
def render(self, primitive):
|
||||
if not primitive:
|
||||
return
|
||||
color = (self.color if primitive.level_polarity == 'dark'
|
||||
else self.background_color)
|
||||
if isinstance(primitive, Line):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue