Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-11-24 12:15:56 +0300
committerJacques Lucke <jacques@blender.org>2021-11-24 12:16:14 +0300
commitf8dea3fe648b9f834b6977476549911b71a899aa (patch)
tree7c5d611a25549ee4f45d9aca1c88a41140bc27e5 /source/blender
parent2ddbf81c478267535dde20c50750c26bf5c34b99 (diff)
Fix T93345: missing null check for geometry nodes logger
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes_evaluator.cc4
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,