From 12cecc760801c9f7a104741f2d136983431fd14a Mon Sep 17 00:00:00 2001 From: Bartek Skorupa <bartekskorupa@bartekskorupa.com> Date: Wed, 13 Aug 2014 16:46:56 +0200 Subject: [PATCH] Added "Modulo" and "Absolute" math operations 1. "NWBatchChangeNodes" class was missing two operations: "Modulo" and "Absolute". 2. Order of operations was not up to date. --- node_efficiency_tools.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py index 1328fb2b2..48d1d5010 100644 --- a/node_efficiency_tools.py +++ b/node_efficiency_tools.py @@ -19,7 +19,7 @@ bl_info = { "name": "Node Wrangler (aka Nodes Efficiency Tools)", "author": "Bartek Skorupa, Greg Zaal", - "version": (3, 10), + "version": (3, 11), "blender": (2, 71, 0), "location": "Node Editor Properties Panel or Ctrl-Space", "description": "Various tools to enhance and speed up node-based workflow", @@ -337,8 +337,8 @@ blend_types = [ # used list, not tuple for easy merging with other lists. operations = [ ('ADD', 'Add', 'Add Mode'), - ('MULTIPLY', 'Multiply', 'Multiply Mode'), ('SUBTRACT', 'Subtract', 'Subtract Mode'), + ('MULTIPLY', 'Multiply', 'Multiply Mode'), ('DIVIDE', 'Divide', 'Divide Mode'), ('SINE', 'Sine', 'Sine Mode'), ('COSINE', 'Cosine', 'Cosine Mode'), @@ -353,6 +353,8 @@ operations = [ ('ROUND', 'Round', 'Round Mode'), ('LESS_THAN', 'Less Than', 'Less Than Mode'), ('GREATER_THAN', 'Greater Than', 'Greater Than Mode'), + ('MODULO', 'Modulo', 'Modulo Mode'), + ('ABSOLUTE', 'Absolute', 'Absolute Mode'), ] # in NWBatchChangeNodes additional types/operations. Can be used as 'items' for EnumProperty. -- GitLab