diff options
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 5180bdb59ce..e9c96d59eae 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -57,7 +57,6 @@ def rna_idprop_ui_prop_clear(item, prop): except: pass - def rna_idprop_context_value(context, context_member, property_type): space = context.space_data @@ -74,6 +73,10 @@ def rna_idprop_context_value(context, context_member, property_type): return rna_item, context_member +def rna_idprop_has_properties(rna_item): + keys = rna_item.keys() + nbr_props = len(keys) + return (nbr_props > 1) or (nbr_props and '_RNA_UI' not in keys) def draw(layout, context, context_member, property_type, use_edit=True): |