From 9adfcad5b7ff942d23da79c550e8ec2ce1c89e17 Mon Sep 17 00:00:00 2001 From: Bartek Skorupa Date: Sat, 13 Apr 2013 09:02:11 +0000 Subject: Changed axes in 'Align Nodes'. Reverted unwanted change introduced when cleaning the code. Now 'Align Horizontally' is the equivelent of s -> x -> 0 with even spacing and 'Vertically': s -> y -> 0 with even spacing --- node_efficiency_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node_efficiency_tools.py') diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py index 6418dbfb..77213838 100644 --- a/node_efficiency_tools.py +++ b/node_efficiency_tools.py @@ -19,7 +19,7 @@ bl_info = { 'name': "Nodes Efficiency Tools", 'author': "Bartek Skorupa", - 'version': (2, 24), + 'version': (2, 25), 'blender': (2, 6, 6), 'location': "Node Editor Properties Panel (Ctrl-SPACE)", 'description': "Nodes Efficiency Tools", @@ -1015,7 +1015,7 @@ class AlignNodes(Operator, NodeToolBase): max_y_w = selected_sorted_y[count - 1][3] # width of node with max loc.y max_y_h = selected_sorted_y[count - 1][4] # height of node with max loc.y - if self.option == 'AXIS_X': + if self.option == 'AXIS_Y': # Horizontally. Equivelent of s -> x -> 0 with even spacing. loc_x = min_x #loc_y = (max_x_loc_y + min_x_loc_y) / 2.0 loc_y = (max_y - max_y_h / 2.0 + min_y - min_y_h / 2.0) / 2.0 -- cgit v1.2.3