Skip to content

Commit

Permalink
create selection item only when OM file contains feature vertices or …
Browse files Browse the repository at this point in the history
…edges
  • Loading branch information
janetournois committed Sep 10, 2024
1 parent 1066666 commit 2eb8033
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Lab/demo/Lab/Plugins/IO/OM_io_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,18 @@ load(QFileInfo fileinfo, bool& ok, bool add_to_scene){
}
item->setName(fileinfo.completeBaseName());
ok = true;
if(add_to_scene){
if(add_to_scene)
{
CGAL::Three::Three::scene()->addItem(item);
CGAL::Three::Three::scene()->addItem(selection_item);
if(!selection_item->isEmpty())
CGAL::Three::Three::scene()->addItem(selection_item);
}
return QList<Scene_item*>()<<item << selection_item;

QList<Scene_item*> res;
res << item;
if(!selection_item->isEmpty())
res << selection_item;
return res;
}
}
catch(...){}
Expand Down

0 comments on commit 2eb8033

Please sign in to comment.