Fix T89571: Align Orientation to Target keeps rotation when toggled

This commit is contained in:
Campbell Barton 2021-07-01 11:54:05 +10:00
parent 1e532eb37a
commit 4546f176eb
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by commit f578e31a8e, Correction to T89571 fix 4546f176eb
Referenced by issue #89571, Align Orientation to Target keeps rotation when toggled
1 changed files with 1 additions and 1 deletions

View File

@ -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: