new bmesh refresh method #104995
13
mesh_f2.py
13
mesh_f2.py
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user