Fix T93345: missing null check for geometry nodes logger
This commit is contained in:
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
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue