new bmesh refresh method #104995

Open
Jose Conseco wants to merge 1 commits from JoseConseco/blender-addons:main into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 7bfe53dda9 - Show all commits

View File

@ -1,5 +1,3 @@
# SPDX-FileCopyrightText: 2013-2022 Blender Foundation
#
# SPDX-License-Identifier: GPL-2.0-or-later
# Updated for 2.8 jan 5 2019
@ -181,9 +179,11 @@ def quad_from_edge(bm, edge_sel, context, event):
if loop.vert.index in uv_ori:
loop[uv_layer].uv = uv_ori[loop.vert.index]
bm.normal_update()
bmesh.update_edit_mesh(context.active_object.data)
# toggle mode, to force correct drawing
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.mode_set(mode='EDIT')
# bpy.ops.object.mode_set(mode='OBJECT')
# bpy.ops.object.mode_set(mode='EDIT')
# create a face from a single selected vertex, if it is an open vertex
@ -305,9 +305,10 @@ def quad_from_vertex(bm, vert_sel, context, event):
x, y = uv_sel
loop[uv_layer].uv = (x, y)
bmesh.update_edit_mesh(context.active_object.data)
# toggle mode, to force correct drawing
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.mode_set(mode='EDIT')
# bpy.ops.object.mode_set(mode='OBJECT')
# bpy.ops.object.mode_set(mode='EDIT')
def expand_vert(self, context, event):