diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-02 14:19:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-02 14:19:39 +0300 |
commit | 6552d5bebdc5bc990ddcdf2119b86a322b1bb4ec (patch) | |
tree | 6d60508cf426c858893239887d73ee33547ef2e3 /intern/cycles/render/graph.h | |
parent | d0a9ec5efcebd66896b75010ee6093b505e99ad2 (diff) |
Cycles: Avoid recursion when doing constant fold
This reduces stress on the the stack memory which could be really handy
on certain operation systems which applies strict limits on the stack.
Reviewers: brecht, juicyfruit, dingto
Reviewed By: brecht, juicyfruit, dingto
Differential Revision: https://developer.blender.org/D1656
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r-- | intern/cycles/render/graph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index 17fb75d459f..420648f6425 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -316,7 +316,7 @@ protected: void break_cycles(ShaderNode *node, vector<bool>& visited, vector<bool>& on_stack); void clean(Scene *scene); void simplify_settings(Scene *scene); - void constant_fold(set<ShaderNode*>& visited, ShaderNode *node); + void constant_fold(); void bump_from_displacement(); void refine_bump_nodes(); void default_inputs(bool do_osl); |