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:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-05-11 15:47:15 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-05-11 15:47:25 +0300
commit76c64af00caa7308368dfe0221b617c2aae3cde4 (patch)
tree1847b1d65e6ff5639dba22510ac4de4108cde45e /source/blender/editors/transform/transform_gizmo_3d.c
parent267e4d130a26c0ecf4c1c7a70b67303a7620abb2 (diff)
Fix T76630: Crash when changing transform value with Custom Orientation
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_3d.c')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 362cbc1b800..7a9be86624e 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -713,7 +713,9 @@ void ED_transform_calc_orientation_from_type_ex(const bContext *C,
ok = true;
break;
}
- case V3D_ORIENT_CUSTOM: {
+ case V3D_ORIENT_CUSTOM:
+ default: {
+ BLI_assert(orientation_type >= V3D_ORIENT_CUSTOM);
TransformOrientation *custom_orientation = BKE_scene_transform_orientation_find(
scene, orientation_index_custom);
if (applyTransformOrientation(custom_orientation, r_mat, NULL)) {