[Bf-blender-cvs] [9b4a57f74cb] master: UI: Add copy/paste icons to Graph and Dopesheet editor context menus
William Reynish
noreply at git.blender.org
Tue May 7 20:52:43 CEST 2019
Commit: 9b4a57f74cb2a089756637d124b87806e0b05e8b
Author: William Reynish
Date: Tue May 7 20:52:41 2019 +0200
Branches: master
https://developer.blender.org/rB9b4a57f74cb2a089756637d124b87806e0b05e8b
UI: Add copy/paste icons to Graph and Dopesheet editor context menus
Consistent with others
===================================================================
M release/scripts/startup/bl_ui/space_dopesheet.py
M release/scripts/startup/bl_ui/space_graph.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index af6a0c4c582..d7aa593210c 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -565,9 +565,9 @@ class DOPESHEET_MT_context_menu(Menu):
def draw(self, _context):
layout = self.layout
- layout.operator("action.copy", text="Copy")
- layout.operator("action.paste", text="Paste")
- layout.operator("action.paste", text="Paste Flipped").flipped = True
+ layout.operator("action.copy", text="Copy", icon='COPYDOWN')
+ layout.operator("action.paste", text="Paste", icon='PASTEDOWN')
+ layout.operator("action.paste", text="Paste Flipped", icon='PASTEFLIPDOWN').flipped = True
layout.separator()
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index b71c0582dd9..445f6a3fe3d 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -328,9 +328,9 @@ class GRAPH_MT_context_menu(Menu):
def draw(self, _context):
layout = self.layout
- layout.operator("graph.copy", text="Copy")
- layout.operator("graph.paste", text="Paste")
- layout.operator("graph.paste", text="Paste Flipped").flipped = True
+ layout.operator("graph.copy", text="Copy", icon='COPYDOWN')
+ layout.operator("graph.paste", text="Paste", icon='PASTEDOWN')
+ layout.operator("graph.paste", text="Paste Flipped", icon='PASTEFLIPDOWN').flipped = True
layout.separator()
More information about the Bf-blender-cvs
mailing list