Skip to content

Commit

Permalink
[PointCloud] Remove octree from cache when undisplaying octree.
Browse files Browse the repository at this point in the history
  and call undisplay before display in case an previous octree is present
  in the cache.
  • Loading branch information
Florent Lamiraux committed Sep 30, 2022
1 parent 5110cfe commit 3ed50eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/point-cloud.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ namespace hpp {
problemSolver_->resetProblem();
if (display_){
// Display point cloud in gepetto-gui.
undisplayOctree(octreeFrame);
displayOctree(octreeFrame);
}
}
Expand Down Expand Up @@ -405,6 +406,7 @@ namespace hpp {
try {
// If node already exists, remove it
if (gui->nodeExists(nodeName.c_str())){
gui->removeObjectFromCache(nodeName.c_str());
gui->deleteNode(nodeName.c_str(), true);
return true;
}
Expand Down

0 comments on commit 3ed50eb

Please sign in to comment.