diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2007-04-07 00:42:17 +0400 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2007-04-07 00:42:17 +0400 |
commit | 999e405543690e08283ef940873af3d660b3bfe2 (patch) | |
tree | 8411890ec60631954067c5995f7ed3b7de26c018 /source/blender/src/editmesh_tools.c | |
parent | f42bc12285388e6fb93cba1223f90dcb7dcf5373 (diff) |
Save PET state before ripping and disable it, so that post rip transform works better. Restore PET state after finished.
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r-- | source/blender/src/editmesh_tools.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index afcdfcc7c7f..b69ce4bdead 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -5177,8 +5177,13 @@ void mesh_rip(void) EditEdge *eed, *seed= NULL; EditFace *efa, *sefa= NULL; float projectMat[4][4], viewMat[4][4], vec[3], dist, mindist; - short doit= 1, mval[2]; - + short doit= 1, mval[2],propmode,prop; + + propmode = G.scene->prop_mode; + G.scene->prop_mode = 0; + prop = G.scene->proportional; + G.scene->proportional = 0; + /* select flush... vertices are important */ EM_selectmode_set(); @@ -5373,6 +5378,9 @@ void mesh_rip(void) BIF_TransformSetUndo("Rip"); initTransform(TFM_TRANSLATION, 0); Transform(); + + G.scene->prop_mode = propmode; + G.scene->proportional = prop; } void shape_propagate(){ |