Fix T94109: 3d cursor crash when using shortcut
Operator was erroneously starting edge_slide operation. Revert part of the changes in rB3fab16fe8eb4 as obedit_type was being confused with object_mode.
This commit is contained in:
parent
2926f10ffe
commit
5c6418b077
Notes:
blender-bot
2023-02-14 05:04:52 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #94109, 3d cursor crash when using shortcut
|
@ -863,7 +863,8 @@ int transformEvent(TransInfo *t, const wmEvent *event)
|
|||
case TFM_MODAL_TRANSLATE:
|
||||
/* only switch when... */
|
||||
if (t->mode == TFM_TRANSLATION) {
|
||||
if ((t->obedit_type == OB_MESH) && (t->spacetype == SPACE_VIEW3D)) {
|
||||
if (!(t->options & (CTX_CURSOR | CTX_TEXTURE_SPACE)) && (t->obedit_type == OB_MESH) &&
|
||||
(t->spacetype == SPACE_VIEW3D)) {
|
||||
restoreTransObjects(t);
|
||||
resetTransModal(t);
|
||||
resetTransRestrictions(t);
|
||||
|
|
Loading…
Reference in New Issue