From 4f799a4359b49cfe7f6ba88272c786312071e3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Thu, 25 May 2023 14:54:18 +0200 Subject: [PATCH] Fix #108262: Create cache folder only for modifiers with used sim zones. --- source/blender/editors/object/object_bake_simulation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/object/object_bake_simulation.cc b/source/blender/editors/object/object_bake_simulation.cc index 1ae4479e565..194cf17082a 100644 --- a/source/blender/editors/object/object_bake_simulation.cc +++ b/source/blender/editors/object/object_bake_simulation.cc @@ -301,7 +301,7 @@ static void bake_simulation_job_startjob(void *customdata, } ModifierSimulationCache &sim_cache = *nmd.simulation_cache; const ModifierSimulationState *sim_state = sim_cache.get_state_at_exact_frame(frame); - if (sim_state == nullptr) { + if (sim_state == nullptr || sim_state->zone_states_.is_empty()) { continue; } -- 2.30.2