[Bf-blender-cvs] [600b6f20695] blender2.8: UI: icon keyword argument to popmenu_begin__internal

Aleksandr Zinovev noreply at git.blender.org
Tue Sep 4 19:33:08 CEST 2018


Commit: 600b6f20695080079424417713b38f6e71debefc
Author: Aleksandr Zinovev
Date:   Tue Sep 4 20:32:34 2018 +0300
Branches: blender2.8
https://developer.blender.org/rB600b6f20695080079424417713b38f6e71debefc

UI: icon keyword argument to popmenu_begin__internal

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

M	release/scripts/modules/bpy_types.py

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

diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index fd5dd884b44..55912e28c04 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -137,7 +137,7 @@ class WindowManager(bpy_types.ID):
 
     def popup_menu(self, draw_func, title="", icon='NONE'):
         import bpy
-        popup = self.popmenu_begin__internal(title, icon)
+        popup = self.popmenu_begin__internal(title, icon=icon)
 
         try:
             draw_func(popup, bpy.context)



More information about the Bf-blender-cvs mailing list