initialize array variable and set where used

This commit is contained in:
itsmattkc
2021-01-19 09:09:12 +11:00
parent fa1fbd3a34
commit 3e1fb01758
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -225,6 +225,7 @@ void NodeInput::Init(Node* parent, const QString &id, NodeValue::Type type, cons
default_value_ = default_val;
array_size_ = 0;
data_type_ = type;
is_array_ = false;
primary_ = CreateImmediate();
}
+1
View File
@@ -40,6 +40,7 @@ Track::Track() :
{
block_input_ = new NodeInput(this, QStringLiteral("block_in"), NodeValue::kNone);
block_input_->SetKeyframable(false);
block_input_->SetIsArray(true);
connect(block_input_, &NodeInput::InputConnected, this, &Track::BlockConnected);
connect(block_input_, &NodeInput::InputDisconnected, this, &Track::BlockDisconnected);
+1
View File
@@ -40,6 +40,7 @@ ViewerOutput::ViewerOutput() :
for (int i=0;i<Track::kCount;i++) {
// Create track input
NodeInput* track_input = new NodeInput(this, QStringLiteral("track_in_%1").arg(i), NodeValue::kNone);
track_input->SetIsArray(true);
IgnoreInvalidationsFrom(track_input);
track_inputs_.replace(i, track_input);