Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List match node #4187

Open
Durman opened this issue Jun 27, 2021 · 0 comments
Open

List match node #4187

Durman opened this issue Jun 27, 2021 · 0 comments
Labels

Comments

@Durman
Copy link
Collaborator

Durman commented Jun 27, 2021

Problem statement

Two problems here.
The node can't work with empty objects. I would expect to get [[1, 1], [], [3, 3, 3]]
The second problem is that the node does not clean its previous result if in current execution the result is empty list. It steps into the break condition and sv_get is never reachable.

for i, socket in enumerate(self.outputs):
if i == len(out): # never write to last socket
break
if socket.is_linked:
socket.sv_set(out[i])

List match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant