Fix T58937: Appended menus to VIEW3D_MT_editor_menus are not displayed
authorCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 01:00:20 +0000 (12:00 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 01:00:20 +0000 (12:00 +1100)
release/scripts/modules/bpy_types.py

index c6552334dcfeca87b71f02236642012f7f110578..47f132027d2f08753fc112e49732e17d83d4fd03 100644 (file)
@@ -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')