extensions_framework: fix UI drawing logic
This commit is contained in:
@@ -115,7 +115,7 @@ class property_group_renderer(object):
|
||||
supercontext=None, property_group=None):
|
||||
"""Draw a column's worth of UI controls in this Panel"""
|
||||
if type(control_list_item) is list:
|
||||
do_split = False
|
||||
draw_row = False
|
||||
|
||||
found_percent = None
|
||||
for sp in control_list_item:
|
||||
@@ -123,13 +123,13 @@ class property_group_renderer(object):
|
||||
found_percent = sp
|
||||
elif type(sp) is list:
|
||||
for ssp in sp:
|
||||
do_split = do_split and self.check_visibility(ssp,
|
||||
draw_row = draw_row or self.check_visibility(ssp,
|
||||
property_group)
|
||||
else:
|
||||
do_split = do_split or self.check_visibility(sp,
|
||||
draw_row = draw_row or self.check_visibility(sp,
|
||||
property_group)
|
||||
|
||||
if do_split:
|
||||
if draw_row:
|
||||
if found_percent is not None:
|
||||
splt = layout.split(percentage=found_percent)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user