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:
Diffstat (limited to 'archipack/bmesh_utils.py')
-rw-r--r--archipack/bmesh_utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archipack/bmesh_utils.py b/archipack/bmesh_utils.py
index 1157d9a3..54805f7b 100644
--- a/archipack/bmesh_utils.py
+++ b/archipack/bmesh_utils.py
@@ -34,8 +34,8 @@ class BmeshEdit():
"""
private, start bmesh editing of active object
"""
- o.select = True
- context.scene.objects.active = o
+ o.select_set(state=True)
+ context.view_layer.objects.active = o
bpy.ops.object.mode_set(mode='EDIT')
bm = bmesh.from_edit_mesh(o.data)
bm.verts.ensure_lookup_table()
@@ -212,11 +212,11 @@ class BmeshEdit():
@staticmethod
def bevel(context, o,
offset,
- offset_type=0,
+ offset_type='OFFSET',
segments=1,
profile=0.5,
vertex_only=False,
- clight_overlap=True,
+ clamp_overlap=True,
material=-1,
use_selection=True):
"""
@@ -245,7 +245,7 @@ class BmeshEdit():
segments=segments,
profile=profile,
vertex_only=vertex_only,
- clight_overlap=clight_overlap,
+ clamp_overlap=clamp_overlap,
material=material)
bm.to_mesh(o.data)