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

Fix rotoscoping points not reset when adding a second rotoscoping effect to a clip

parent 7b1d44c4
Pipeline #38045 failed with stage
in 62 minutes and 58 seconds
...@@ -70,9 +70,9 @@ void RotoHelper::refreshParams(int pos) ...@@ -70,9 +70,9 @@ void RotoHelper::refreshParams(int pos)
controlPoints << QVariant(i.h1); controlPoints << QVariant(i.h1);
controlPoints << QVariant(i.h2); controlPoints << QVariant(i.h2);
} }
if (m_monitor) { }
m_monitor->setUpEffectGeometry(QRect(), centerPoints, controlPoints); if (m_monitor) {
} m_monitor->setUpEffectGeometry(QRect(), centerPoints, controlPoints);
} }
} }
......
...@@ -1805,7 +1805,7 @@ void Monitor::setUpEffectGeometry(const QRect &r, const QVariantList &list, cons ...@@ -1805,7 +1805,7 @@ void Monitor::setUpEffectGeometry(const QRect &r, const QVariantList &list, cons
if (!root) { if (!root) {
return; return;
} }
if (!list.isEmpty()) { if (!list.isEmpty() || m_qmlManager->sceneType() == MonitorSceneRoto) {
root->setProperty("centerPointsTypes", types); root->setProperty("centerPointsTypes", types);
root->setProperty("centerPoints", list); root->setProperty("centerPoints", list);
} }
......
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