Fixed objects disappearing after deselecting

This commit is contained in:
Yousef Khadadeh 2025-08-05 19:54:53 +03:00
parent d482d6731a
commit 7ffa039061
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ void DrawingProgramSelection::deselect_all() {
if(is_something_selected()) {
bool cacheWillRebuildAnyway = selectedSet.size() >= DrawingProgramCache::MINIMUM_COMPONENTS_TO_START_REBUILD;
if(cacheWillRebuildAnyway)
drawP.force_rebuild_cache();
drawP.compCache.test_rebuild(drawP.components.client_list(), true);
else {
for(auto& obj : selectedSet)
drawP.compCache.add_component(obj);