Fix #108262: Create cache folder only for modifiers with used sim zones #108278

Merged
Lukas Tönne merged 1 commits from LukasTonne/blender:fix_unused_cache_folder_creation into blender-v3.6-release 2023-05-30 12:25:28 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}