Skip to content

Commit

Permalink
edgenet_to_paths typofix (#3997)
Browse files Browse the repository at this point in the history
* edgenet_to_paths typofix

* prevent breaking layouts
  • Loading branch information
vicdoval authored Mar 28, 2021
1 parent f01b312 commit 1a168ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nodes/modifier_change/edgenet_to_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def rclick_menu(self, context, layout):
self.draw_buttons_ext(context, layout)
def sv_init(self, context):
self.inputs.new('SvVerticesSocket', 'Vertices')
self.inputs.new('SvStringsSocket', 'Egdes')
self.inputs.new('SvStringsSocket', 'Edges')

self.outputs.new('SvVerticesSocket', 'Vertices')
self.outputs.new('SvStringsSocket', 'Egdes')
self.outputs.new('SvStringsSocket', 'Edges')
self.outputs.new('SvStringsSocket', 'Vert Indexes')
self.outputs.new('SvStringsSocket', 'Edge Indexes')
self.outputs.new('SvStringsSocket', 'Cyclic')
Expand All @@ -208,8 +208,8 @@ def sv_init(self, context):
def process(self):
if not any(s.is_linked for s in self.outputs):
return
verts = self.inputs['Vertices'].sv_get(deepcopy=False)
edges = self.inputs['Egdes'].sv_get(deepcopy=False)
verts = self.inputs[0].sv_get(deepcopy=False)
edges = self.inputs[1].sv_get(deepcopy=False)
verts_out = []
edge_out = []
v_index_out = []
Expand All @@ -236,8 +236,8 @@ def process(self):
new_e_index(ed_index)
new_cyclic(cyclic)

self.outputs['Vertices'].sv_set(verts_out)
self.outputs['Egdes'].sv_set(edge_out)
self.outputs[0].sv_set(verts_out)
self.outputs[1].sv_set(edge_out)
self.outputs['Vert Indexes'].sv_set(v_index_out)
self.outputs['Edge Indexes'].sv_set(e_index_out)
self.outputs['Cyclic'].sv_set([cyclic_out] if self.join else cyclic_out)
Expand Down

0 comments on commit 1a168ae

Please sign in to comment.