Skip to content

Commit

Permalink
fix skipped options showing in viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Mar 19, 2024
1 parent 03baf75 commit ead857b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/device-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2946,15 +2946,15 @@ namespace rs2
color_options.end(),
[&]( rs2_option opt )
{
if( viewer.is_option_skipped( opt ) )
return;
auto it = supported_options.find( opt );
if( it != supported_options.end() )
so_ordered.push_back( opt );
} );

for (auto opt : so_ordered)
{
if( viewer.is_option_skipped( opt ) )
continue;
if (std::find(drawing_order.begin(), drawing_order.end(), opt) == drawing_order.end())
{
if (serialize && opt == RS2_OPTION_VISUAL_PRESET)
Expand Down

0 comments on commit ead857b

Please sign in to comment.