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

@@ -997,7 +997,11 @@ int BPY_has_onload_script( void )
void BPY_do_pyscript( ID * id, short event )
{
ScriptLink *scriptlink = ID_getScriptlink( id );
ScriptLink *scriptlink;
if( !id ) return;
scriptlink = ID_getScriptlink( id );
if( scriptlink && scriptlink->totscript ) {
PyObject *dict;