diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-06 16:20:25 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-06 16:20:25 +0300 |
commit | 5bb1a05d9ed2b5776683ab5b81d649449f655c17 (patch) | |
tree | 73c70fb86350e53a5cdb09e4f19c944930e05421 | |
parent | 2b1e84c0de47e9771ef0e4d51ced2123bc195864 (diff) |
handle node tree in lib_query.c
-rw-r--r-- | source/blender/blenkernel/intern/lib_query.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c index 90525fdde3c..adc7d205301 100644 --- a/source/blender/blenkernel/intern/lib_query.c +++ b/source/blender/blenkernel/intern/lib_query.c @@ -1285,6 +1285,15 @@ static void library_foreach_ID_link(Main *bmain, } break; } + case ID_SIM: { + Simulation *simulation = (Simulation *)id; + if (simulation->nodetree) { + /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ + library_foreach_ID_as_subdata_link( + (ID **)&simulation->nodetree, callback, user_data, flag, &data); + } + break; + } /* Nothing needed for those... */ case ID_IM: @@ -1294,8 +1303,6 @@ static void library_foreach_ID_link(Main *bmain, case ID_PAL: case ID_PC: case ID_CF: - case ID_SIM: - break; /* Deprecated. */ case ID_IP: |