diptocolortransition: ensure input name is set
This commit is contained in:
@@ -56,6 +56,11 @@ ShaderCode DipToColorTransition::GetShaderCode(const ShaderRequest &request) con
|
||||
return ShaderCode(FileFunctions::ReadFileAsString(":/shaders/diptoblack.frag"), QString());
|
||||
}
|
||||
|
||||
void DipToColorTransition::Retranslate()
|
||||
{
|
||||
SetInputName(kColorInput, tr("Color"));
|
||||
}
|
||||
|
||||
void DipToColorTransition::ShaderJobEvent(const NodeValueRow &value, ShaderJob *job) const
|
||||
{
|
||||
job->Insert(kColorInput, value);
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
|
||||
virtual ShaderCode GetShaderCode(const ShaderRequest &request) const override;
|
||||
|
||||
virtual void Retranslate() override;
|
||||
|
||||
static const QString kColorInput;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user