diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-29 06:38:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-29 06:39:34 +0300 |
commit | 97e3af9a05a35785e0b38bfd7a793871a94d29e3 (patch) | |
tree | 3bf0bba4b5ada6c83c2df42c7212ffa65b7a526a | |
parent | b7a03eed8b720b5c797a87d09882e660724a3df2 (diff) |
RNA: Add Screen.is_temporary
Useful to check if the current window is temporary.
-rw-r--r-- | source/blender/makesrna/intern/rna_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c index 6856d877fff..6982b8a7f52 100644 --- a/source/blender/makesrna/intern/rna_screen.c +++ b/source/blender/makesrna/intern/rna_screen.c @@ -553,6 +553,11 @@ static void rna_def_screen(BlenderRNA *brna) RNA_def_property_boolean_funcs(prop, "rna_Screen_is_animation_playing_get", NULL); RNA_def_property_ui_text(prop, "Animation Playing", "Animation playback is active"); + prop = RNA_def_property(srna, "is_temporary", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_boolean_sdna(prop, NULL, "temp", 1); + RNA_def_property_ui_text(prop, "Temporary", ""); + prop = RNA_def_property(srna, "show_fullscreen", PROP_BOOLEAN, PROP_NONE); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_boolean_funcs(prop, "rna_Screen_fullscreen_get", NULL); |