Skip to content

Commit

Permalink
Fix #4580 and #4576: RenderPreviews not repainting correctly in wxGTK
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jul 21, 2017
1 parent 8ff4c60 commit 69e5284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/wxutil/preview/RenderPreview.cpp
Expand Up @@ -356,7 +356,7 @@ void RenderPreview::startPlayback()
else
{
// Timer is not enabled, we're paused or stopped
_timer.Start();
_timer.Start(MSEC_PER_FRAME);
}

wxToolBar* toolbar = findNamedObject<wxToolBar>(_mainPanel, "RenderPreviewAnimToolbar");
Expand Down Expand Up @@ -670,7 +670,7 @@ void RenderPreview::onPausePlaybackClick(wxCommandEvent& ev)
}
else
{
_timer.Start(); // re-enable playback
_timer.Start(MSEC_PER_FRAME); // re-enable playback
}
}

Expand Down
2 changes: 2 additions & 0 deletions plugins/uimanager/animationpreview/AnimationPreview.cpp
Expand Up @@ -142,6 +142,8 @@ void AnimationPreview::setAnim(const md5::IMD5AnimPtr& anim)
// Set the animation to play
model::ModelNodePtr model = Node_getModel(_model);
dynamic_cast<md5::IMD5Model&>(model->getIModel()).setAnim(_anim);

queueDraw();
}

void AnimationPreview::setupSceneGraph()
Expand Down

0 comments on commit 69e5284

Please sign in to comment.