deleting selection item in OpenMesh plugin when there is no selection

This commit is contained in:
Sven Oesau 2025-04-07 09:10:00 +02:00
parent cc77715588
commit e65e2a0950
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ load(QFileInfo fileinfo, bool& ok, bool add_to_scene){
res << item;
if(!selection_item->isEmpty())
res << selection_item;
else
delete selection_item;
return res;
}
}