Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-06 16:38:07 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-06 16:50:55 +0400
commit553264ff8e20484d0b91bb468f56aa1b7144f7aa (patch)
tree4993e3fa98b340810308ea97aab4e73bd1a16a41 /release/scripts/modules
parenta98c27f64e6040823d598130aff3589a7c1ca8e0 (diff)
Fix T40520: Properties panel in properties region in 3D view does not go away.
Ignore '_RNA_UI' IDP...
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/rna_prop_ui.py5
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):