Commit 7bf9ef89 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix showing the "infinite" frames when the playback range is changed

parent bc5f27f8
......@@ -83,6 +83,7 @@ const KisTimeRange& KisImageAnimationInterface::currentRange() const
void KisImageAnimationInterface::setRange(const KisTimeRange range) {
m_d->currentRange = range;
emit sigRangeChanged();
}
int KisImageAnimationInterface::framerate()
......
......@@ -128,6 +128,7 @@ Q_SIGNALS:
void sigInternalRequestTimeSwitch(int frameId);
void sigFramerateChanged();
void sigRangeChanged();
private:
struct Private;
......
......@@ -322,6 +322,8 @@ void TimelineFramesModel::setDummiesFacade(KisDummiesFacadeBase *dummiesFacade,
SIGNAL(sigFramerateChanged()), SLOT(slotFramerateChanged()));
connect(m_d->image->animationInterface(),
SIGNAL(sigTimeChanged(int)), SLOT(slotCurrentTimeChanged(int)));
connect(m_d->image->animationInterface(),
SIGNAL(sigRangeChanged()), SIGNAL(sigInfiniteTimelineUpdateNeeded()));
}
if(m_d->dummiesFacade != oldDummiesFacade) {
......
......@@ -109,6 +109,7 @@ public Q_SLOTS:
Q_SIGNALS:
void requestCurrentNodeChanged(KisNodeSP node);
void sigInfiniteTimelineUpdateNeeded();
private:
struct Private;
......
......@@ -210,6 +210,9 @@ void TimelineFramesView::setModel(QAbstractItemModel *model)
connect(m_d->model, SIGNAL(rowsRemoved(const QModelIndex&, int, int)),
this, SLOT(slotReselectCurrentIndex()));
connect(m_d->model, SIGNAL(sigInfiniteTimelineUpdateNeeded()),
this, SLOT(slotUpdateInfiniteFramesCount()));
}
void TimelineFramesView::setFramesPerSecond(int fps)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment