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>2018-09-07 23:23:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 23:23:25 +0300
commitf23319d0958bdfc860f884dd261c652b158d587f (patch)
tree442b64ec044aa8e21b83eb5604aa4a015cecbaae /source/blender/makesrna/intern/rna_screen.c
parent9c7195789d4f6c1a4c10cf4cfea96fcd75b703e6 (diff)
RNA: Area.header_text_set text is now required
Diffstat (limited to 'source/blender/makesrna/intern/rna_screen.c')
-rw-r--r--source/blender/makesrna/intern/rna_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c
index 72514984188..f9dedc73280 100644
--- a/source/blender/makesrna/intern/rna_screen.c
+++ b/source/blender/makesrna/intern/rna_screen.c
@@ -325,12 +325,14 @@ static void rna_def_area_spaces(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_area_api(StructRNA *srna)
{
FunctionRNA *func;
+ PropertyRNA *parm;
RNA_def_function(srna, "tag_redraw", "ED_area_tag_redraw");
func = RNA_def_function(srna, "header_text_set", "ED_area_status_text");
RNA_def_function_ui_description(func, "Set the header status text");
- RNA_def_string(func, "text", NULL, 0, "Text", "New string for the header, no argument clears the text");
+ parm = RNA_def_string(func, "text", NULL, 0, "Text", "New string for the header, no argument clears the text");
+ RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
}
static void rna_def_area(BlenderRNA *brna)