Blender Git Commit Log

Git Commits -> Revision 8382494

Revision 8382494 by Sergey Sharybin (master)
March 2, 2016, 12:58 (GMT)
Avoid node tree update tag when changed nodes which are not affecting result

This was we don't have re-compo or viewport re-rendering happening when changing
nodes which are not connected to the output at all (for example when adding new
nodes or changing settings for unconnected nodes).

Only basic operations are covered for now. checks could be added to more tools
when needed.

Currently it's not fully optimal implementation, but seems to work fast enough.
Don't see reliable alternative to that -- keeping tag in the node wouldn't work
because of the node groups (which are probably already broken, but should be
easy to solve with current approach). So guess it's more matter of optimizing
path search from a node to output.

Before processing forward let's check whether it's indeed something we want
and whether the approach is indeed not fully bad.

Reviewers: campbellbarton, mont29

Subscribers: sebastian_k

Differential Revision: https://developer.blender.org/D1765

Commit Details:

Full Hash: 83824947ba40c31a480819072b6f0fb2e7029a59
Parent Commit: 0d12e08
Lines Changed: +167, -45

11 Modified Paths:

/source/blender/editors/include/ED_node.h (+1, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+2, -1) (Diff)
/source/blender/editors/space_node/node_draw.c (+17, -8) (Diff)
/source/blender/editors/space_node/node_edit.c (+23, -10) (Diff)
/source/blender/editors/space_node/node_intern.h (+2, -0) (Diff)
/source/blender/editors/space_node/node_relationships.c (+98, -8) (Diff)
/source/blender/editors/space_node/node_templates.c (+3, -3) (Diff)
/source/blender/editors/uvedit/uvedit_ops.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_color.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+18, -11) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021