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:
authorCampbell Barton <ideasman42@gmail.com>2021-07-01 04:54:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-01 04:54:05 +0300
commit4546f176eb0f822048b53766f2e97c5a4cbf53c6 (patch)
treee7bcef53a7b8510813d36f3a137ded9dc0868072
parent1e532eb37a985b987db7072e5f8f471a3e78e3ef (diff)
Fix T89571: Align Orientation to Target keeps rotation when toggled
-rw-r--r--source/blender/editors/transform/transform_mode_translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c
index 541237fb64c..ea17e61ce03 100644
--- a/source/blender/editors/transform/transform_mode_translate.c
+++ b/source/blender/editors/transform/transform_mode_translate.c
@@ -357,7 +357,7 @@ static void ApplySnapTranslation(TransInfo *t, float vec[3])
static void applyTranslationValue(TransInfo *t, const float vec[3])
{
- const bool apply_snap_align_rotation = usingSnappingNormal(t);
+ const bool apply_snap_align_rotation = activeSnap(t) && usingSnappingNormal(t);
const bool is_valid_snapping_normal = apply_snap_align_rotation && validSnappingNormal(t);
/* Ideally "apply_snap_align_rotation" would only be used when a snap point is found: