Skip to content

Commit

Permalink
Merge pull request #1321 from VictorLamoine/LUT_fixes
Browse files Browse the repository at this point in the history
Fix bug when trying to remove shape when no LUT is displayed / no shape has color information
  • Loading branch information
taketwo committed Sep 6, 2015
2 parents 33ae7bc + 3016035 commit 38305f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions visualization/src/interactor_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1270,10 +1270,7 @@ pcl::visualization::PCLVisualizerInteractorStyle::updateLookUpTableDisplay (bool
}
}

if (!actor_found)
PCL_WARN ("[updateLookUpTableDisplay] No actor was found with LUT information!\n");

if (!actor_found || (lut_enabled_ && add_lut)) // Remove actor
if ( (!actor_found && lut_enabled_) || (lut_enabled_ && add_lut)) // Remove actor
{
CurrentRenderer->RemoveActor (lut_actor_);
lut_enabled_ = false;
Expand Down

0 comments on commit 38305f1

Please sign in to comment.