Zoom and pan tool no longer deselect objects

This commit is contained in:
Yousef Khadadeh 2025-10-03 13:16:38 +03:00
parent 1945b04e69
commit 9f739ada6a
8 changed files with 95 additions and 78 deletions

View file

@ -57,7 +57,7 @@ void EditTool::switch_tool(DrawingProgramToolType newTool) {
controls.pointDragging = nullptr;
controls.isEditing = false;
if(!drawP.is_selection_tool(newTool))
if(!drawP.is_selection_allowing_tool(newTool))
drawP.selection.deselect_all();
}