Merge branch 'master' into blender2.8
This commit is contained in:
@@ -1209,9 +1209,8 @@ 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);
|
||||
const char *RNA_translate_ui_text(
|
||||
const char *text, const char *text_ctxt, struct StructRNA *type, struct PropertyRNA *prop, int translate);
|
||||
|
||||
/* ID */
|
||||
|
||||
|
||||
@@ -6860,8 +6860,7 @@ int RNA_function_call_direct_va_lookup(bContext *C, ReportList *reports, Pointer
|
||||
}
|
||||
|
||||
const char *RNA_translate_ui_text(
|
||||
const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop,
|
||||
int translate)
|
||||
const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, int translate)
|
||||
{
|
||||
return rna_translate_ui_text(text, text_ctxt, type, prop, translate);
|
||||
}
|
||||
|
||||
@@ -60,8 +60,8 @@ const EnumPropertyItem rna_enum_icon_items[] = {
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
const char *rna_translate_ui_text(const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop,
|
||||
int translate)
|
||||
const char *rna_translate_ui_text(
|
||||
const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, int translate)
|
||||
{
|
||||
/* Also return text if UI labels translation is disabled. */
|
||||
if (!text || !text[0] || !translate || !BLT_translate_iface()) {
|
||||
|
||||
Reference in New Issue
Block a user