[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51057] trunk/blender/release/scripts/ startup/bl_ui/space_info.py: Quick fix for [#32764] Some new object types are added at the origin instead of the 3D cursor
Bastien Montagne
montagne29 at wanadoo.fr
Thu Oct 4 22:59:47 CEST 2012
Revision: 51057
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51057
Author: mont29
Date: 2012-10-04 20:59:47 +0000 (Thu, 04 Oct 2012)
Log Message:
-----------
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.
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50994
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_info.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_info.py 2012-10-04 20:31:08 UTC (rev 51056)
+++ trunk/blender/release/scripts/startup/bl_ui/space_info.py 2012-10-04 20:59:47 UTC (rev 51057)
@@ -289,8 +289,11 @@
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')
More information about the Bf-blender-cvs
mailing list