diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-02 22:59:57 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-02 22:59:57 +0300 |
commit | 63fc267929e64cd8ab09d35cae12a172d3e218f3 (patch) | |
tree | dbc7e445a839e4a5c5f7dd27acd7176ee1b97cfd /release/scripts/ui | |
parent | bce687ef36de6898a59fa547af0b3c851e35a9d3 (diff) |
[#20213] Align to Transform Orientation crashes Blender
Align needs to be call with region context.
Also added checks to prevent this from crashing if not called properly.
Diffstat (limited to 'release/scripts/ui')
-rw-r--r-- | release/scripts/ui/space_view3d.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 5ad63a578d2..ea44e43c851 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -139,7 +139,7 @@ class VIEW3D_MT_transform(bpy.types.Menu): if context.edit_object and context.edit_object.type == 'ARMATURE': layout.operator("armature.align") else: - layout.operator_context = 'EXEC_AREA' + layout.operator_context = 'EXEC_REGION_WIN' layout.operator("tfm.transform", text="Align to Transform Orientation").mode = 'ALIGN' # XXX see alignmenu() in edit.c of b2.4x to get this working layout.separator() |