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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-21 19:48:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-21 23:30:08 +0300
commit024d40b504e4dc2a23824021bdcfe772a1f5f670 (patch)
tree617778f8e70e0c39300ae8f27c30ca1d05124c18 /source/blender/makesrna/intern/rna_ui_api.c
parent66c3a7c5502815af082feee73165d144bee78fb1 (diff)
Cleanup: comments (long lines) in makesrna
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_ui_api.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index c41e1623961..7ce9155e3d9 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -65,11 +65,12 @@ const char *rna_translate_ui_text(
/* Else, if an RNA type or property is specified, use its context. */
# if 0
- /* XXX Disabled for now. Unfortunately, their is absolutely no way from py code to get the RNA struct corresponding
- * to the 'data' (in functions like prop() & co), as this is pure runtime data. Hence, messages extraction
- * script can't determine the correct context it should use for such 'text' messages...
- * So for now, one have to explicitly specify the 'text_ctxt' when using prop() etc. functions,
- * if default context is not suitable.
+ /* XXX Disabled for now. Unfortunately, their is absolutely no way from py code to get the RNA
+ * struct corresponding to the 'data' (in functions like prop() & co),
+ * as this is pure runtime data. Hence, messages extraction script can't determine the
+ * correct context it should use for such 'text' messages...
+ * So for now, one have to explicitly specify the 'text_ctxt' when using prop() etc.
+ * functions, if default context is not suitable.
*/
if (prop) {
return BLT_pgettext(RNA_property_translation_context(prop), text);
@@ -1473,7 +1474,13 @@ void RNA_api_ui_layout(StructRNA *srna)
func, "Item. A widget to control color managed view settings settings.");
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
api_ui_item_rna_common(func);
- /* RNA_def_boolean(func, "show_global_settings", false, "", "Show widgets to control global color management settings"); */
+# if 0
+ RNA_def_boolean(func,
+ "show_global_settings",
+ false,
+ "",
+ "Show widgets to control global color management settings");
+# endif
/* node socket icon */
func = RNA_def_function(srna, "template_node_socket", "uiTemplateNodeSocket");