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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-17 09:20:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-17 09:22:50 +0300
commit42b9df5907d041a5a68585308b1e11b2eac2c947 (patch)
tree571862dcfcafbd707a44eb2b7d5b98718c012d9b /release/scripts/startup/bl_ui/space_node.py
parent98f43ba3e4cb0a26eb62ea98e27a313265f8948c (diff)
Cleanup: use 'tool_settings' name everywhere in UI scripts
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, 5 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index c2735998d2c..e14708e651d 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -43,7 +43,7 @@ class NODE_HT_header(Header):
snode = context.space_data
snode_id = snode.id
id_from = snode.id_from
- toolsettings = context.tool_settings
+ tool_settings = context.tool_settings
row = layout.row(align=True)
row.template_header()
@@ -123,10 +123,10 @@ class NODE_HT_header(Header):
# Snap
row = layout.row(align=True)
- row.prop(toolsettings, "use_snap", text="")
- row.prop(toolsettings, "snap_node_element", icon_only=True)
- if toolsettings.snap_node_element != 'GRID':
- row.prop(toolsettings, "snap_target", text="")
+ row.prop(tool_settings, "use_snap", text="")
+ row.prop(tool_settings, "snap_node_element", icon_only=True)
+ if tool_settings.snap_node_element != 'GRID':
+ row.prop(tool_settings, "snap_target", text="")
row = layout.row(align=True)
row.operator("node.clipboard_copy", text="", icon='COPYDOWN')