Skip to content

Commit

Permalink
FrameIn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Jul 3, 2024
1 parent bb15080 commit 66a0974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/GUI/timelinedockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void TimelineDockWidget::setIn()
if (scene->getFrameOut().enabled) {
if (frame >= scene->getFrameOut().frame) { return; }
}
bool apply = (scene->getFrameIn().frame != frame);
bool apply = frame == 0 ? true : (scene->getFrameIn().frame != frame);
scene->setFrameIn(apply, frame);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ui/widgets/framescrollbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void FrameScrollBar::mousePressEvent(QMouseEvent *event)
if (mCurrentCanvas->getFrameOut().enabled) {
if (frame >= mCurrentCanvas->getFrameOut().frame) { return; }
}
bool apply = (mCurrentCanvas->getFrameIn().frame != frame);
bool apply = frame == 0 ? true : (mCurrentCanvas->getFrameIn().frame != frame);
mCurrentCanvas->setFrameIn(apply, frame);
}
} else if (selectedAction == setFrameOutAct) {
Expand Down

0 comments on commit 66a0974

Please sign in to comment.