From 7934ebd4e42f4d8702fd4e864ea87eacf0dbefdb Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 1 Apr 2024 17:59:29 +0200 Subject: [PATCH] Fix: baking simulation only bakes a single frame When using the bake button in a simulation zone, it currently only bakes a single frame. Still baking only works in the Bake node. Pull Request: https://projects.blender.org/blender/blender/pulls/120138 --- 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 2896337c52f..5ece43d0304 100644 --- a/source/blender/editors/object/object_bake_simulation.cc +++ b/source/blender/editors/object/object_bake_simulation.cc @@ -839,7 +839,7 @@ static Vector bake_single_node_gather_bake_request(bContext *C, } request.path = std::move(*bake_path); - if (bake->bake_mode == NODES_MODIFIER_BAKE_MODE_STILL) { + if (node->type == GEO_NODE_BAKE && bake->bake_mode == NODES_MODIFIER_BAKE_MODE_STILL) { const int current_frame = scene->r.cfra; request.frame_start = current_frame; request.frame_end = current_frame;