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:
itsmattkc
2020-07-10 18:26:30 +10:00
parent 0f9d409fb0
commit 90bc678377
+1 -1
View File
@@ -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);
}
}