Hello everybody!
I tried one of my scripts with the new Blender 2.48 RC and also with a recent SVN build from Graphicall and got crashes. I’m on WinXP
EDIT: On Blender 2.48 RC1 the code below still works fine - but nevertheless i got occasional crashes in my script. So there may be something else here - but my impression is that it’s also related to properties. The code below gives the strage behaviour with the SVN build from Graphicall: SVN rev. 16945 (optimized build form Zebulon Oct-06-08)
After a few headaches i was finally able to track down the critical code - it’s obviously related to mesh properties.
Either i’m doing something wrong (read: the correct function usage has changed recently) or this is a bug:
Try this code with a default cube (mesh should be named “Cube”) in your scene:
from Blender import Mesh
print Mesh.Get()
Mesh.Get("Cube").properties["myproperty"] = 1
print Mesh.Get()
The first print statement indeed lists the mesh named “Cube”. Then i add a property to the mesh and print the names of all meshes again - and ooops - the mesh named “Cube” is gone. Instead there’s now a mesh named “p_level_group”. If you have the mesh button window open, Blender crashes immediately - otherwise it will crash as soon as you try to get the mesh related gui on screen.
Can somebody confirm - maybe also on other OS?
Thanks,
Michael
PS: Cannot check the bug tracker now since i’m at work and don’t know my password. So maybe this is already reported?