Commit Graph

11 Commits

Author SHA1 Message Date
a8f00246ba Fix for bug [#13651] Convertor->Math->Divide broken
Changed the if statement to catch zero case properly.
2008-06-26 17:08:07 +00:00
4c391a0c30 * Simple addition to math node (comp and shading): Greater Than and Less Than modes. 2008-06-17 04:18:34 +00:00
f48c8dea16 Fix for bug #8582: compositor math node did not output any result
without input connections.
2008-03-16 20:04:41 +00:00
ca2f34db58 Changed logic for early out to require only one input, not two. This allows for an image to be processed with a value. 2007-07-23 15:22:34 +00:00
f628b9c442 One more time....I misunderstood the guidance about values as inputs for
the math node.  Now it functions with two values as inputs (no image 
neccissary).  Kinda back where it started ;)
2007-07-11 03:33:28 +00:00
c313f6db86 After chatting with Broken about grs comments on the default behavior
of the nodes, I realized I had strayed from the path of enlightened blending 
by causing the math node to create an output the size of the larger of the 
two inputs.  

It has been corrected create the output the size of the 
first image, and in its abscense the second image.  In the event of 
nether input containing image data the node does not function.  I also 
added some early out checks at the beginning of the function to speed it 
up a tad in these cases and commented the code a bit more.
2007-07-11 03:00:39 +00:00
1d66563d95 Committed patch fixing bug #6900. Math node now has reflective
behavior.
2007-07-10 02:06:10 +00:00
Nathan Letwory
fb0f61c0b0 === Node editor ===
* refactor copying and freeing of node->storage by handlerizing them.
  - freestoragefunc
  - copystoragefunc
  - node_util.c/h have generic handlers for these.
2007-04-04 13:58:12 +00:00
5c760e4811 Changed node type definitions to use a dynamic list.
This will allow python or plugin defined nodes to work as well.
(And fixes compile issues with MSVC in yesterdays commit for nodes)

Code provided by Nathan L.
Fixes in his code:
- free_nodesystem() was called too late (after guarded alloc was closed)
- free_nodesystem() was freeing nodes that were not malloced even
- free_nodesystem was using free, not freeN :)
- the typedefs needed to be malloced yes, to allow duplicate nodes like
  group but also for dynamic nodes.
2007-03-26 15:07:38 +00:00
c1e9018118 All UI code reverted to drawnode.c 2007-03-25 23:54:39 +00:00
611d1c523c Initial commit. Not in build system so shouldn't interfere with anything at this point. Will commit modified versions of existing files once build system is tested. 2007-03-24 06:57:29 +00:00