Fix T40520: Properties panel in properties region in 3D view does not go away.
Ignore '_RNA_UI' IDP...
This commit is contained in:
@@ -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):
|
||||
|
||||
|
Reference in New Issue
Block a user