Blender Git Loki

Git Commits -> Revision 1776f75

Revision 1776f75 by Alexander Gavrilov (master)
July 31, 2016, 00:34 (GMT)
Cycles: constant fold add/mul type nodes with known 0 and 1 arguments.

These values often either turn the node into a no-op, or even make it
evaluate to 0 no matter what the other input value is, thus allowing
deletion of a branch of the node graph that otherwise is not constant.

Reviewed By: brecht

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

Commit Details:

Full Hash: 1776f75c3b3621a28ed7af535192ce7f05faea8f
Parent Commit: ea2ebf7
Committed By: Brecht Van Lommel
Lines Changed: +257, -44

3 Modified Paths:

/intern/cycles/render/constant_fold.cpp (+236, -6) (Diff)
/intern/cycles/render/constant_fold.h (+13, -3) (Diff)
/intern/cycles/render/nodes.cpp (+8, -35) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021