Skip to content

Commit

Permalink
Added "Modulo" and "Absolute" math operations
Browse files Browse the repository at this point in the history
1. "NWBatchChangeNodes" class was missing two operations: "Modulo" and
"Absolute".
2. Order of operations was not up to date.
  • Loading branch information
BartekSkorupa committed Aug 13, 2014
1 parent 1367d7c commit 12cecc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node_efficiency_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -337,8 +337,8 @@
# 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'),
Expand All @@ -353,6 +353,8 @@
('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.
Expand Down

0 comments on commit 12cecc7

Please sign in to comment.