diff options
author | Doug Hammond <doughammond@hamsterfight.co.uk> | 2010-11-23 03:23:57 +0300 |
---|---|---|
committer | Doug Hammond <doughammond@hamsterfight.co.uk> | 2010-11-23 03:23:57 +0300 |
commit | 225be0cf30940cf840bbac0f19b10efadecf94d4 (patch) | |
tree | fa9d39926e0d967d62c922dcc35d2beb3ff20f38 /release | |
parent | 8a4b42bee75707a9b7856124b4d9614874e50d7c (diff) |
extensions_framework: fix UI drawing logic
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/extensions_framework/ui.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/extensions_framework/ui.py b/release/scripts/modules/extensions_framework/ui.py index bd6db5442b2..443d6823c42 100644 --- a/release/scripts/modules/extensions_framework/ui.py +++ b/release/scripts/modules/extensions_framework/ui.py @@ -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: |