From de25b79ff5c4da7d2d604eaa33b8c520c246679b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 25 Feb 2021 10:17:31 +0100 Subject: Refactor: IDTypeInfo: Add `owner_get` to get owner of embedded IDs. This concerns currently only collections (`master_collection` of scenes) and root node trees. It removes the matching type-specific helpers (`BKE_collection_master_scene_search` and `BKE_node_tree_find_owner_ID`). No functional change expected here. NOTE: Current implementation of `owner_get` is far from optimal, we could probably do it better, see {T69169}. NOTE: While it could also have it, shapekeys IDTypeInfo was left out of this change for now. Mainly because it sould not be used currently, and we ultimately want to demote shape keys from ID status anyway. --- source/blender/blenkernel/intern/movieclip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/movieclip.c') diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c index 0265e1c8b2c..017a73593ee 100644 --- a/source/blender/blenkernel/intern/movieclip.c +++ b/source/blender/blenkernel/intern/movieclip.c @@ -355,6 +355,7 @@ IDTypeInfo IDType_ID_MC = { .make_local = NULL, .foreach_id = movie_clip_foreach_id, .foreach_cache = movie_clip_foreach_cache, + .owner_get = NULL, .blend_write = movieclip_blend_write, .blend_read_data = movieclip_blend_read_data, -- cgit v1.2.3