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:
authorTon Roosendaal <ton@blender.org>2004-12-13 20:11:33 +0300
committerTon Roosendaal <ton@blender.org>2004-12-13 20:11:33 +0300
commit5981b7783877a9da776ab42a822a57dd691382cd (patch)
tree932089b38cd36fbe6bed9d4a7598d65237890406 /source/blender/src/edit.c
parent900b9521371c92e4a42b7b81b859b9ae579bc67e (diff)
While giving snapto a good test (thanks all_select.blend!) I found it was
not implemented on MetaBall editmode, causing an old global var to wreak havoc.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r--source/blender/src/edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c
index c4038de7d0e..1412a7c5288 100644
--- a/source/blender/src/edit.c
+++ b/source/blender/src/edit.c
@@ -733,6 +733,8 @@ void snap_sel_to_grid()
if(G.obedit) {
+ tottrans= 0;
+
#ifdef __NLA
if ELEM5(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE) make_trans_verts(bmat[0], bmat[1], 0);
#else
@@ -820,6 +822,7 @@ void snap_sel_to_curs()
curs= give_cursor();
if(G.obedit) {
+ tottrans= 0;
#ifdef __NLA
if ELEM5(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE) make_trans_verts(bmat[0], bmat[1], 0);
#else
@@ -1068,7 +1071,7 @@ void snap_to_center()
centroid[0]= centroid[1]= centroid[2]= 0.0;
if(G.obedit) {
- /*tottrans=0;*/
+ tottrans= 0;
#ifdef __NLA
if ELEM5(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE) make_trans_verts(bmat[0], bmat[1], 0);
#else
@@ -1130,6 +1133,7 @@ void snap_to_center()
/* Snap the selection to the snaplocation (duh!) */
if(G.obedit) {
+ tottrans= 0;
#ifdef __NLA
if ELEM5(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE) make_trans_verts(bmat[0], bmat[1], 0);
#else