Fix own error in changes to transform logic

Regression in 3c8e4e4180
This commit is contained in:
Campbell Barton
2018-09-07 10:59:43 +10:00
parent 3733c52985
commit d49cbe1936

View File

@@ -1124,7 +1124,10 @@ void ED_getTransformOrientationMatrix(const bContext *C, float orientation_mat[3
break;
default:
BLI_assert(type == ORIENTATION_NONE);
unit_m3(orientation_mat);
break;
}
if (type == ORIENTATION_NONE) {
unit_m3(orientation_mat);
}
}