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