Fixed clipboard paste position and added back item count to debug menu

This commit is contained in:
Yousef Khadadeh 2025-12-29 20:11:24 +03:00
parent fb3b13d303
commit a3fb87332b
4 changed files with 16 additions and 2 deletions

View file

@ -62,6 +62,17 @@ void DrawingProgramLayerListItem::get_flattened_layer_list(std::vector<DrawingPr
objList.emplace_back(this);
}
uint32_t DrawingProgramLayerListItem::get_component_count() const {
if(folderData) {
uint32_t toRet = 0;
for(auto& c : folderData->folderList->get_data())
toRet += c->obj->get_component_count();
return toRet;
}
else
return layerData->components->size();
}
bool DrawingProgramLayerListItem::is_folder() const {
return folderData != nullptr;
}