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:
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r--source/blender/blenkernel/intern/object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index bad1ebc6305..c1baced8f05 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1813,7 +1813,7 @@ static void ob_parbone(Object *ob, Object *par, float mat[][4])
/* but for backwards compatibility, the child has to move to the tail */
VECCOPY(vec, mat[1]);
mul_v3_fl(vec, pchan->bone->length);
- add_v3_v3v3(mat[3], mat[3], vec);
+ add_v3_v3(mat[3], vec);
}
static void give_parvert(Object *par, int nr, float *vec)
@@ -1851,7 +1851,7 @@ static void give_parvert(Object *par, int nr, float *vec)
vindex= (index)? index[i]: i;
if(vindex == nr) {
- add_v3_v3v3(vec, vec, mvert[i].co);
+ add_v3_v3(vec, mvert[i].co);
count++;
}
}
@@ -1960,7 +1960,7 @@ static void ob_parvert3(Object *ob, Object *par, float mat[][4])
}
else {
add_v3_v3v3(mat[3], v1, v2);
- add_v3_v3v3(mat[3], mat[3], v3);
+ add_v3_v3(mat[3], v3);
mul_v3_fl(mat[3], 0.3333333f);
}
}
@@ -2342,7 +2342,7 @@ void minmax_object(Object *ob, float *min, float *max)
DO_MINMAX(ob->obmat[3], min, max);
VECCOPY(vec, ob->obmat[3]);
- add_v3_v3v3(vec, vec, ob->size);
+ add_v3_v3(vec, ob->size);
DO_MINMAX(vec, min, max);
VECCOPY(vec, ob->obmat[3]);