nodeinputarray: delete sub-params immediately instead of queuing
Queuing the destructor caused a potential desync in the node graph that disconnected blocks after they were reconnected elsewhere. Destroying immediately keeps this logic synchronized.
This commit is contained in:
@@ -59,7 +59,7 @@ void NodeInputArray::SetSize(int size)
|
||||
if (size < old_size) {
|
||||
// If the new size is less, delete all extraneous parameters
|
||||
for (int i=size;i<old_size;i++) {
|
||||
sub_params_.at(i)->deleteLater();
|
||||
delete sub_params_.at(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user