summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-02-27 18:18:04 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-02-27 18:18:04 +0800
commit223a010831f0d9dae4bd6d2e626a603a78eb0b1d (patch)
treef8e341156d652990b79f182df65c321549222e74 /gerber/gerber_statements.py
parent29c0d82bf53907030d11df9eb09471b716a0be2e (diff)
downloadgerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.tar.gz
gerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.tar.bz2
gerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.zip
Fix critical issue with rotatin points (when the angle is zero the y would be flipped). Render AM with outline to gerber
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r--gerber/gerber_statements.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py
index bb190f4..dcdd90d 100644
--- a/gerber/gerber_statements.py
+++ b/gerber/gerber_statements.py
@@ -168,6 +168,10 @@ class FSParamStmt(ParamStmt):
class MOParamStmt(ParamStmt):
""" MO - Gerber Mode (measurement units) Statement.
"""
+
+ @classmethod
+ def from_units(cls, units):
+ return cls(None, 'inch')
@classmethod
def from_dict(cls, stmt_dict):