Simulation: cleanup dna data

This commit is contained in:
2020-07-25 11:54:06 +02:00
parent ddd4fec386
commit eeaa4379aa
6 changed files with 69 additions and 69 deletions

View File

@@ -8677,9 +8677,8 @@ static void direct_link_volume(BlendDataReader *reader, Volume *volume)
static void lib_link_simulation(BlendLibReader *reader, Simulation *simulation)
{
LISTBASE_FOREACH (
PersistentDataHandleItem *, handle_item, &simulation->persistent_data_handles) {
BLO_read_id_address(reader, simulation->id.lib, &handle_item->id);
LISTBASE_FOREACH (SimulationDependency *, dependency, &simulation->dependencies) {
BLO_read_id_address(reader, simulation->id.lib, &dependency->id);
}
}
@@ -8698,7 +8697,7 @@ static void direct_link_simulation(BlendDataReader *reader, Simulation *simulati
}
}
BLO_read_list(reader, &simulation->persistent_data_handles);
BLO_read_list(reader, &simulation->dependencies);
}
/** \} */
@@ -11107,9 +11106,8 @@ static void expand_simulation(BlendExpander *expander, Simulation *simulation)
if (simulation->adt) {
expand_animdata(expander, simulation->adt);
}
LISTBASE_FOREACH (
PersistentDataHandleItem *, handle_item, &simulation->persistent_data_handles) {
BLO_expand(expander, handle_item->id);
LISTBASE_FOREACH (SimulationDependency *, dependency, &simulation->dependencies) {
BLO_expand(expander, dependency->id);
}
}