We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5694128 commit 4602fe8Copy full SHA for 4602fe8
src/core/canvasmouseinteractions.cpp
@@ -57,6 +57,7 @@
57
#include <QMenu>
58
#include <QInputDialog>
59
#include <QApplication>
60
+#include <cmath>
61
62
using namespace Friction::Core;
63
@@ -830,6 +831,11 @@ void Canvas::rotateSelected(const eMouseEvent& e) {
830
831
rot = d_rot + mRotHalfCycles*180;
832
}
833
834
+ if (!mValueInput.inputEnabled() && e.shiftMod()) {
835
+ constexpr qreal snapStep = 15.0;
836
+ rot = std::round(rot / snapStep) * snapStep;
837
+ }
838
+
839
if(mCurrentMode == CanvasMode::boxTransform) {
840
rotateSelectedBy(rot, absPos, mStartTransform);
841
} else {
0 commit comments