Geometry Nodes: new Bake node #115466

Merged
Jacques Lucke merged 93 commits from JacquesLucke/blender:bake-geometry-nodes into main 2023-12-18 13:01:16 +01:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit f8672b5d48 - Show all commits

View File

@ -1268,7 +1268,8 @@ class NodesModifierBakeParams : public nodes::GeoNodesBakeParams {
auto frame_cache = std::make_unique<bake::FrameCache>();
frame_cache->frame = current_frame;
frame_cache->state = std::move(state);
/* TODO: Make sure the vector is sorted. */
BLI_assert(node_cache->bake.frames.is_empty() ||
node_cache->bake.frames.last()->frame < current_frame);
node_cache->bake.frames.append(std::move(frame_cache));
};
return;