diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-07 04:07:44 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-07 04:07:44 +0300 |
commit | b8d986451805f324b0ba98f4b57b4cf89cee04ed (patch) | |
tree | 9c06546d6b75ab2ed36cf567ce343dfa56e1854c /source/blender/makesrna/RNA_path.h | |
parent | 9c4c9a889de6d25147efac33b9de8086f9c56951 (diff) |
Cleanup: remove unused Main argument to RNA_path functions
Note that lib_override functions have kept the unused argument,
but this may be removed too. It impacts many lib_override functions
so this can be handled separately.
Diffstat (limited to 'source/blender/makesrna/RNA_path.h')
-rw-r--r-- | source/blender/makesrna/RNA_path.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source/blender/makesrna/RNA_path.h b/source/blender/makesrna/RNA_path.h index 7ab8c6fa313..5e29905cc4f 100644 --- a/source/blender/makesrna/RNA_path.h +++ b/source/blender/makesrna/RNA_path.h @@ -189,7 +189,7 @@ char *RNA_path_from_struct_to_idproperty(PointerRNA *ptr, struct IDProperty *nee * \param[out] r_path: Path from the real ID to the initial ID. * \return The ID pointer, or NULL in case of failure. */ -struct ID *RNA_find_real_ID_and_path(struct Main *bmain, struct ID *id, const char **r_path); +struct ID *RNA_find_real_ID_and_path(struct ID *id, const char **r_path); char *RNA_path_from_ID_to_struct(const PointerRNA *ptr); @@ -227,22 +227,21 @@ char *RNA_path_resolve_from_type_to_property(const PointerRNA *ptr, * Get the ID as a python representation, eg: * bpy.data.foo["bar"] */ -char *RNA_path_full_ID_py(struct Main *bmain, struct ID *id); +char *RNA_path_full_ID_py(struct ID *id); /** * Get the ID.struct as a python representation, eg: * bpy.data.foo["bar"].some_struct */ -char *RNA_path_full_struct_py(struct Main *bmain, const PointerRNA *ptr); +char *RNA_path_full_struct_py(const PointerRNA *ptr); /** * Get the ID.struct.property as a python representation, eg: * bpy.data.foo["bar"].some_struct.some_prop[10] */ -char *RNA_path_full_property_py_ex( - struct Main *bmain, const PointerRNA *ptr, PropertyRNA *prop, int index, bool use_fallback); -char *RNA_path_full_property_py(struct Main *bmain, - const PointerRNA *ptr, - PropertyRNA *prop, - int index); +char *RNA_path_full_property_py_ex(const PointerRNA *ptr, + PropertyRNA *prop, + int index, + bool use_fallback); +char *RNA_path_full_property_py(const PointerRNA *ptr, PropertyRNA *prop, int index); /** * Get the struct.property as a python representation, eg: * some_struct.some_prop[10] |