diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-26 00:07:21 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-26 00:07:29 +0300 |
commit | e746999aa937f6de638a339d52e1f2e494014919 (patch) | |
tree | bbbee291c46684b31e6411e5fb3a58331ec945c3 /source/blender | |
parent | b3714b1e85fd81d4f7db3c562483232fd6a89807 (diff) |
Fix T101309: crash when executing geometry nodes without logger
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/nodes/intern/geometry_nodes_lazy_function.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc index 55697478989..7a78547b10b 100644 --- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc +++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc @@ -535,6 +535,12 @@ class LazyFunctionForViewerNode : public LazyFunction { { GeoNodesLFUserData *user_data = dynamic_cast<GeoNodesLFUserData *>(context.user_data); BLI_assert(user_data != nullptr); + if (user_data->modifier_data == nullptr) { + return; + } + if (user_data->modifier_data->eval_log == nullptr) { + return; + } GeometrySet geometry = params.extract_input<GeometrySet>(0); |