extensions_framework: fix UI drawing bug and some redundant code
This commit is contained in:
@@ -122,7 +122,7 @@ class property_group_renderer(object):
|
|||||||
if type(sp) is float:
|
if type(sp) is float:
|
||||||
found_percent = sp
|
found_percent = sp
|
||||||
elif type(sp) is list:
|
elif type(sp) is list:
|
||||||
for ssp in control_list_item:
|
for ssp in sp:
|
||||||
do_split = do_split and self.check_visibility(ssp,
|
do_split = do_split and self.check_visibility(ssp,
|
||||||
property_group)
|
property_group)
|
||||||
else:
|
else:
|
||||||
@@ -131,8 +131,7 @@ class property_group_renderer(object):
|
|||||||
|
|
||||||
if do_split:
|
if do_split:
|
||||||
if found_percent is not None:
|
if found_percent is not None:
|
||||||
fp = {'percentage': found_percent}
|
splt = layout.split(percentage=found_percent)
|
||||||
splt = layout.split(**fp)
|
|
||||||
else:
|
else:
|
||||||
splt = layout.row(True)
|
splt = layout.row(True)
|
||||||
for sp in [s for s in control_list_item if type(s) in \
|
for sp in [s for s in control_list_item if type(s) in \
|
||||||
|
|||||||
Reference in New Issue
Block a user