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

Fix geometry effects like obscure regression.

Fixes #856
parent 9194ffee
......@@ -52,6 +52,11 @@ GeometryEditWidget::GeometryEditWidget(std::shared_ptr<AssetParameterModel> mode
m_geom = new GeometryWidget(monitor, QPair<int, int>(start, end), rect, 100, frameSize, false,
m_model->data(m_index, AssetParameterModel::OpacityRole).toBool(), true, this);
m_geom->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred));
connect(m_geom, &GeometryWidget::updateMonitorGeometry, [this](const QRect r) {
if (m_model->isActive()) {
pCore->getMonitor(m_model->monitorId)->setUpEffectGeometry(r);
}
});
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_geom);
setFixedHeight(m_geom->sizeHint().height());
......
......@@ -354,7 +354,7 @@ void KeyframeWidget::addParameter(const QPersistentModelIndex &index)
this, [this, index](const QString v) {
emit activateEffect();
m_keyframes->updateKeyframe(GenTime(getPosition(), pCore->getCurrentFps()), QVariant(v), index); });
connect(geomWidget, &GeometryWidget::updateMonitorGeometry, [this, index](const QRect r) {
connect(geomWidget, &GeometryWidget::updateMonitorGeometry, [this](const QRect r) {
if (m_model->isActive()) {
pCore->getMonitor(m_model->monitorId)->setUpEffectGeometry(r);
}
......
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