Commit 118835f8 authored by Thomas White's avatar Thomas White
Browse files

transfer-geom: Only write coffset for panels which have them

parent 20c51dc9
......@@ -83,7 +83,8 @@ with open(sys.argv[2]) as template:
if not panel:
print("No panel for line: %s\n" % line)
sys.exit(1)
out.write("%s/coffset = %s\n" % (panel, coffset[panel]))
if panel in coffset:
out.write("%s/coffset = %s\n" % (panel, coffset[panel]))
else:
out.write("%s\n" % line)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment