Fix T89571: Align Orientation to Target keeps rotation when toggled

This commit is contained in:
2021-07-01 11:54:05 +10:00
parent 1e532eb37a
commit 4546f176eb

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: