Fix T76630: Crash when changing transform value with Custom Orientation

This commit is contained in:
2020-05-11 09:47:15 -03:00
parent 267e4d130a
commit 76c64af00c
4 changed files with 25 additions and 17 deletions

View File

@@ -730,7 +730,9 @@ void setUserConstraint(TransInfo *t, short orientation, int mode, const char fte
BLI_snprintf(text, sizeof(text), ftext, TIP_("custom matrix"));
setConstraint(t, t->spacemtx, mode, text);
break;
case V3D_ORIENT_CUSTOM: {
case V3D_ORIENT_CUSTOM:
default: {
BLI_assert(orientation >= V3D_ORIENT_CUSTOM);
char orientation_str[128];
BLI_snprintf(orientation_str,
sizeof(orientation_str),