Skip to content

Commit f2730eb

Browse files
committed
Fixed bug with visual nodes
1 parent 41be55c commit f2730eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lua/wire/client/node_editor/nodeeditor.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,11 @@ function Editor:SetData(data)
546546
self.OutputNameCounter = 0
547547
for nodeId, node in pairs(self.Nodes) do
548548
local gate = getGate(node)
549-
if not gate then self:DeleteNode(nodeId)
550-
elseif gate.isInput then self.InputNameCounter = self.InputNameCounter + 1
551-
elseif gate.isOutput then self.OutputNameCounter = self.OutputNameCounter + 1 end
549+
if not node.visual then
550+
if not gate then self:DeleteNode(nodeId)
551+
elseif gate.isInput then self.InputNameCounter = self.InputNameCounter + 1
552+
elseif gate.isOutput then self.OutputNameCounter = self.OutputNameCounter + 1 end
553+
end
552554
end
553555
end
554556

0 commit comments

Comments
 (0)