move item setting to a node flag
This commit is contained in:
@@ -41,7 +41,7 @@ NoiseGeneratorNode::NoiseGeneratorNode()
|
||||
AddInput(kColorInput, NodeValue::kBoolean, false);
|
||||
|
||||
SetEffectInput(kBaseIn);
|
||||
SetFlags(kVideoEffect);
|
||||
SetFlag(kVideoEffect);
|
||||
}
|
||||
|
||||
QString NoiseGeneratorNode::Name() const
|
||||
|
||||
@@ -32,7 +32,7 @@ GeneratorWithMerge::GeneratorWithMerge()
|
||||
{
|
||||
AddInput(kBaseInput, NodeValue::kTexture, InputFlags(kInputFlagNotKeyframable));
|
||||
SetEffectInput(kBaseInput);
|
||||
SetFlags(kVideoEffect);
|
||||
SetFlag(kVideoEffect);
|
||||
}
|
||||
|
||||
void GeneratorWithMerge::Retranslate()
|
||||
|
||||
@@ -54,7 +54,7 @@ TextGeneratorV1::TextGeneratorV1()
|
||||
|
||||
AddInput(kFontSizeInput, NodeValue::kFloat, 72.0f);
|
||||
|
||||
SetFlags(kDontShowInCreateMenu);
|
||||
SetFlag(kDontShowInCreateMenu);
|
||||
}
|
||||
|
||||
QString TextGeneratorV1::Name() const
|
||||
|
||||
@@ -56,7 +56,7 @@ TextGeneratorV2::TextGeneratorV2()
|
||||
SetStandardValue(kColorInput, QVariant::fromValue(Color(1.0f, 1.0f, 1.0)));
|
||||
SetStandardValue(kSizeInput, QVector2D(400, 300));
|
||||
|
||||
SetFlags(kDontShowInCreateMenu);
|
||||
SetFlag(kDontShowInCreateMenu);
|
||||
}
|
||||
|
||||
QString TextGeneratorV2::Name() const
|
||||
|
||||
Reference in New Issue
Block a user