From 69b1f792bab13c3c3f21ecc4216d742d4309b3f9 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sun, 6 Sep 2020 22:40:11 +0200 Subject: [PATCH] Fixed SHIFT+border rescale for mirror scaling --- View.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/View.cpp b/View.cpp index b206f7e..9522b80 100644 --- a/View.cpp +++ b/View.cpp @@ -818,7 +818,7 @@ View::Cursor GeometryView::grab (Source *s, glm::vec2 from, glm::vec2 to, std::p // SHIFT: HORIZONTAL SCALE to restore source aspect ratio if (UserInterface::manager().shiftModifier()) { - sourceNode->scale_.x = sourceNode->scale_.y; + sourceNode->scale_.x = ABS(sourceNode->scale_.y) * SIGN(sourceNode->scale_.x); corner_scaling = sourceNode->scale_ / s->stored_status_->scale_; } // HORIZONTAL RESIZE (normal case) @@ -850,7 +850,7 @@ View::Cursor GeometryView::grab (Source *s, glm::vec2 from, glm::vec2 to, std::p // SHIFT: VERTICAL SCALE to restore source aspect ratio if (UserInterface::manager().shiftModifier()) { - sourceNode->scale_.y = sourceNode->scale_.x; + sourceNode->scale_.y = ABS(sourceNode->scale_.x) * SIGN(sourceNode->scale_.y); corner_scaling = sourceNode->scale_ / s->stored_status_->scale_; } // VERTICAL RESIZE (normal case)