Revision: 60755
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60755
Author:   campbellbarton
Date:     2013-10-14 19:53:28 +0000 (Mon, 14 Oct 2013)
Log Message:
-----------
fix [#37072] Crash on RMB click on bone's custom property

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c   2013-10-14 
19:37:15 UTC (rev 60754)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c   2013-10-14 
19:53:28 UTC (rev 60755)
@@ -4901,6 +4901,7 @@
 
 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(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 @@
 
 void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop)
 {
+       prop = rna_ensure_property(prop);
        if (prop->flag & PROP_IDPROPERTY) {
                rna_idproperty_free(ptr, prop->identifier);
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to