RNA
[blender.git] / source / blender / makesrna / intern / rna_scene.c
index 5e6743e56ff675ce3b6f17a5a12526d4408a6cc1..217a32ecd8480745307659151dc37e68cd2aa053 100644 (file)
 
 void *rna_Scene_objects_get(CollectionPropertyIterator *iter)
 {
+       ListBaseIterator *internal= iter->internal;
+
        /* we are actually iterating a Base list, so override get */
-       return ((Base*)iter->internal)->object;
+       return ((Base*)internal->link)->object;
 }
 
 static void rna_Scene_layer_set(PointerRNA *ptr, int index, int value)