From 80ffbee6f77dd84a9032a41b4699214f8fe54a11 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 25 Oct 2006 13:33:08 +0000 Subject: [PATCH] was missing a return of len, so scn.objects.context was always returning 0 --- source/blender/python/api2_2x/Scene.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index effad817b34..3f2d8071c55 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1144,6 +1144,7 @@ static int SceneObSeq_len( BPy_SceneObSeq * self ) len++; } } + return len; } /*should never run this */ return 0;