diff options
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 52f0d259058..20d65e52b09 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -4345,6 +4345,7 @@ static void registerFunctionNodes(void) register_node_type_fn_switch(); register_node_type_fn_group_instance_id(); register_node_type_fn_combine_strings(); + register_node_type_fn_object_transforms(); } void init_nodesystem(void) diff --git a/source/blender/blenkernel/intern/simulation.cc b/source/blender/blenkernel/intern/simulation.cc index 1ac987d130d..1f11869e21c 100644 --- a/source/blender/blenkernel/intern/simulation.cc +++ b/source/blender/blenkernel/intern/simulation.cc @@ -89,6 +89,9 @@ static void simulation_copy_data(Main *bmain, ID *id_dst, const ID *id_src, cons } BLI_listbase_clear(&simulation_dst->states); + + BLI_duplicatelist(&simulation_dst->persistent_data_handles, + &simulation_src->persistent_data_handles); } static void free_simulation_state_head(SimulationState *state) @@ -169,6 +172,8 @@ static void simulation_free_data(ID *id) } BKE_simulation_state_remove_all(simulation); + + BLI_freelistN(&simulation->persistent_data_handles); } static void simulation_foreach_id(ID *id, LibraryForeachIDData *data) @@ -178,6 +183,10 @@ static void simulation_foreach_id(ID *id, LibraryForeachIDData *data) /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ BKE_library_foreach_ID_embedded(data, (ID **)&simulation->nodetree); } + LISTBASE_FOREACH ( + PersistentDataHandleItem *, handle_item, &simulation->persistent_data_handles) { + BKE_LIB_FOREACHID_PROCESS_ID(data, handle_item->id, IDWALK_CB_USER); + } } IDTypeInfo IDType_ID_SIM = { |