chromakey: temporarily disable limits

This commit is contained in:
itsmattkc
2022-05-08 11:56:52 -07:00
parent b878b06314
commit 71a7b3d128
+9 -2
View File
@@ -40,9 +40,13 @@ ChromaKeyNode::ChromaKeyNode()
SetInputProperty(kLowerToleranceInput, QStringLiteral("base"), 0.1);
AddInput(kUpperToleranceInput, NodeValue::kFloat, 25.0);
SetInputProperty(kUpperToleranceInput, QStringLiteral("min"), GetStandardValue(kLowerToleranceInput).toDouble());
SetInputProperty(kUpperToleranceInput, QStringLiteral("base"), 0.1);
// FIXME: Temporarily disabled. This will break if "lower tolerance" is keyframed or connected to
// something and there's currently no solution to remedy that. If there is in the future,
// we can look into re-enabling this.
//SetInputProperty(kUpperToleranceInput, QStringLiteral("min"), GetStandardValue(kLowerToleranceInput).toDouble());
AddInput(kGarbageMatteInput, NodeValue::kTexture, InputFlags(kInputFlagNotKeyframable));
AddInput(kCoreMatteInput, NodeValue::kTexture, InputFlags(kInputFlagNotKeyframable));
@@ -96,7 +100,10 @@ void ChromaKeyNode::InputValueChangedEvent(const QString &input, int element)
{
Q_UNUSED(element);
if (input == kLowerToleranceInput) {
SetInputProperty(kUpperToleranceInput, QStringLiteral("min"), GetStandardValue(kLowerToleranceInput).toDouble());
// FIXME: Temporarily disabled. This will break if "lower tolerance" is keyframed or connected to
// something and there's currently no solution to remedy that. If there is in the future,
// we can look into re-enabling this.
//SetInputProperty(kUpperToleranceInput, QStringLiteral("min"), GetStandardValue(kLowerToleranceInput).toDouble());
}
GenerateProcessor();