diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-14 23:53:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-14 23:53:28 +0400 |
commit | 46b807b2318ee03f7a261c6f53d2ad965bf58028 (patch) | |
tree | bb2ac51298b62f9be4a1801f42289e6be2ff66ba /source/blender/makesrna/intern/rna_access.c | |
parent | c0d204b91e348a0ff1f97164a0697d38aff72d4c (diff) |
fix [#37072] Crash on RMB click on bone's custom property
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 341ba02fd47..9a8533ec6a1 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -4901,6 +4901,7 @@ int RNA_collection_length(PointerRNA *ptr, const char *name) bool RNA_property_is_set_ex(PointerRNA *ptr, PropertyRNA *prop, bool use_ghost) { + prop = rna_ensure_property(prop); if (prop->flag & PROP_IDPROPERTY) { IDProperty *idprop = rna_idproperty_find(ptr, prop->identifier); return ((idprop != NULL) && (use_ghost == false || !(idprop->flag & IDP_FLAG_GHOST))); @@ -4912,6 +4913,7 @@ bool RNA_property_is_set_ex(PointerRNA *ptr, PropertyRNA *prop, bool use_ghost) bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop) { + prop = rna_ensure_property(prop); if (prop->flag & PROP_IDPROPERTY) { IDProperty *idprop = rna_idproperty_find(ptr, prop->identifier); return ((idprop != NULL) && !(idprop->flag & IDP_FLAG_GHOST)); @@ -4923,6 +4925,7 @@ bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop) void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop) { + prop = rna_ensure_property(prop); if (prop->flag & PROP_IDPROPERTY) { rna_idproperty_free(ptr, prop->identifier); } |