From fc998a1c3f5e472f74073a52ee8b0bf0ccc6f6e5 Mon Sep 17 00:00:00 2001 From: maelstrom Date: Wed, 30 Apr 2025 17:21:49 +0200 Subject: [PATCH] fix(editor): scaling a part without snapping causes endless clicking --- editor/mainglwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/mainglwidget.cpp b/editor/mainglwidget.cpp index 3451573..1d421d0 100755 --- a/editor/mainglwidget.cpp +++ b/editor/mainglwidget.cpp @@ -244,7 +244,7 @@ void MainGLWidget::handleLinearTransform(QMouseEvent* evt) { Logger::error("Invalid tool was set to be handled by handleLinearTransform\n"); } - if (mainWindow()->editSoundEffects && (oldSize != part->size) && QFile::exists("./assets/excluded/switch.wav")) + if (snappingFactor() != 0 && mainWindow()->editSoundEffects && (oldSize != part->size) && QFile::exists("./assets/excluded/switch.wav")) playSound("./assets/excluded/switch.wav"); gWorkspace()->SyncPartPhysics(part);