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
This commit is contained in:
Jacques Lucke
2024-04-01 17:59:29 +02:00
parent 935666a622
commit 7934ebd4e4

View File

@@ -839,7 +839,7 @@ static Vector<NodeBakeRequest> 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;