forked from bartvdbraak/blender
bugfix (good for 2.47) - 2 cases of returning Py_None without increfing it. this can crash blender.
This commit is contained in:
parent
3f2cb6e878
commit
29668ba2d0
@ -942,7 +942,7 @@ PyObject* KX_GameObject::PyEndObject(PyObject* self)
|
||||
KX_Scene *scene = PHY_GetActiveScene();
|
||||
scene->DelayedRemoveObject(this);
|
||||
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
|
||||
}
|
||||
|
||||
|
@ -238,5 +238,5 @@ KX_PYMETHODDEF_DOC(KX_MeshProxy, reinstancePhysicsMesh,
|
||||
"Reinstance the physics mesh.")
|
||||
{
|
||||
//this needs to be reviewed, it is dependend on Sumo/Solid. Who is using this ?
|
||||
return Py_None;//(KX_ReInstanceShapeFromMesh(m_meshobj)) ? Py_RETURN_TRUE : Py_RETURN_FALSE;
|
||||
Py_RETURN_NONE;//(KX_ReInstanceShapeFromMesh(m_meshobj)) ? Py_RETURN_TRUE : Py_RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user