Skip to content

Commit

Permalink
Fixed playback on environment maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Feb 8, 2024
1 parent ac6ad2b commit fa77a61
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mrv2/lib/mrvGL/mrvTimelineViewportEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,10 @@ namespace mrv
{
p.lastEvent = FL_PUSH;

if (p.actionMode == ActionMode::kScrub)
p.playbackMode = timeline::Playback::Stop;
if (!p.timelinePlayers.empty())
{
p.playbackMode = timeline::Playback::Stop;
if (!p.timelinePlayers.empty())
{
p.playbackMode = p.timelinePlayers[0]->playback();
}
p.playbackMode = p.timelinePlayers[0]->playback();
}
return;
}
Expand Down Expand Up @@ -992,8 +989,7 @@ namespace mrv
p.rotDir.x = p.rotDir.y = 0;

if (p.lastEvent == FL_DRAG &&
Fl::event_button() == FL_LEFT_MOUSE &&
p.actionMode == ActionMode::kScrub)
Fl::event_button() == FL_LEFT_MOUSE)
{
p.lastEvent = 0;
if (p.timelinePlayers.empty())
Expand Down

0 comments on commit fa77a61

Please sign in to comment.