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.
This commit is contained in:
Jacques Lucke 2021-07-12 14:29:28 +02:00
parent 280dac323c
commit 8e69409eed
Notes: blender-bot 2023-02-14 08:28:46 +01:00
Referenced by issue #89775, Immediate quit on started render with AO, Mist layers & denoising
1 changed files with 3 additions and 0 deletions

View File

@ -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));
}