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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek Skorupa <bartekskorupa@bartekskorupa.com>2013-04-13 13:02:11 +0400
committerBartek Skorupa <bartekskorupa@bartekskorupa.com>2013-04-13 13:02:11 +0400
commit9adfcad5b7ff942d23da79c550e8ec2ce1c89e17 (patch)
tree8ef01f9d27470e787cf6ecdb23d3e8a8c6e6b71e /node_efficiency_tools.py
parent19d63c89c7d9f6e2ad9da9258d651a8826f37975 (diff)
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
Diffstat (limited to 'node_efficiency_tools.py')
-rw-r--r--node_efficiency_tools.py4
1 files changed, 2 insertions, 2 deletions
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