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
+5 -2
View File
@@ -42,6 +42,8 @@ namespace olive {
#define super QObject
const QString Node::kEnabledInput = QStringLiteral("enabled_in");
Node::Node() :
can_be_deleted_(true),
override_color_(-1),
@@ -49,9 +51,9 @@ Node::Node() :
operation_stack_(0),
cache_result_(false),
flags_(kNone),
effect_element_(-1),
bypass_(false)
effect_element_(-1)
{
AddInput(kEnabledInput, NodeValue::kBoolean, true);
}
Node::~Node()
@@ -105,6 +107,7 @@ QString Node::Description() const
void Node::Retranslate()
{
SetInputName(kEnabledInput, tr("Enabled"));
}
QIcon Node::icon() const