node: implemented bypassing

This commit is contained in:
itsmattkc
2022-04-26 15:07:01 -07:00
parent d1bb931854
commit 001834cbfa
34 changed files with 145 additions and 26 deletions
@@ -32,7 +32,7 @@ const QString TransformDistortNode::kTextureInput = QStringLiteral("tex_in");
const QString TransformDistortNode::kAutoscaleInput = QStringLiteral("autoscale_in");
const QString TransformDistortNode::kInterpolationInput = QStringLiteral("interpolation_in");
#define super Node
#define super MatrixGenerator
TransformDistortNode::TransformDistortNode()
{
@@ -71,7 +71,7 @@ TransformDistortNode::TransformDistortNode()
void TransformDistortNode::Retranslate()
{
MatrixGenerator::Retranslate();
super::Retranslate();
SetInputName(kAutoscaleInput, tr("Auto-Scale"));
SetInputName(kTextureInput, tr("Texture"));
@@ -153,7 +153,7 @@ void TransformDistortNode::Hash(QCryptographicHash &hash, const NodeGlobals &glo
}
}
Node::Hash(out, GetValueHintForInput(kTextureInput), hash, globals, video_params);
super::Hash(out, GetValueHintForInput(kTextureInput), hash, globals, video_params);
}
void TransformDistortNode::GizmoDragStart(const NodeValueRow &row, double x, double y, const rational &time)