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>2010-06-02 11:40:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-02 11:40:50 +0400
commit402a26e79fe96d72146bc830f7d36652c78a5338 (patch)
treebaeb849736faafc6da169c5506233b65b15ea9bf /source/blender/modifiers
parent0b02fc45b37f0c5d4b7633b56e683241df1c2b81 (diff)
quiet warnings in screw modifier, also fix bad args for lookat_m4 and polarview_m4 to rotate_m4, however these functions are not used at the moment so it didnt cause any problems.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_screw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c
index b70f145b67b..a1deaa140db 100644
--- a/source/blender/modifiers/intern/MOD_screw.c
+++ b/source/blender/modifiers/intern/MOD_screw.c
@@ -137,7 +137,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
int totvert= dm->getNumVerts(dm);
int totedge= dm->getNumEdges(dm);
- char axis_char, close;
+ char axis_char= 'X', close;
float angle= ltmd->angle;
float screw_ofs= ltmd->screw_ofs;
float axis_vec[3]= {0.0f, 0.0f, 0.0f};
@@ -177,7 +177,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
other_axis_1=0;
other_axis_2=2;
break;
- case 2:
+ default: /* 2, use default to quiet warnings */
other_axis_1=0;
other_axis_2=1;
break;
@@ -248,7 +248,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
}
else {
/* exis char is used by i_rotate*/
- axis_char= 'X' + ltmd->axis;
+ axis_char += ltmd->axis; /* 'X' + axis */
/* useful to be able to use the axis vec in some cases still */
zero_v3(axis_vec);