Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-09-06 19:21:16 +0300
committerBastien Montagne <bastien@blender.org>2022-09-06 19:21:16 +0300
commit0c242ff72b15fd21d4d2d9af0e3382c9197d4ab5 (patch)
tree17f0af0a941be6ff1c3f31b1f329fdcdb02673d1 /source/blender/makesrna/intern/rna_path.cc
parente46687c3aacfd69bde83187233e73a8cc6fa5d8d (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_path.cc')
-rw-r--r--source/blender/makesrna/intern/rna_path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_path.cc b/source/blender/makesrna/intern/rna_path.cc
index 72416401344..4f5e852a12c 100644
--- a/source/blender/makesrna/intern/rna_path.cc
+++ b/source/blender/makesrna/intern/rna_path.cc
@@ -944,7 +944,7 @@ ID *RNA_find_real_ID_and_path(Main *bmain, ID *id, const char **r_path)
BLI_assert_msg(0, "Missing handling of embedded id type.");
return id;
}
- return id_type->owner_get(bmain, id, nullptr);
+ return id_type->owner_get(id);
}
static char *rna_prepend_real_ID_path(Main *bmain, ID *id, char *path, ID **r_real_id)