Skip to content

Commit

Permalink
extrude edges typo fix (#4020)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicdoval committed Apr 6, 2021
1 parent 4cef1ce commit 607e98e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nodes/modifier_change/extrude_edges_mk2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ class SvExtrudeEdgesNodeMk2(bpy.types.Node, SverchCustomTreeNode, SvRecursiveNod
bl_label = 'Extrude Edges'
bl_icon = 'OUTLINER_OB_EMPTY'
sv_icon = 'SV_EXTRUDE_EDGES'
implentation_items = [
implementation_items = [
('BMESH', 'Bmesh', 'Slower (Legacy. Face data is not transfered identically)', 0),
('NUMPY', 'Numpy', 'Faster', 1)]
implentation: bpy.props.EnumProperty(
implementation: bpy.props.EnumProperty(
name='Implementation',
items=implentation_items,
items=implementation_items,
default='NUMPY',
update=updateNode
)
def draw_buttons_ext(self, context, layout):
layout.prop(self, 'implentation')
layout.prop(self, 'implementation')
layout.prop(self, 'list_match')

def sv_init(self, context):
Expand Down Expand Up @@ -71,7 +71,7 @@ def pre_setup(self):
def process_data(self, params):

output_data = [[] for s in self.outputs]
extrude = extrude_edges if self.implentation == 'NUMPY' else extrude_edges_bmesh
extrude = extrude_edges if self.implementation == 'NUMPY' else extrude_edges_bmesh
for vertices, edges, faces, edge_mask, face_data, matrices in zip(*params):
res = extrude(vertices, edges, faces, edge_mask, face_data, matrices)
for o, r in zip(output_data, res):
Expand All @@ -80,7 +80,6 @@ def process_data(self, params):
return output_data



def register():
bpy.utils.register_class(SvExtrudeEdgesNodeMk2)

Expand Down

0 comments on commit 607e98e

Please sign in to comment.