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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user