Skip to content

Commit

Permalink
Traktor: Effect preview updated when properties change.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jan 22, 2024
1 parent 9592c7b commit f9533f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/Spray/Editor/EffectEditorPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ void EffectEditorPage::updateEffectPreview()
}
else
m_previewControl->setEffect(nullptr, nullptr);

updateProfile();
}

void EffectEditorPage::updateSequencer()
Expand Down
2 changes: 1 addition & 1 deletion code/Spray/Editor/EffectPreviewControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void EffectPreviewControl::setEffect(const EffectData* effectData, Effect* effec
resource::Proxy< Effect >(m_effect),
nullptr
));
m_effectEntity->update({});
}
else
m_effectEntity = nullptr;
Expand Down Expand Up @@ -290,7 +291,6 @@ void EffectPreviewControl::syncEffect()
context.deltaTime = 0.0f;
context.random = RandomGeometry(m_randomSeed);
context.eventManager = nullptr;
//context.soundPlayer = nullptr;

// Create new effect instance.
Ref< EffectInstance > effectInstance = effectComponent->getEffect()->createInstance();
Expand Down

0 comments on commit f9533f8

Please sign in to comment.