[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4469] trunk/py/scripts/addons/ node_efficiency_tools.py: Changed axes in 'Align Nodes'.

Bartek Skorupa bartekskorupa at bartekskorupa.com
Sat Apr 13 11:02:17 CEST 2013


Revision: 4469
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4469
Author:   bartekskorupa
Date:     2013-04-13 09:02:11 +0000 (Sat, 13 Apr 2013)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/py/scripts/addons/node_efficiency_tools.py

Modified: trunk/py/scripts/addons/node_efficiency_tools.py
===================================================================
--- trunk/py/scripts/addons/node_efficiency_tools.py	2013-04-12 14:07:09 UTC (rev 4468)
+++ trunk/py/scripts/addons/node_efficiency_tools.py	2013-04-13 09:02:11 UTC (rev 4469)
@@ -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 @@
             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



More information about the Bf-extensions-cvs mailing list