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:
authorJoshua Leung <aligorith@gmail.com>2007-09-17 10:11:06 +0400
committerJoshua Leung <aligorith@gmail.com>2007-09-17 10:11:06 +0400
commit672a66905b0aca8a7099de3743d1e42059c4fc98 (patch)
tree1c2af82bce01b8f676ebf908a1ec710bb675dba8 /source/blender/src/transform.c
parenta48f15e124ef441d5f644f49899e4939aa13dff3 (diff)
Patch/Bugfix #7334 by 'gsr b3d:
Some more compiler warning fixes. Some of these seem to be specific to GCC 4.1
Diffstat (limited to 'source/blender/src/transform.c')
-rw-r--r--source/blender/src/transform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index b3814831ddf..e8512d08d04 100644
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1972,6 +1972,9 @@ static void applyRotation(TransInfo *t, float angle, float axis[3])
if (t->around == V3D_LOCAL) {
VECCOPY(center, t->center);
}
+ else {
+ center[0] = center[1] = center[2] = 0.0f;
+ }
VecRotToMat3(axis, angle, mat);