Fixes in bpython:

-- Alexander Szakaly reported and provided a patch for Material.c and NMesh.c to solve crash in material handling when there's no material.
-- Ton reported a crash with advancing a frame after creating a new script link.  I couldn't reproduce the crash, but added a check in BPY_do_pyscript to make sure the passed ID pointer is valid.

Thanks both.
This commit is contained in:
2004-11-07 15:05:35 +00:00
parent 8226f8a0b2
commit c6c86b8df0
3 changed files with 13 additions and 3 deletions

View File

@@ -25,7 +25,8 @@
*
* This is a new part of Blender.
*
* Contributor(s): Willian P. Germano, Michel Selten, Alex Mole
* Contributor(s): Willian P. Germano, Michel Selten, Alex Mole,
* Alexander Szakaly
*
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
@@ -2194,6 +2195,8 @@ Material **EXPP_newMaterialList_fromPyList( PyObject * list )
len = PySequence_Length( list );
if( len > 16 )
len = 16;
else if( len <= 0 )
return NULL;
matlist = EXPP_newMaterialList( len );