Merge branch 'master' into blender2.8
[blender.git] / release / scripts / startup / bl_ui / space_node.py
index 00f54c82036d4f2c52a3b4f6a960b4c0d74106ad..750c01d28e5814a3570eeda9f0fa9475d256279d 100644 (file)
@@ -43,7 +43,7 @@ class NODE_HT_header(Header):
         snode = context.space_data
         snode_id = snode.id
         id_from = snode.id_from
         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()
 
         row = layout.row(align=True)
         row.template_header()
@@ -155,10 +155,10 @@ class NODE_HT_header(Header):
 
         # Snap
         row = layout.row(align=True)
 
         # 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="")
 
 
 class NODE_MT_editor_menus(Menu):
 
 
 class NODE_MT_editor_menus(Menu):