Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-23 06:03:52 +0300
committerJeroen Bakker <jeroen@blender.org>2020-09-23 11:05:31 +0300
commit9b19f28e231bc8fbbdcdbd94aebea41ad55e92cb (patch)
tree85a142252feb3871589206b353f654f583cb6f8b
parente42d0499632f7492a54aae93e2680b85d1361cf9 (diff)
Fix T81073: PDT fillet tool not workingv2.90.1blender-v2.90-release
The tool still used the "vertex_only" argument to the bevel operator, which changed in 2.90. This commit also fixes the same error in the Mesh Tools addon.
-rw-r--r--mesh_tools/__init__.py6
-rw-r--r--precision_drawing_tools/pdt_command.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/mesh_tools/__init__.py b/mesh_tools/__init__.py
index f93baea9..ff9a60bd 100644
--- a/mesh_tools/__init__.py
+++ b/mesh_tools/__init__.py
@@ -885,7 +885,7 @@ class VIEW3D_MT_edit_mesh_tools(Menu):
props.quad_method = props.ngon_method = 'BEAUTY'
layout.operator("mesh.tris_convert_to_quads")
layout.operator('mesh.vertex_chamfer', text="Vertex Chamfer")
- layout.operator("mesh.bevel", text="Bevel Vertices").vertex_only = True
+ layout.operator("mesh.bevel", text="Bevel Vertices").affect = 'VERTICES'
layout.operator('mesh.offset_edges', text="Offset Edges")
layout.operator('mesh.fillet_plus', text="Fillet Edges")
layout.operator("mesh.face_inset_fillet",
@@ -930,7 +930,7 @@ class VIEW3D_PT_edit_mesh_tools(Panel):
row = col_top.row(align=True)
row.operator("mesh.random_vertices", text="Random Vertices")
row = col_top.row(align=True)
- row.operator("mesh.bevel", text="Bevel Vertices").vertex_only = True
+ row.operator("mesh.bevel", text="Bevel Vertices").affect = 'VERTICES'
# edge - first line
split = col.split(factor=0.80, align=True)
@@ -956,7 +956,7 @@ class VIEW3D_PT_edit_mesh_tools(Panel):
row = col_top.row(align=True)
row.operator("mesh.extrude_edges_move", text="Extrude Edges")
row = col_top.row(align=True)
- row.operator("mesh.bevel", text="Bevel Edges").vertex_only = False
+ row.operator("mesh.bevel", text="Bevel Edges").affect = 'EDGES'
# face - first line
split = col.split(factor=0.80, align=True)
diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py
index 0ae7e820..398adc6c 100644
--- a/precision_drawing_tools/pdt_command.py
+++ b/precision_drawing_tools/pdt_command.py
@@ -1038,10 +1038,10 @@ def fillet_geometry(context, pg, mode, obj, bm, verts, values):
context.window_manager.popup_menu(oops, title="Error", icon="ERROR")
return
if mode in {"i", "v"}:
- vert_bool = True
+ affect = 'VERTICES'
else:
# Must be "e"
- vert_bool = False
+ affect = 'EDGES'
# Note that passing an empty parameter results in that parameter being seen as "0"
# _offset <= 0 is ignored since a bevel/fillet radius must be > 0 to make sense
_offset = float(values[0])
@@ -1095,5 +1095,5 @@ def fillet_geometry(context, pg, mode, obj, bm, verts, values):
offset=_offset,
segments=_segments,
profile=_profile,
- vertex_only=vert_bool
+ affect=affect
)