Change how tools get switched

This commit is contained in:
Yousef Khadadeh 2025-08-02 20:39:21 +03:00
parent 90374da228
commit c2301ae9f5
27 changed files with 68 additions and 96 deletions

View file

@ -19,9 +19,8 @@ DrawingProgramToolType BrushTool::get_type() {
return DrawingProgramToolType::BRUSH;
}
void BrushTool::reset_tool() {
void BrushTool::switch_tool(DrawingProgramToolType newTool) {
commit_stroke();
controls.isDrawing = false;
}
bool BrushTool::extensive_point_checking(const Vector2f& newPoint) {