Simulation Nodes: bake simulation states to disk #106937

Merged
Jacques Lucke merged 116 commits from JacquesLucke/blender:sim-bake into geometry-nodes-simulation 2023-04-22 14:48:56 +02:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 27a38a7dbc - Show all commits

View File

@ -417,7 +417,14 @@ static Curves *try_load_curves(const DictionaryValue &io_geometry,
if (!io_curve_offsets) {
return cancel();
}
if (!read_bdata_simple_gspan(bdata_reader, *io_curve_offsets, curves.offsets_for_write())) {
implicit_sharing::free_shared_data(&curves.curve_offsets,
&curves.runtime->curve_offsets_sharing_info);
if (!read_bdata_shared_simple_span(*io_curve_offsets,
bdata_reader,
bdata_sharing,
num_curves + 1,
&curves.curve_offsets,
&curves.runtime->curve_offsets_sharing_info)) {
return cancel();
}
}