Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <billreynish>2018-10-08 20:10:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-08 20:46:00 +0300
commit6a41691a0d92e2582bd0f4f42f59affc2d8b850d (patch)
tree67c5ba36683d3a0972e2ee2e150f17774d7409c4 /release/scripts/startup/bl_ui/space_node.py
parentcf8e71db615c2d74bf87f18ab8389a675cbe6c51 (diff)
UI: layout tweaks for headers.
* Move all copy & paste operators into the menus. There was no real reason why these particular operators should be in the header and not in the menus, like all other operators * Move ‘Update Automatically’ toggle from UV/Image Editor header into menu. * Move the pin toggle next to the ID blocks, because it is related. * Move OpenGL render from sequence header into View menu. * Sequence editor display mode and channels are now not expanded.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r--release/scripts/startup/bl_ui/space_node.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index b976a4b44ea..26b52617616 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -141,11 +141,12 @@ class NODE_HT_header(Header):
layout.template_ID(snode, "node_tree", new="node.new_node_tree")
+
+ layout.prop(snode, "pin", text="")
layout.separator_spacer()
layout.template_running_jobs()
- layout.prop(snode, "pin", text="")
layout.operator("node.tree_path_parent", text="", icon='FILE_PARENT')
# Snap
@@ -155,10 +156,6 @@ class NODE_HT_header(Header):
if toolsettings.snap_node_element != 'GRID':
row.prop(toolsettings, "snap_target", text="")
- row = layout.row(align=True)
- row.operator("node.clipboard_copy", text="", icon='COPYDOWN')
- row.operator("node.clipboard_paste", text="", icon='PASTEDOWN')
-
class NODE_MT_editor_menus(Menu):
bl_idname = "NODE_MT_editor_menus"
@@ -266,7 +263,8 @@ class NODE_MT_node(Menu):
layout.operator("transform.resize")
layout.separator()
-
+ layout.operator("node.clipboard_copy", text="Copy")
+ layout.operator("node.clipboard_paste", text="Paste")
layout.operator("node.duplicate_move")
layout.operator("node.delete")
layout.operator("node.delete_reconnect")