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:
authorErwin Coumans <blender@erwincoumans.com>2006-01-30 23:33:59 +0300
committerErwin Coumans <blender@erwincoumans.com>2006-01-30 23:33:59 +0300
commit18857a6225fba4b2b0d662b904cf04625a56e088 (patch)
tree2b6efca751351db9d2c32847395d3dbba3db56cc /source/gameengine/Expressions
parent8e9222ec217ab98980ffd75cd14387a062b46c9a (diff)
prepared physics/game engine infrastructure for vehicle support.
fixed a python related bug with physics contraints fixed some line-ending problem with blenderbuttons.c makefile/scons/projectfiles need to add source/gameengine/Ketsji/KX_VehicleWrapper.cpp
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp
index 55cd76824c9..1b343088446 100644
--- a/source/gameengine/Expressions/PyObjectPlus.cpp
+++ b/source/gameengine/Expressions/PyObjectPlus.cpp
@@ -79,7 +79,10 @@ PyTypeObject PyObjectPlus::Type = {
PyObjectPlus::~PyObjectPlus()
{
- _Py_ForgetReference(this);
+ if (ob_refcnt)
+ {
+ _Py_ForgetReference(this);
+ }
// assert(ob_refcnt==0);
}