timeline: don't snap add tool if snapping is disabled

This commit is contained in:
itsmattkc
2020-12-30 10:38:53 +11:00
parent b604a7271d
commit 78903391a3
+7 -1
View File
@@ -167,7 +167,13 @@ void AddTool::MouseMoveInternal(const rational &cursor_frame, bool outwards)
}
// Snap movement
bool snapped = parent()->SnapPoint(snap_points_, &movement);
bool snapped;
if (Core::instance()->snapping()) {
snapped = parent()->SnapPoint(snap_points_, &movement);
} else {
snapped = false;
}
// If alt is held, our movement goes both ways (outwards)
if (!snapped && outwards) {