Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-15 18:32:37 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-15 18:32:37 +0400
commit12f04ea8ca707c933465ceb4a3246c43a7e4c5f0 (patch)
tree1a64c3e391c3deb5c061fb36ebcff5adc8414eab /space_view3d_spacebar_menu.py
parent9948cd6025f29fad12eaf6d3b0e738dfb2b50d4a (diff)
Fix T40629: Dynamic Space Bar adds Lattice instead of empty after adding at least one lattice object. Menu act correctly though.
Patch by meta-androcto (Brendon Murphy), thanks!
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r--space_view3d_spacebar_menu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index 18045aac..1afad420 100644
--- a/space_view3d_spacebar_menu.py
+++ b/space_view3d_spacebar_menu.py
@@ -658,8 +658,7 @@ class VIEW3D_MT_AddMenu(bpy.types.Menu):
layout.operator("object.add", text="Lattice",
icon='OUTLINER_OB_LATTICE').type = 'LATTICE'
layout.separator()
- layout.operator("object.add", text="Add Empty",
- icon='OUTLINER_OB_EMPTY')
+ layout.operator_menu_enum("object.empty_add", "type", text="Empty", icon='OUTLINER_OB_EMPTY')
layout.separator()
layout.operator("object.speaker_add", text="Speaker", icon='OUTLINER_OB_SPEAKER')
layout.separator()