fix(editor): scaling a part without snapping causes endless clicking
This commit is contained in:
parent
df6e2ac98d
commit
fc998a1c3f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue