Skip to content

Commit

Permalink
Deconstruct Surface weights bugfix (#3996)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicdoval authored Mar 28, 2021
1 parent e78e7be commit f01b312
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nodes/surface/deconstruct_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def deconstruct(self, surface):
if hasattr(nurbs, 'get_weights'):
weights = nurbs.get_weights()
if self.split_points:
weights = weights.flatten().tolist()
else:
weights = weights.tolist()
else:
weights = weights.flatten().tolist()
else:
weights = []

Expand Down Expand Up @@ -160,4 +160,3 @@ def register():

def unregister():
bpy.utils.unregister_class(SvDeconstructSurfaceNode)

0 comments on commit f01b312

Please sign in to comment.