Odd bug that instances were not properly rotated.

This commit is contained in:
Matt Guthaus
2018-10-24 16:12:27 -07:00
parent 7e2bef624e
commit dc73e8cb60
+6 -2
View File
@@ -147,8 +147,12 @@ class instance(geometry):
self.width = 0
self.height = 0
else:
self.width = round_to_grid(mod.width)
self.height = round_to_grid(mod.height)
if mirror in ["R90","R270"] or rotate in [90,270]:
self.width = round_to_grid(mod.height)
self.height = round_to_grid(mod.width)
else:
self.width = round_to_grid(mod.width)
self.height = round_to_grid(mod.height)
self.compute_boundary(offset,mirror,rotate)
debug.info(4, "creating instance: " + self.name)