active property for collections for things like scene.objects.active
[blender.git] / source / blender / makesrna / intern / rna_access.c
index fac18ba7942692ea258dc9f464e0cf964c9a109c..f0aaceec4aa28882dd0a1af25fd45bd9a8a29452 100644 (file)
@@ -1756,6 +1756,12 @@ int RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, co
        }
 }
 
+PropertyRNA *RNA_property_collection_active(PropertyRNA *prop)
+{
+       CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop;
+       return cprop->active;
+}
+
 int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, RawArray *array)
 {
        CollectionPropertyIterator iter;