Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-01-18 20:34:26 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-01-19 20:23:53 +0300
commit36f0a1ead7ce59f6dd62e7fd032a28c49ae9a932 (patch)
tree0ce2023ef6ad57d9b8b1c35eeee8b19632df228a /source/blender/compositor
parentc3207d88c2f0f475dd55035e3e19b82f051608bc (diff)
Fix T84823: crash rendering with unconnected input socket in File Output node
Caused by rB957e292c5864. Now just skip unconnected sockets. Maniphest Tasks: T84823 Differential Revision: https://developer.blender.org/D10137
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_OutputFileOperation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_OutputFileOperation.cpp b/source/blender/compositor/operations/COM_OutputFileOperation.cpp
index 0a7e238fed1..2f8740081a1 100644
--- a/source/blender/compositor/operations/COM_OutputFileOperation.cpp
+++ b/source/blender/compositor/operations/COM_OutputFileOperation.cpp
@@ -341,6 +341,10 @@ StampData *OutputOpenExrMultiLayerOperation::createStampData() const
render_result.stamp_data = stamp_data;
for (int i = 0; i < this->m_layers.size(); i++) {
const OutputOpenExrLayer *layer = &this->m_layers[i];
+ /* Skip unconnected sockets. */
+ if (layer->imageInput == nullptr) {
+ continue;
+ }
std::unique_ptr<MetaData> meta_data = layer->imageInput->getMetaData();
if (meta_data) {
blender::StringRef layer_name = blender::BKE_cryptomatte_extract_layer_name(