From ad6f942a34195e6b35a2542476abe7d1296bcd6c Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Mon, 25 May 2026 01:33:03 +0300 Subject: [PATCH] erase detail optimization --- src/DrawingProgram/Tools/EraserTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DrawingProgram/Tools/EraserTool.cpp b/src/DrawingProgram/Tools/EraserTool.cpp index 03740ae..55c6dc3 100644 --- a/src/DrawingProgram/Tools/EraserTool.cpp +++ b/src/DrawingProgram/Tools/EraserTool.cpp @@ -169,7 +169,7 @@ void EraserTool::switch_tool(DrawingProgramToolType newTool) { bool first = erasedComponents.empty(); // erase_component_container will call EraserTool::erase_component, which will clear erasedComponents eventually drawP.layerMan.erase_component_container(erasedComponents); for(auto& [comp, oldData] : updatedComponents) { - comp->obj->commit_update(drawP); + comp->obj->commit_update_dont_invalidate_cache(drawP); comp->obj->send_comp_update(drawP, true); if(first) { first = false;