Skip to content

Commit

Permalink
fix: set the bevel modifier offset type to 'width' for the vertex_bev…
Browse files Browse the repository at this point in the history
…el, and weighted_normal_bevel operators
  • Loading branch information
tristan-hm committed Jan 29, 2022
1 parent 4883345 commit 9b561aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vertex_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def add_bevel_modifier(self, context):
bevel = context.object.modifiers.new("ND — Sketch Bevel", type='BEVEL')
bevel.affect = 'VERTICES'
bevel.limit_method = 'VGROUP'
bevel.offset_type = 'WIDTH'
bevel.vertex_group = self.vgroup.name
bevel.segments = self.segments
bevel.width = self.width
Expand Down
1 change: 1 addition & 0 deletions weighted_normal_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def add_smooth_shading(self, context):
def add_bevel_modifier(self, context):
bevel = context.object.modifiers.new("ND — Bevel", 'BEVEL')
bevel.segments = 1
bevel.offset_type = 'WIDTH'
bevel.width = self.width

self.bevel = bevel
Expand Down

0 comments on commit 9b561aa

Please sign in to comment.