[Bf-python] buggy Object_GetSelected()
Jacek Popławski
jpopl at interia.pl
Mon May 19 22:22:10 CEST 2003
On Mon, May 19, 2003 at 10:07:23PM +0200, Jacek Popławski wrote:
> PyObject *M_Object_GetSelected (PyObject *self, PyObject *args)
my investigation shows, that:
PyList_Append (list, (PyObject*)blen_object);
is called for each object, when at least one is selected
(interesting thing: blender assumes, than Camera is always selected, and when I
remove it - script segfaults)
so problem must be here:
if (((G.scene->basact->flag & SELECT) &&
(G.scene->basact->lay & G.vd->lay)) &&
(base_iter != G.scene->basact))
this is _always_ true, for each object
question is why we are not using base_iter at all in that condition?
why we check SELECT in G.scene->basact->flag?
--
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
More information about the Bf-python
mailing list