From 45507319635a0351d3c5010d75c32e40bf211d25 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 5 Apr 2014 14:36:18 +0200 Subject: RNA: optimization to avoid malloc for iterators. This mostly helps making Cycles scene synchronization a bit faster. --- source/blender/makesrna/intern/rna_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_group.c') diff --git a/source/blender/makesrna/intern/rna_group.c b/source/blender/makesrna/intern/rna_group.c index 0706d974562..2f9c12c713b 100644 --- a/source/blender/makesrna/intern/rna_group.c +++ b/source/blender/makesrna/intern/rna_group.c @@ -47,7 +47,7 @@ static PointerRNA rna_Group_objects_get(CollectionPropertyIterator *iter) { - ListBaseIterator *internal = iter->internal; + ListBaseIterator *internal = &iter->internal.listbase; /* we are actually iterating a GroupObject list, so override get */ return rna_pointer_inherit_refine(&iter->parent, &RNA_Object, ((GroupObject *)internal->link)->ob); -- cgit v1.2.3