Commit 3aaa60e1 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix size slider not updating in animated parameter

parent 52c26b59
......@@ -624,6 +624,11 @@ void AnimationWidget::updateRect(int pos)
}
}
}
double scale = qMin(m_spinWidth->value() / m_monitor->render->frameRenderWidth(), m_spinHeight->value() / m_monitor->render->renderHeight());
m_spinSize->blockSignals(true);
m_spinSize->setValue(100.0 * scale);
m_spinSize->blockSignals(false);
m_spinSize->setEnabled(enableEdit);
m_spinX->setEnabled(enableEdit);
m_spinY->setEnabled(enableEdit);
m_spinWidth->setEnabled(enableEdit);
......
......@@ -514,7 +514,7 @@ void PreviewManager::invalidatePreview(int startFrame, int endFrame)
void PreviewManager::reloadChunks(QList <int> chunks)
{
if (m_previewTrack == NULL)
if (m_previewTrack == NULL || chunks.isEmpty())
return;
m_tractor->lock();
foreach(int ix, chunks) {
......
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