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>2012-03-24 11:52:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 11:52:14 +0400
commitb8a71efeba70d6c3ebc579f5043daa4162da86e8 (patch)
treed2d89da2a59f8955583f4968a35e48c578fd4d4c /source/gameengine/Ketsji/KX_TrackToActuator.cpp
parent81d8f17843f92c6d6abbacb652ca22917910f4bc (diff)
style cleanup: follow style guide for/with/if spacing
Diffstat (limited to 'source/gameengine/Ketsji/KX_TrackToActuator.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_TrackToActuator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/Ketsji/KX_TrackToActuator.cpp b/source/gameengine/Ketsji/KX_TrackToActuator.cpp
index a08e57c8d76..d1e0a74c8be 100644
--- a/source/gameengine/Ketsji/KX_TrackToActuator.cpp
+++ b/source/gameengine/Ketsji/KX_TrackToActuator.cpp
@@ -153,14 +153,14 @@ void compatible_eulFast(float *eul, float *oldrot)
dy= eul[1] - oldrot[1];
dz= eul[2] - oldrot[2];
- if( fabs(dx) > MT_PI) {
- if(dx > 0.0) eul[0] -= MT_2_PI; else eul[0]+= MT_2_PI;
+ if ( fabs(dx) > MT_PI) {
+ if (dx > 0.0) eul[0] -= MT_2_PI; else eul[0]+= MT_2_PI;
}
- if( fabs(dy) > MT_PI) {
- if(dy > 0.0) eul[1] -= MT_2_PI; else eul[1]+= MT_2_PI;
+ if ( fabs(dy) > MT_PI) {
+ if (dy > 0.0) eul[1] -= MT_2_PI; else eul[1]+= MT_2_PI;
}
- if( fabs(dz) > MT_PI ) {
- if(dz > 0.0) eul[2] -= MT_2_PI; else eul[2]+= MT_2_PI;
+ if ( fabs(dz) > MT_PI ) {
+ if (dz > 0.0) eul[2] -= MT_2_PI; else eul[2]+= MT_2_PI;
}
}
@@ -391,7 +391,7 @@ bool KX_TrackToActuator::Update(double curtime, bool frame)
mat= matrix3x3_interpol(oldmat, mat, m_time);
- if(m_parentobj){ // check if the model is parented and calculate the child transform
+ if (m_parentobj){ // check if the model is parented and calculate the child transform
MT_Point3 localpos;
localpos = curobj->GetSGNode()->GetLocalPosition();