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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-01 13:03:09 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-01 13:06:57 +0300
commit0f43fbcd8c81f15c00be6bce9c3bb2a46ae7310e (patch)
tree823abd704e6c9bc62f7beeee96c9e705400940ef /source/blender/editors/transform/transform.c
parent83a94cb3f2b5257a3c78f897d27c931d7ed98dde (diff)
Fix T46339: Edge sliding when there is only one vertex in the mesh crashes blender.
If t->mode remains edge/vert slide, restoreTransObjects() ends up calling projectVert/EdgeSlideData(), which tries to access invalid customdata... Not sure why we call again restoreTransObjects() and resetTransRestrictions() here tbh, but safer not to change that for now. Should be backported to 2.76 if possible.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 2b295b85da0..6931efdbd6a 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -1037,6 +1037,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
}
/* vert slide can fail on unconnected vertices (rare but possible) */
if (t->state == TRANS_CANCEL) {
+ t->mode = TFM_TRANSLATION;
t->state = TRANS_STARTING;
restoreTransObjects(t);
resetTransRestrictions(t);