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:
authorJacques Lucke <jacques@blender.org>2021-07-12 15:29:28 +0300
committerJacques Lucke <jacques@blender.org>2021-07-12 15:29:28 +0300
commit8e69409eed5f2034bf61115c31daa41484ba0d24 (patch)
treef2ddb1729c35a4a74364415ad503e29a7a5da65b /source/blender/nodes/intern/node_geometry_exec.cc
parent280dac323cc83dba9d95646c8cd4bcdbb1cb51c2 (diff)
Fix T89775: geometry nodes logging crash during render
Under some circumstances (e.g. when rendering) the geometry nodes logger is not used. This was missing a simple null check.
Diffstat (limited to 'source/blender/nodes/intern/node_geometry_exec.cc')
-rw-r--r--source/blender/nodes/intern/node_geometry_exec.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_geometry_exec.cc b/source/blender/nodes/intern/node_geometry_exec.cc
index 5755a14f14d..bfd1ad02d36 100644
--- a/source/blender/nodes/intern/node_geometry_exec.cc
+++ b/source/blender/nodes/intern/node_geometry_exec.cc
@@ -30,6 +30,9 @@ namespace blender::nodes {
void GeoNodeExecParams::error_message_add(const NodeWarningType type, std::string message) const
{
+ if (provider_->logger == nullptr) {
+ return;
+ }
LocalGeoLogger &local_logger = provider_->logger->local();
local_logger.log_node_warning(provider_->dnode, type, std::move(message));
}