Started work on new cache system for layers

This commit is contained in:
Yousef Khadadeh 2025-12-26 19:52:36 +03:00
parent 783bb7dacb
commit c2abccefc2
14 changed files with 234 additions and 19 deletions

View file

@ -46,6 +46,13 @@ void DrawingProgramLayerListItem::commit_update_dont_invalidate_cache(DrawingPro
layerData->commit_update_dont_invalidate_cache(layerMan);
}
void DrawingProgramLayerListItem::get_flattened_component_list(std::vector<CanvasComponentContainer::ObjInfoSharedPtr>& objList) const {
if(folderData)
folderData->get_flattened_component_list(objList);
else
layerData->get_flattened_component_list(objList);
}
bool DrawingProgramLayerListItem::is_folder() const {
return folderData != nullptr;
}