diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-24 17:33:47 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-24 17:33:47 +0400 |
commit | 8ac1d8a4eafe4988ae6c6049bb0ebd40381e46ae (patch) | |
tree | 38c7d8e0385de1099071af0f903b26299a0af190 /source/blender/compositor/intern/COM_NodeOperation.cpp | |
parent | a1c9241797b003979c1da747e217e875c497c775 (diff) |
Fix #33650: Compositor locks up when input is an unrendered render layer.
Issue was caused by resolution detecting which assumed zero resolution is
undefined one and should be re-evaluated. It doesn't work in cases when
there's a missing input, causing lots of unneeded resolution re-calculation.
It wasn't so much issue in average sized node trees, but it was a real
problem in generated tree from the report.
Currently used pretty simple solution which added a boolean flag to the
node operation which signal whether resolution was ever set or not.
There're probably smarter solutions here but can not think about them.
Diffstat (limited to 'source/blender/compositor/intern/COM_NodeOperation.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_NodeOperation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_NodeOperation.cpp b/source/blender/compositor/intern/COM_NodeOperation.cpp index a05c37e1b09..d33b8085022 100644 --- a/source/blender/compositor/intern/COM_NodeOperation.cpp +++ b/source/blender/compositor/intern/COM_NodeOperation.cpp @@ -34,6 +34,7 @@ NodeOperation::NodeOperation() : NodeBase() this->m_complex = false; this->m_width = 0; this->m_height = 0; + this->m_isResolutionSet = false; this->m_openCL = false; this->m_btree = NULL; } |