Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-06 20:07:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-06 20:07:05 +0400
commit1f90b4299982c3d6e7a8e839bf035b717b9a58d9 (patch)
treee3e2fa08792cb5b68194691233142731a108db48
parentb87161811621c38961bd14d2cf04d84f407a64bd (diff)
fix [#27071] Random crashes when altering a mesh vertex vector in BGE
thanks to Chris Holland (topher77) for supplying the fix.
-rw-r--r--source/gameengine/Ketsji/KX_VertexProxy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_VertexProxy.cpp b/source/gameengine/Ketsji/KX_VertexProxy.cpp
index 5589d35f44a..e92351ad110 100644
--- a/source/gameengine/Ketsji/KX_VertexProxy.cpp
+++ b/source/gameengine/Ketsji/KX_VertexProxy.cpp
@@ -436,10 +436,14 @@ KX_VertexProxy::KX_VertexProxy(KX_MeshProxy*mesh, RAS_TexVert* vertex)
: m_vertex(vertex),
m_mesh(mesh)
{
+ /* see bug [#27071] */
+ Py_INCREF(m_mesh->GetProxy());
}
KX_VertexProxy::~KX_VertexProxy()
{
+ /* see bug [#27071] */
+ Py_DECREF(m_mesh->GetProxy());
}