From: Terry J. <tc...@ca...> - 2006-05-29 08:01:36
|
I spent quite a bit of time last night chasing down the following. This: cmd.load_cgo([SPHERE, 0.0, 0.0, 0.0, 1.0], 'a') puts a sphere on the screen as expected. But this: cmd.load_cgo((SPHERE, 0.0, 0.0, 0.0, 1.0), 'a') seemingly has no effect at all. I.e., if you pass a tuple instead of a list, your CGO is not displayed. It's an easy mistake to make (supposing it should be called a mistake), and it's not easy to figure out why your CGO does not appear. The reason seems to be an if(PyList_Size(pycgo) test on line 440 of layer2/ObjectCGO.c in the 0.99 release - at least that's as far as I went in tracing this. Is there any reason why a tuple cannot be used here too? Regards, Terry |