Fixed cache not updating when canvas color updated

This commit is contained in:
Yousef Khadadeh 2025-08-18 08:16:29 +03:00
parent 1e30e3596d
commit 32c9329e4f
3 changed files with 11 additions and 2 deletions

View file

@ -53,6 +53,8 @@ class DrawingProgram {
void switch_to_tool(DrawingProgramToolType newToolType);
void switch_to_tool_ptr(std::unique_ptr<DrawingProgramToolBase> newTool);
void clear_draw_cache();
private:
void client_erase_set(std::unordered_set<CollabListType::ObjectInfoPtr> erasedComponents); // The set might be modified while this is being called, so dont pass by reference