initialize array variable and set where used
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user