diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-04-12 10:44:37 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-04-12 10:50:04 +0300 |
commit | 71cb0bdc43368c5041daac5565697b36d54d5186 (patch) | |
tree | 085977dee9c9e38955ce3cb4b42f79b97ea0b386 /source/blender/compositor/intern/COM_NodeOperation.h | |
parent | 75642b4cfd654b97e8096b97add58c4afa218413 (diff) |
Fix: File output uses incorrect resolution when first socket unused.
File output node always received the resolution from the first socket.
When that socket didn't had a link it would use a resolution of 0,0.
What lead to not saving the file at all.
This only effected Multi layer OpenEXR files.
This change would go over all the links to find the first valid
resolution.
Diffstat (limited to 'source/blender/compositor/intern/COM_NodeOperation.h')
-rw-r--r-- | source/blender/compositor/intern/COM_NodeOperation.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_NodeOperation.h b/source/blender/compositor/intern/COM_NodeOperation.h index d0bfe3c1311..baf3a0878b9 100644 --- a/source/blender/compositor/intern/COM_NodeOperation.h +++ b/source/blender/compositor/intern/COM_NodeOperation.h @@ -44,6 +44,13 @@ class NodeOperation; typedef NodeOperation SocketReader; /** + * RESOLUTION_INPUT_ANY is a wildcard when any resolution of an input can be used. + * This solves the issue that the FileInputNode in a group node cannot find the + * correct resolution. + */ +static constexpr unsigned int RESOLUTION_INPUT_ANY = 999999; + +/** * \brief Resize modes of inputsockets * How are the input and working resolutions matched * \ingroup Model |