[Bf-blender-cvs] [898231fdbcc] master: Fix transform redo panel showing only the first custom orientation
Germano Cavalcante
noreply at git.blender.org
Wed Nov 18 15:57:32 CET 2020
Commit: 898231fdbcc34785fefa2030bf9c17dbdedfb63f
Author: Germano Cavalcante
Date: Wed Nov 18 11:51:14 2020 -0300
Branches: master
https://developer.blender.org/rB898231fdbcc34785fefa2030bf9c17dbdedfb63f
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`
===================================================================
M source/blender/editors/transform/transform_orientations.c
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list