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:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-06-26 13:15:41 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-06-26 13:15:41 +0400
commit4c53f38756976704bab11a3dd8c33c71d926e6b8 (patch)
tree5db17347afbc71062a77f01f1197a9bfe7f0c20d /source/gameengine/Ketsji/KX_SceneActuator.cpp
parentf69cc652e283bfa1958ae6945b0a014eb7d50906 (diff)
Minor Fixes:
Better use of booleans for python #include fixes for Windows Python Doc fixes Use the farthest vertex as the face position when z sorting faces. (Camera is on -z axis!)
Diffstat (limited to 'source/gameengine/Ketsji/KX_SceneActuator.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_SceneActuator.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/gameengine/Ketsji/KX_SceneActuator.cpp b/source/gameengine/Ketsji/KX_SceneActuator.cpp
index 996b671094a..721d01a3da3 100644
--- a/source/gameengine/Ketsji/KX_SceneActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SceneActuator.cpp
@@ -247,18 +247,7 @@ PyObject* KX_SceneActuator::PySetUseRestart(PyObject* self,
return NULL;
}
- if (boolArg == KX_TRUE)
- {
- m_restart = true;
- }
- else if (boolArg == KX_FALSE)
- {
- m_restart = false;
- }
- else
- {
- ; /* internal error */
- }
+ m_restart = boolArg != 0;
Py_Return;
}