fix [#28967] Attempting to add a new pose to the Pose Library causes Blender 2.60...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 21 Oct 2011 09:04:40 +0000 (09:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 21 Oct 2011 09:04:40 +0000 (09:04 +0000)
source/blender/makesrna/intern/rna_access.c

index 422ee6f31dc590a327e29f46e48b138a8dfba103..149497c85fb260a2e5503cb8bb200962a1ab3bd5 100644 (file)
@@ -2885,7 +2885,7 @@ int RNA_property_collection_type_get(PointerRNA *ptr, PropertyRNA *prop, Pointer
        BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
 
        *r_ptr= *ptr;
-       return ((r_ptr->type = prop->srna) ? 1:0);
+       return ((r_ptr->type = rna_ensure_property(prop)->srna) ? 1:0);
 }
 
 int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, RawArray *array)