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>2009-10-27 12:38:15 +0300
committerJoshua Leung <aligorith@gmail.com>2009-10-27 12:38:15 +0300
commite76ce369bb45f1134b45982ec3ac0a108c9ccf44 (patch)
tree073f830bd379bdc75e910dc7b4fd27403d211a74 /source/blender/editors/object/object_vgroup.c
parent1c1659eb286b369ffe6ba99207c42611159f24bb (diff)
Compiler warning fixes for mingw:
* There's an unresolved error in transform_conversions.c which I've flagged in this commit. I'm not quite sure what the exact intentions of that code were (i.e. was the "void_pointer = 1" really intended)
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-rw-r--r--source/blender/editors/object/object_vgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c
index 5d76990b0e9..aa60679321a 100644
--- a/source/blender/editors/object/object_vgroup.c
+++ b/source/blender/editors/object/object_vgroup.c
@@ -588,7 +588,7 @@ static void vgroup_normalize(Object *ob)
dg = BLI_findlink(&ob->defbase, (ob->actdef-1));
if(dg) {
- float weight_max;
+ float weight_max = 0.0f;
def_nr= ob->actdef-1;
@@ -606,7 +606,7 @@ static void vgroup_normalize(Object *ob)
dw = ED_vgroup_weight_get(dvert, def_nr);
if(dw) {
dw->weight /= weight_max;
-
+
/* incase of division errors with very low weights */
CLAMP(dw->weight, 0.0f, 1.0f);
}