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:
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
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue