Skip to content

Commit

Permalink
PR #9706 from Matan: Measurement line is not disappeared after disabl…
Browse files Browse the repository at this point in the history
…ing distance Button
  • Loading branch information
maloel authored Aug 30, 2021
2 parents 613d307 + 3002e1d commit c1f37e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void measurement::enable() {
void measurement::disable() {
state.points.clear();
state.edges.clear();
state.polygons.clear();
measurement_active = false;
config_file::instance().set(configurations::viewer::is_measuring, false);
}
Expand Down
2 changes: 1 addition & 1 deletion common/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ namespace rs2

// -------------------- Measure ----------------

std::string measure_tooltip = "Measure distance between points";
std::string measure_tooltip = "Measure distance between points\nHold shift to connect more than 2 points and measure area";
if (!glsl_available) measure_tooltip += "\nRequires GLSL acceleration! \nEnable 2 checkboxes in Settings - Performance: \n- Use GLSL for Rendering \n- Use GLSL for Processing ";
if (_measurements.is_enabled())
{
Expand Down

0 comments on commit c1f37e4

Please sign in to comment.