Page MenuHome

Blender 2.81 Crash with ob.data.update()
Open, Confirmed, MediumPublic

Description

System Information
Operating system: Win 10
Graphics card: Gtx1080Ti

Blender Version
Broken: 2.81

Assuming the presence of a group of vertices named 'Group'

import bpy, bmesh

ob = bpy.context.active_object        
vertex_name = 'Group'                   
find = ob.vertex_groups.get(vertex_name)
me = ob.data   
if find:        
    bpy.ops.object.mode_set(mode='EDIT') 
    bpy.ops.object.vertex_group_set_active(group=vertex_name)
    bpy.ops.object.vertex_group_select()            
        
    bm = bmesh.from_edit_mesh(me)            
    bordi = [ e for e in bm.edges if e.select ]            
    bmesh.ops.subdivide_edges(bm,edges=bordi,use_grid_fill=True,cuts=1)
me.update()   ##################################################Blender Crash! i think only when vertex group are present

Details

Type
Bug

Event Timeline

Campbell Barton (campbellbarton) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.Oct 11 2019, 8:29 AM

Note that you should exit edit-mode before running update, nevertheless it shouldn't crash.