[Bf-blender-cvs] [dc3d9467f2b] blender2.8: Fix T58937: Appended menus to VIEW3D_MT_editor_menus are not displayed

Campbell Barton noreply at git.blender.org
Thu Dec 20 02:03:20 CET 2018


Commit: dc3d9467f2b62bf241d95ab62312304a82ab3b28
Author: Campbell Barton
Date:   Thu Dec 20 12:00:20 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBdc3d9467f2b62bf241d95ab62312304a82ab3b28

Fix T58937: Appended menus to VIEW3D_MT_editor_menus are not displayed

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

M	release/scripts/modules/bpy_types.py

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

diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index c6552334dcf..47f132027d2 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -920,7 +920,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
         # only usable within headers
         if context.area.show_menus:
             # Align menus to space them closely.
-            cls.draw_menus(layout.row(align=True), context)
+            layout.row(align=True).menu_contents(cls.__name__)
         else:
             layout.menu(cls.__name__, icon='COLLAPSEMENU')



More information about the Bf-blender-cvs mailing list