diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-02 19:33:55 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-02 19:43:43 +0300 |
commit | 6f1fa7aa256d2acc4bc91ff459c369db55ff8a02 (patch) | |
tree | 0e22d429a9b7c55e436c85cb7129652941bf132e /source/blender/makesrna/RNA_access.h | |
parent | 1fd5c90e63b6306e070db090bd272eb4ec942f60 (diff) |
Fix/enhance new RNA path from real ID helpers.
Main issue was that `rna_prepend_real_ID_path()` would return
nothing in case given path was NULL, when it should actually return the
`prefix` computed by `RNA_find_real_ID_and_path()` in that case...
Also make return `real_id` pointer optionnal, no reasons to make it
mandatory here. And some general naming fixes.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index c1199ac94b6..f9f05348c5c 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -1168,7 +1168,7 @@ char *RNA_path_from_real_ID_to_property_index(struct Main *bmain, PropertyRNA *prop, int array_dim, int index, - struct ID **r_real); + struct ID **r_real_id); char *RNA_path_resolve_from_type_to_property(struct PointerRNA *ptr, struct PropertyRNA *prop, |