Commit 9274e145 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix backwards compatibility for dimensions list

parent 06b0368d
...@@ -93,6 +93,8 @@ def parse_build_dimensions(bdim): ...@@ -93,6 +93,8 @@ def parse_build_dimensions(bdim):
defaults = [200, 200, 100, 0, 0, 0, 0, 0, 0] defaults = [200, 200, 100, 0, 0, 0, 0, 0, 0]
bdl = filter(None, bdl) bdl = filter(None, bdl)
bdl_float = [float(value) if value else defaults[i] for i, value in enumerate(bdl)] bdl_float = [float(value) if value else defaults[i] for i, value in enumerate(bdl)]
if len(bdl_float) < len(defaults):
bdl_float += [defaults[i] for i in range(len(bdl_float), len(defaults))]
return bdl_float return bdl_float
class BuildDimensionsSetting(wxSetting): class BuildDimensionsSetting(wxSetting):
......
Markdown is supported
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