diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-07-05 15:43:43 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-07-05 18:58:27 +0300 |
commit | eb48eeba8414b77463319236ae9e8ae19d74c4c9 (patch) | |
tree | 00a802b3fae7e78cffc5fa298a76e58205a63bc5 /source/blender/makesrna/RNA_access.h | |
parent | bdeeb29482af2ab44e03e4681eb079bdcff82b21 (diff) |
Expose rna_translate_ui_text to be used for interface templates
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index d1a76d8b216..a07cb86fdf7 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -1197,6 +1197,10 @@ int RNA_function_call_direct_va(struct bContext *C, struct ReportList *reports, int RNA_function_call_direct_va_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, const char *format, va_list args); +const char *RNA_translate_ui_text(const char *text, const char *text_ctxt, + struct StructRNA *type, struct PropertyRNA *prop, + int translate); + /* ID */ short RNA_type_to_ID_code(const StructRNA *type); |