Fixed branch for Blender 3.6 release #104626
@ -308,11 +308,16 @@ def CreateBevel(context, CurrentObject):
|
||||
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
|
||||
CurrentObject.data.use_customdata_edge_bevel = True
|
||||
bevel_weights = CurrentObject.data.attributes["bevel_weight_edge"]
|
||||
if not bevel_weights:
|
||||
bevel_weights = CurrentObject.data.attributes.new("bevel_weight_edge", 'FLOAT', 'EDGE')
|
||||
if bevel_weights.data_type != 'FLOAT' or bevel_weights.domain != 'EDGE':
|
||||
bevel_weights = None
|
||||
|
||||
for i in range(len(CurrentObject.data.edges)):
|
||||
if CurrentObject.data.edges[i].select is True:
|
||||
CurrentObject.data.edges[i].bevel_weight = 1.0
|
||||
if bevel_weights:
|
||||
bevel_weights.data[i] = 1.0
|
||||
CurrentObject.data.edges[i].use_edge_sharp = True
|
||||
|
||||
bevel_modifier = False
|
||||
|
Loading…
Reference in New Issue
Block a user