dont crash on bad primitive links

This commit is contained in:
pythongosssss 2023-12-11 20:32:36 +00:00
parent 0276444f59
commit 2c866c5c52

View File

@ -915,7 +915,7 @@ export class GroupNodeHandler {
if (innerNode.type === "PrimitiveNode") { if (innerNode.type === "PrimitiveNode") {
innerNode.primitiveValue = newValue; innerNode.primitiveValue = newValue;
const primitiveLinked = this.groupData.primitiveToWidget[old.node.index]; const primitiveLinked = this.groupData.primitiveToWidget[old.node.index];
for (const linked of primitiveLinked) { for (const linked of primitiveLinked ?? []) {
const node = this.innerNodes[linked.nodeId]; const node = this.innerNodes[linked.nodeId];
const widget = node.widgets.find((w) => w.name === linked.inputName); const widget = node.widgets.find((w) => w.name === linked.inputName);