Fixed selected object ordering

This commit is contained in:
Yousef Khadadeh 2025-12-31 10:06:26 +03:00
parent 9d752af00c
commit b688c39e68
6 changed files with 52 additions and 68 deletions

View file

@ -348,9 +348,8 @@ void DrawingProgram::rebuild_cache() {
EraserTool* eraserTool = static_cast<EraserTool*>(drawTool.get());
drawCache.build(eraserTool->erasedComponents);
}
else if(is_selection_allowing_tool(drawTool->get_type())) {
drawCache.build(selection.get_selected_set());
}
else if(is_selection_allowing_tool(drawTool->get_type()))
drawCache.build(selection.get_selection_as_set());
else
drawCache.build({});
}