chromakey: regen processor on config change

This commit is contained in:
itsmattkc
2022-05-07 09:37:20 -07:00
parent 7c23ad0b51
commit dabd6d5d3d
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -52,8 +52,6 @@ ChromaKeyNode::ChromaKeyNode()
SetInputProperty(kShadowsInput, QStringLiteral("min"), 0.0);
AddInput(kMaskOnlyInput, NodeValue::kBoolean, false);
SetEffectInput(kTextureInput);
}
QString ChromaKeyNode::Name() const
@@ -129,4 +127,9 @@ void ChromaKeyNode::Value(const NodeValueRow &value, const NodeGlobals &globals,
}
}
void ChromaKeyNode::ConfigChanged()
{
GenerateProcessor();
}
} // namespace olive
+1 -1
View File
@@ -40,7 +40,7 @@ class ChromaKeyNode : public OCIOBaseNode {
virtual ShaderCode GetShaderCode(const QString &shader_id) const override;
virtual void Value(const NodeValueRow& value, const NodeGlobals& globals, NodeValueTable* table) const override;
virtual void ConfigChanged() override {};
virtual void ConfigChanged() override;
static const QString kColorInput;
static const QString kMaskOnlyInput;