Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurement line is not disappeared after disabling distance Button #9706

Merged
merged 2 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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