Skip to content

Commit

Permalink
Also use Ignition GUI render event (#598)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Feb 2, 2021
1 parent 39e98e1 commit 4eda53f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gui/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,16 @@ void IgnRenderer::Render()

if (ignition::gui::App())
{
gui::events::Render event;
ignition::gui::events::Render event;
ignition::gui::App()->sendEvent(
ignition::gui::App()->findChild<ignition::gui::MainWindow *>(),
&event);

// This will be deprecated on v5 and removed on v6
ignition::gazebo::gui::events::Render oldEvent;
ignition::gui::App()->sendEvent(
ignition::gui::App()->findChild<ignition::gui::MainWindow *>(),
&oldEvent);
}

// only has an effect in video recording lockstep mode
Expand Down

0 comments on commit 4eda53f

Please sign in to comment.