Skip to content

Commit

Permalink
Example: disable visibilityChanged() signal for CameraDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Apr 22, 2022
1 parent 5f6aa04 commit fa180af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rviz/default_plugin/camera_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <rviz/display_context.h>
#include <rviz/properties/display_group_visibility_property.h>
#include <rviz/load_resource.h>
#include <rviz/panel_dock_widget.h>

#include <image_transport/camera_common.h>

Expand Down Expand Up @@ -191,6 +192,8 @@ void CameraDisplay::onInitialize()
render_panel_->initialize(context_->getSceneManager(), context_);

setAssociatedWidget(render_panel_);
disconnect(getAssociatedWidgetPanel(), SIGNAL(visibilityChanged(bool)), this,
SLOT(associatedPanelVisibilityChange(bool)));

render_panel_->setAutoRender(false);
render_panel_->setOverlaysEnabled(false);
Expand Down

0 comments on commit fa180af

Please sign in to comment.