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>2008-08-14 07:23:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-08-14 07:23:36 +0400
commit3f2cb6e87855e4afc2e26d87f36817a92490429e (patch)
tree8c9af32f0aa1e42a08cc6d9d2aac3f1c6c052535 /source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
parentd2750f7bda1e5e4e43df330ab49e677105e00d4f (diff)
game engine python api
* removed macros that were not used much, some misleading. * removed error string setting calls that overwrote the error set by PyArg_ParseTuple with a less useful one. * use python macros Py_RETURN_NONE, Py_RETURN_TRUE, Py_RETURN_FALSE
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyConstraintBinding.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_PyConstraintBinding.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
index c01d6a632a3..26243c7dba1 100644
--- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
+++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
@@ -91,7 +91,7 @@ static PyObject* gPySetGravity(PyObject* self,
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetDebugMode(PyObject* self,
@@ -112,7 +112,7 @@ static PyObject* gPySetDebugMode(PyObject* self,
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -132,7 +132,7 @@ static PyObject* gPySetNumTimeSubSteps(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -151,7 +151,7 @@ static PyObject* gPySetNumIterations(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -171,7 +171,7 @@ static PyObject* gPySetDeactivationTime(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -190,7 +190,7 @@ static PyObject* gPySetDeactivationLinearTreshold(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -209,7 +209,7 @@ static PyObject* gPySetDeactivationAngularTreshold(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetContactBreakingTreshold(PyObject* self,
@@ -227,7 +227,7 @@ static PyObject* gPySetContactBreakingTreshold(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -246,7 +246,7 @@ static PyObject* gPySetCcdMode(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetSorConstant(PyObject* self,
@@ -264,7 +264,7 @@ static PyObject* gPySetSorConstant(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetSolverTau(PyObject* self,
@@ -282,7 +282,7 @@ static PyObject* gPySetSolverTau(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -301,7 +301,7 @@ static PyObject* gPySetSolverDamping(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetLinearAirDamping(PyObject* self,
@@ -319,7 +319,7 @@ static PyObject* gPySetLinearAirDamping(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -338,7 +338,7 @@ static PyObject* gPySetUseEpa(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
static PyObject* gPySetSolverType(PyObject* self,
PyObject* args,
@@ -355,7 +355,7 @@ static PyObject* gPySetSolverType(PyObject* self,
else {
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -388,7 +388,7 @@ static PyObject* gPyGetVehicleConstraint(PyObject* self,
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -448,7 +448,7 @@ static PyObject* gPyCreateConstraint(PyObject* self,
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}
@@ -502,7 +502,7 @@ static PyObject* gPyRemoveConstraint(PyObject* self,
return NULL;
}
- Py_INCREF(Py_None); return Py_None;
+ Py_RETURN_NONE;
}