chromakey: regen processor on config change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user