diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-24 12:15:56 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-24 12:16:14 +0300 |
commit | f8dea3fe648b9f834b6977476549911b71a899aa (patch) | |
tree | 7c5d611a25549ee4f45d9aca1c88a41140bc27e5 /source/blender/modifiers/intern | |
parent | 2ddbf81c478267535dde20c50750c26bf5c34b99 (diff) |
Fix T93345: missing null check for geometry nodes logger
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes_evaluator.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc index 0deef91d413..fbba3553e97 100644 --- a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc +++ b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc @@ -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, |