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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-08 20:12:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-08 20:12:45 +0300
commit448eeb681aa414257a75356d7e6c65e0672980d5 (patch)
tree7d2ceb38efd2527e694ea1756689f760cefab5a8 /mesh_tiny_cad
parent419f290890104e47081525dcd2eb87bfa244e319 (diff)
Update for changes in the Python API using keyword only arguments
Diffstat (limited to 'mesh_tiny_cad')
-rw-r--r--mesh_tiny_cad/CCEN.py2
-rw-r--r--mesh_tiny_cad/E2F.py2
-rw-r--r--mesh_tiny_cad/VTX.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/mesh_tiny_cad/CCEN.py b/mesh_tiny_cad/CCEN.py
index 24604e8f..f97ca84b 100644
--- a/mesh_tiny_cad/CCEN.py
+++ b/mesh_tiny_cad/CCEN.py
@@ -65,7 +65,7 @@ def generate_bmesh_repr(p1, v1, axis, num_verts):
idx2 = (i + 1) % num_verts
bm.edges.new([v_refs[idx1], v_refs[idx2]])
- bmesh.update_edit_mesh(me, True)
+ bmesh.update_edit_mesh(me, loop_triangles=True)
def generate_3PT(pts, obj, nv, mode=1):
diff --git a/mesh_tiny_cad/E2F.py b/mesh_tiny_cad/E2F.py
index 70b51298..33ac79f3 100644
--- a/mesh_tiny_cad/E2F.py
+++ b/mesh_tiny_cad/E2F.py
@@ -79,7 +79,7 @@ def extend_vertex(self):
vertex_reference = v1_ref if (A_len < B_len) else v2_ref
bm.edges.new([vertex_reference, new_vertex])
- bmesh.update_edit_mesh(me, True)
+ bmesh.update_edit_mesh(me, loop_triangles=True)
else:
failure_message_on_plane(self)
diff --git a/mesh_tiny_cad/VTX.py b/mesh_tiny_cad/VTX.py
index f98e85cb..fbd0bc28 100644
--- a/mesh_tiny_cad/VTX.py
+++ b/mesh_tiny_cad/VTX.py
@@ -170,6 +170,6 @@ class TCAutoVTX(bpy.types.Operator):
bm.verts.index_update()
bm.edges.index_update()
- bmesh.update_edit_mesh(me, True)
+ bmesh.update_edit_mesh(me, loop_triangles=True)
return {'FINISHED'}