[Bf-blender-cvs] [aaac963dfa7] blender2.8: UI: move grease pencil entry in add menu.

Brecht Van Lommel noreply at git.blender.org
Wed Aug 8 20:34:23 CEST 2018


Commit: aaac963dfa74cda9b46f440e1d73c52636ad6b4a
Author: Brecht Van Lommel
Date:   Wed Aug 8 20:22:40 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBaaac963dfa74cda9b46f440e1d73c52636ad6b4a

UI: move grease pencil entry in add menu.

The first group of object types is renderable geometry which this belongs
to more than the second group, which are unrenderable utility objects.

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 72296861ad9..1c345fd3f00 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1481,12 +1481,12 @@ class INFO_MT_add(Menu):
         layout.menu("INFO_MT_surface_add", icon='OUTLINER_OB_SURFACE')
         layout.menu("INFO_MT_metaball_add", text="Metaball", icon='OUTLINER_OB_META')
         layout.operator("object.text_add", text="Text", icon='OUTLINER_OB_FONT')
+        layout.operator_menu_enum("object.gpencil_add", "type", text="Grease Pencil", icon='OUTLINER_OB_GREASEPENCIL')
         layout.separator()
 
         layout.menu("INFO_MT_armature_add", icon='OUTLINER_OB_ARMATURE')
         layout.operator("object.add", text="Lattice", icon='OUTLINER_OB_LATTICE').type = 'LATTICE'
         layout.operator_menu_enum("object.empty_add", "type", text="Empty", icon='OUTLINER_OB_EMPTY')
-        layout.operator_menu_enum("object.gpencil_add", "type", text="Grease Pencil", icon='OUTLINER_OB_GREASEPENCIL')
         layout.separator()
 
         layout.operator("object.speaker_add", text="Speaker", icon='OUTLINER_OB_SPEAKER')



More information about the Bf-blender-cvs mailing list