fix(editor): scaling a part without snapping causes endless clicking

This commit is contained in:
maelstrom 2025-04-30 17:21:49 +02:00
parent df6e2ac98d
commit fc998a1c3f

View file

@ -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);