@@ -600,13 +600,13 @@ namespace rs2
600600
601601#ifdef BUILD_VIEWPORT_GRID_OVERLAY
602602 label = rsutils::string::from () << textual_icons::grid << " ##Grid " << profile.unique_id ();
603- if (show_grid )
603+ if (show_overlay_grid )
604604 {
605605 ImGui::PushStyleColor (ImGuiCol_Text, light_blue);
606606 ImGui::PushStyleColor (ImGuiCol_TextSelectedBg, light_blue);
607607 if (ImGui::Button (label.c_str (), { 24 , top_bar_height }))
608608 {
609- show_grid = false ;
609+ show_overlay_grid = false ;
610610 }
611611 if (ImGui::IsItemHovered ())
612612 RsImGui::CustomTooltip (" Hide grid overlay" );
@@ -616,7 +616,7 @@ namespace rs2
616616 {
617617 if (ImGui::Button (label.c_str (), { 24 , top_bar_height }))
618618 {
619- show_grid = true ;
619+ show_overlay_grid = true ;
620620 }
621621 if (ImGui::IsItemHovered ())
622622 RsImGui::CustomTooltip (" Show grid overlay" );
@@ -2115,7 +2115,7 @@ namespace rs2
21152115 update_ae_roi_rect (stream_rect, g, error_message);
21162116
21172117#ifdef BUILD_VIEWPORT_GRID_OVERLAY
2118- if (show_grid )
2118+ if (show_overlay_grid )
21192119 draw_2d_grid (stream_rect, grid_h_lines, grid_v_lines, grid_line_width,
21202120 grid_color_r, grid_color_g, grid_color_b);
21212121#endif
0 commit comments