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
1 changed files with 6 additions and 2 deletions

View File

@ -146,6 +146,10 @@ class instance(geometry):
if OPTS.netlist_only: if OPTS.netlist_only:
self.width = 0 self.width = 0
self.height = 0 self.height = 0
else:
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: else:
self.width = round_to_grid(mod.width) self.width = round_to_grid(mod.width)
self.height = round_to_grid(mod.height) self.height = round_to_grid(mod.height)