Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Patches: Browse

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

Date:
2012-05-29 17:31
Priority:
3
State:
Closed
Submitted by:
Philipp Oeser (lichtwerk)
Assigned to:
Nobody (None)
Category:
Python API
Group:
None
Resolution(Old, use status):
None
Resolution:
Applied
Patch for:
[#31634]
 
Summary:
(possible) fix for [#31634]: bpy.ops.transform.edge_slide() segfault
Detailed description
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...

Followup

Message
  • Date: 2012-05-31 21:07
  • Sender: Brecht Van Lommel
  • Fix based on this patch committed, thanks!
 

Attached Files:

Name Date Download
svn_diff_transform.c 2012-05-29 17:31 Download
bpy.ops.transform.edge_slide.segfault.py 2012-05-29 17:31 Download

Changes:

Field Old Value Date By
status_idOpen2012-05-31 21:07blendix
close_dateNone2012-05-31 21:07blendix
ResolutionOpen2012-05-31 21:07blendix
File Added20894: bpy.ops.transform.edge_slide.segfault.py2012-05-29 17:31lichtwerk
File Added20895: svn_diff_transform.c2012-05-29 17:31lichtwerk