Fix T93345: missing null check for geometry nodes logger

This commit is contained in:
Jacques Lucke 2021-11-24 10:15:56 +01:00
parent 2ddbf81c47
commit f8dea3fe64
Notes: blender-bot 2023-02-14 07:25:51 +01:00
Referenced by issue #93345, Segmentation Fault When Initiating Render of Geometry-Nodes-Generated Geometry
1 changed files with 3 additions and 1 deletions

View File

@ -937,7 +937,9 @@ class GeometryNodesEvaluator {
Clock::time_point end = Clock::now();
const std::chrono::microseconds duration =
std::chrono::duration_cast<std::chrono::microseconds>(end - begin);
params_.geo_logger->local().log_execution_time(node, duration);
if (params_.geo_logger != nullptr) {
params_.geo_logger->local().log_execution_time(node, duration);
}
}
void execute_multi_function_node(const DNode node,