Blender Git Commit Log
Git Commits -> Revision 43711d8
Revision 43711d8 by Lukas Toenne (master) March 7, 2012, 12:30 (GMT) |
Simplified the ntreeUpdate function by getting rid of the dependency list and limiting resorting to cases where it is actually necessary (when nodes get added/removed or links change). Node updates should generally be local by design, i.e. changes should not depend on any of the other nodes in the same tree. The original purpose of the dependency sort was to allow some experimental nodes to update their socket types based on upstream connected nodes, but these have been removed long ago. If such features need to be implemented they should instead use the tree-wide update callback, which is called after all the local node updates are done. Removing the extra allocation and recursive function calls from most updates will ensure this function stays as fast as possible and can be called during node space context updates (snode_set_context), which are done very frequently (redraw). |
Commit Details:
Full Hash: 43711d856891c46c1dc898554f40534d9b5f529f
SVN Revision: 44700
Parent Commit: e6c2f05
Lines Changed: +37, -25
1 Modified Path:
/source/blender/blenkernel/intern/node.c (+37, -25) (Diff)