diff options
author | Bastien Montagne <bastien@blender.org> | 2022-09-06 19:21:16 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-09-06 19:21:16 +0300 |
commit | 0c242ff72b15fd21d4d2d9af0e3382c9197d4ab5 (patch) | |
tree | 17f0af0a941be6ff1c3f31b1f329fdcdb02673d1 /source/blender/makesrna/intern/rna_scene.c | |
parent | e46687c3aacfd69bde83187233e73a8cc6fa5d8d (diff) |
Cleanup: IDManagement: Simplify `owner_get` calllback of IDTypeInfo.
Now that all embedded IDs have a loopback pointer to their owner, we do
need anymore extra parameters for this accessor.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index bedf823656a..61eb2a11c02 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -1483,7 +1483,7 @@ static void rna_ImageFormatSettings_color_management_set(PointerRNA *ptr, int va if (owner_id && GS(owner_id->name) == ID_NT) { /* For compositing nodes, find the corresponding scene. */ const IDTypeInfo *type_info = BKE_idtype_get_info_from_id(owner_id); - owner_id = type_info->owner_get(G_MAIN, owner_id, NULL); + owner_id = type_info->owner_get(owner_id); } if (owner_id && GS(owner_id->name) == ID_SCE) { BKE_image_format_color_management_copy_from_scene(imf, (Scene *)owner_id); |