diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-27 17:10:18 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-27 17:10:18 +0400 |
commit | 5d6801a472d2d87c4ae0e20a6ee1ca6db54e5934 (patch) | |
tree | 19df7f1c608d09c7afcfa6aa6b4ac1065c524f9b | |
parent | d55b46041947ee23e8f92393a53ed4dec7c5071a (diff) |
2.5
Mesh editmode fix: Add new primitive often was on wrong location.
Viva Vazquez testing! :)
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index 8483aee52f4..12138ee13d2 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -1295,9 +1295,9 @@ static float new_primitive_matrix(bContext *C, float primmat[][4]) /* center */ curs= give_cursor(scene, v3d); VECCOPY(primmat[3], curs); + VECSUB(primmat[3], primmat[3], obedit->obmat[3]); Mat3Inv(imat, mat); Mat3MulVecfl(imat, primmat[3]); - VECSUB(primmat[3], primmat[3], obedit->obmat[3]); if(v3d) return v3d->grid; return 1.0f; |