[Bf-blender-cvs] [064ef3f] master: Fix T40182: Crash when using KX_GameObject.rayCast/rayCastTo().
Mitchell Stokes
noreply at git.blender.org
Wed May 14 22:35:46 CEST 2014
Commit: 064ef3f00f286a5bb4b17c83cc8246c0ef0b123d
Author: Mitchell Stokes
Date: Tue May 13 22:26:03 2014 -0700
https://developer.blender.org/rB064ef3f00f286a5bb4b17c83cc8246c0ef0b123d
Fix T40182: Crash when using KX_GameObject.rayCast/rayCastTo().
Missed another parent->release().
===================================================================
M source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index 9ea7698..9e8e58e 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -3253,8 +3253,6 @@ KX_PYMETHODDEF_DOC(KX_GameObject, rayCastTo,
KX_GameObject *parent = GetParent();
if (!spc && parent)
spc = parent->GetPhysicsController();
- if (parent)
- parent->Release();
m_pHitObject = NULL;
if (propName)
@@ -3399,8 +3397,6 @@ KX_PYMETHODDEF_DOC(KX_GameObject, rayCast,
KX_GameObject *parent = GetParent();
if (!spc && parent)
spc = parent->GetPhysicsController();
- if (parent)
- parent->Release();
m_pHitObject = NULL;
if (propName)
More information about the Bf-blender-cvs
mailing list