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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user