Skip to content

Commit

Permalink
Merge pull request #1047 from UniStuttgart-VISUS/fix-clear
Browse files Browse the repository at this point in the history
Cherry pick graph clear fix from #978
  • Loading branch information
moritz-h authored Jun 2, 2022
2 parents 4e2b09e + 5097dd8 commit a37a517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/MegaMolGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ megamol::core::MegaMolGraph_Convenience& megamol::core::MegaMolGraph::Convenienc
}

void megamol::core::MegaMolGraph::Clear() {
// currently entry points are expected to be graph modules, i.e. views
// therefore it is ok for us to clear all entry points if the graph shuts down
call_list_.clear();
m_image_presentation->clear_entry_points();
for (auto& m : module_list_)
if (m.isGraphEntryPoint)
m_image_presentation->remove_entry_point(m.request.id);
graph_entry_points.clear();
module_list_.clear();
}
Expand Down

0 comments on commit a37a517

Please sign in to comment.