[Bf-python] [PATCH] Object.GetSelected() fixup

Jacek Popławski jpopl at interia.pl
Tue May 20 17:04:05 CEST 2003


It works for me, please apply.

-- 
Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net
-------------- next part --------------
diff -Naur blender/source/blender/python/api2_2x/Object.c blender-fixed/source/blender/python/api2_2x/Object.c
--- blender/source/blender/python/api2_2x/Object.c	2003-05-18 01:17:10.000000000 +0200
+++ blender-fixed/source/blender/python/api2_2x/Object.c	2003-05-20 17:00:04.000000000 +0200
@@ -273,8 +273,10 @@
     base_iter = G.scene->base.first;
     while (base_iter)
     {
-        if (((G.scene->basact->flag & SELECT) &&
-             (G.scene->basact->lay & G.vd->lay)) &&
+	// I think we should use base_iter instead G.scene->basact here, my
+	// tests shows that it works (jp)
+	if (((base_iter->flag & SELECT) &&
+             (base_iter->lay & G.vd->lay)) &&
             (base_iter != G.scene->basact))
         {
             blen_object = (C_Object*)PyObject_NEW (C_Object, &object_type); 


More information about the Bf-python mailing list