Blender closes unexpectely executing bmesh.ops.extrude_discrete_faces with a single selected face #54199

Closed
opened 2018-03-02 12:37:10 +01:00 by David Ballesteros · 3 comments

System Information
Windows 10 GeForce GTX 970

Blender Version
Broken: 2.79 and 279.a

Short description of error
I'm trying to bmesh.ops.extrude_discrete_faces to extrude a sibgle selected face on an add-on I'm developing.

I managed to reduce it on an add-on made with the template simple operator and the behaviour is the same.

Exact steps for others to reproduce the error

1.- Open Blender, change workspace to Scripting
2.- Open the attached operator_simple.py on the Text Editor.
3.- Enter edit mode.
4.- On the default Cube select ONE face.
5.- Check the Register option and Run the Script.
6.- On the Tools panel Click the Simple Operator button.
7.- Click with the LMB on the viewport.
8.- Blender crashes without error or warning.

operator_simple.py

Cheers,
David

**System Information** Windows 10 GeForce GTX 970 **Blender Version** Broken: 2.79 and 279.a **Short description of error** I'm trying to bmesh.ops.extrude_discrete_faces to extrude a sibgle selected face on an add-on I'm developing. I managed to reduce it on an add-on made with the template simple operator and the behaviour is the same. **Exact steps for others to reproduce the error** 1.- Open Blender, change workspace to Scripting 2.- Open the attached operator_simple.py on the Text Editor. 3.- Enter edit mode. 4.- On the default Cube select ONE face. 5.- Check the Register option and Run the Script. 6.- On the Tools panel Click the Simple Operator button. 7.- Click with the LMB on the viewport. 8.- Blender crashes without error or warning. [operator_simple.py](https://archive.blender.org/developer/F2403527/operator_simple.py) Cheers, David

Added subscriber: @dballesg

Added subscriber: @dballesg

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
David Ballesteros self-assigned this 2018-03-02 15:50:18 +01:00

Hi,

The script was missing:

##bmesh.update_edit_mesh(me, tessface=True, destructive=True)##

just before exit the execute() method.

I attached a working verison of the script.

operator_simple_fixed.py

Cheers
David

Hi, The script was missing: ##bmesh.update_edit_mesh(me, tessface=True, destructive=True)## just before exit the execute() method. I attached a working verison of the script. [operator_simple_fixed.py](https://archive.blender.org/developer/F2404375/operator_simple_fixed.py) Cheers David
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#54199
No description provided.