diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-05 00:59:47 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-05 00:59:47 +0400 |
commit | e5ec9f9f953dcc6a4ab0f937cd55199b0cf4f4fb (patch) | |
tree | 24f9aa1af38cca105802a1743b2e70960c75cc5d /release | |
parent | 41202e25e781543eaabfa5be90e2de0f1b7f94a8 (diff) |
Quick fix for [#32764] Some new object types are added at the origin instead of the 3D cursor
Own fault (r50994). Those "add object" ops really need a cleanup to make them more consistent! Will try to see this tomorrow.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py index a67c30e2b85..de58b5d1aaf 100644 --- a/release/scripts/startup/bl_ui/space_info.py +++ b/release/scripts/startup/bl_ui/space_info.py @@ -289,8 +289,11 @@ class INFO_MT_add(Menu): layout.separator() layout.menu("INFO_MT_armature_add", icon='OUTLINER_OB_ARMATURE') + # XXX Quick fix for [#32764]. + layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("object.add", text="Lattice", icon='OUTLINER_OB_LATTICE').type = 'LATTICE' layout.operator("object.add", text="Empty", icon='OUTLINER_OB_EMPTY').type = 'EMPTY' + layout.operator_context = 'EXEC_REGION_WIN' layout.separator() layout.operator("object.speaker_add", text="Speaker", icon='OUTLINER_OB_SPEAKER') |