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-11-18 17:51:14 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-13 16:50:56 +0300
commit2fa5fd5a33863a4dd540581bb9ac57758d526aab (patch)
treeb03fd0e464d445a180869a4412dcfca881b0a668
parentd0426a4ed50862e012e4314e74f50354fed093c2 (diff)
Fix transform redo panel showing only the first custom orientation
The error was introduced in rBf470a02afaea, but the problem is in `ED_transform_calc_orientation_from_type_ex`
-rw-r--r--source/blender/editors/transform/transform_orientations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 69dfc4a7ad4..b353dba9e54 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -572,7 +572,7 @@ short ED_transform_calc_orientation_from_type_ex(const bContext *C,
TransformOrientation *custom_orientation = BKE_scene_transform_orientation_find(
scene, orientation_index_custom);
applyTransformOrientation(custom_orientation, r_mat, NULL);
- break;
+ return V3D_ORIENT_CUSTOM + orientation_index_custom;
}
}