Page MenuHome

Chrash when removing faces, edges or verts with bmesh
Closed, ArchivedPublic

Description

--- Operating System, Graphics card ---
Windows 7 64 bit, AMD Radeon HD 6470m

--- Blender version with error, and version that worked ---
blender-2.68-r59863-win64-vc11

--- Short description of error ---
When running this script blender chrashes

import bpy
import bmesh

bpy.ops.object.mode_set(mode='EDIT')
mesh = bpy.context.active_object.data
bm = bmesh.from_edit_mesh(mesh)

bm.faces.remove(bm.faces[0])
#bm.edges.remove(bm.edges[0])
#bm.verts.remove(bm.verts[0])


--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
Just run the script on the default cube


Event Timeline

Im afraid there isnt a good way around this at the moment,

You simply have to call "bmesh.update_edit_mesh(me)" after making destructive changes to the current editmesh.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Sep 12 2013, 1:14 PM