[Bf-blender-cvs] [36aa8499e80] master: UI: Use icon in Dopesheet 'Toggle Graph Editor' menu item.

Pablo Vazquez noreply at git.blender.org
Mon Feb 11 15:46:13 CET 2019


Commit: 36aa8499e80dfcb73ebebb0c365a7a01460fa5a4
Author: Pablo Vazquez
Date:   Mon Feb 11 15:46:00 2019 +0100
Branches: master
https://developer.blender.org/rB36aa8499e80dfcb73ebebb0c365a7a01460fa5a4

UI: Use icon in Dopesheet 'Toggle Graph Editor' menu item.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index 0a2e9ca3a82..5a75ddffd23 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -354,7 +354,7 @@ class DOPESHEET_MT_view(Menu):
 
         # Add this to show key-binding (reverse action in dope-sheet).
         layout.separator()
-        props = layout.operator("wm.context_set_enum", text="Toggle Graph Editor")
+        props = layout.operator("wm.context_set_enum", text="Toggle Graph Editor", icon="GRAPH")
         props.data_path = "area.type"
         props.value = 'GRAPH_EDITOR'



More information about the Bf-blender-cvs mailing list