(possible) fix for [#31634]: bpy.ops.transform.edge_slide() segfault #31635

Closed
opened 2012-05-29 17:31:13 +02:00 by Philipp Oeser · 4 comments
Member

Patch for: #31634

%%%Hi,

calling "bpy.ops.transform.edge_slide()" from a python script will crash blender (see bug #31634).
[I've attached a little script that demonstrates this when run on a default cube].

createSlideVerts() in transform.c relies on both View3D and RegionView3D which I guess are NULL when called from a python script [Sorry, noobish investigations here :)].
I've attached a little patch that prevents the crash by avoiding function calls that rely on View3D and RegionView3D (and it seems to survive both interactive and from a python script). But as I said: I'm not sure if this is the right fix for this...%%%

**Patch for**: #31634 %%%Hi, calling "bpy.ops.transform.edge_slide()" from a python script will crash blender (see bug #31634). [I've attached a little script that demonstrates this when run on a default cube]. createSlideVerts() in transform.c relies on both View3D and RegionView3D which I guess are NULL when called from a python script [Sorry, noobish investigations here :)]. I've attached a little patch that prevents the crash by avoiding function calls that rely on View3D and RegionView3D (and it seems to survive both interactive and from a python script). But as I said: I'm not sure if this is the right fix for this...%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%Fix based on this patch committed, thanks!%%%

%%%Fix based on this patch committed, thanks!%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

%%%Thanx!%%%

%%%Thanx!%%%
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#31635
No description provided.