[Bf-blender-cvs] [97e3af9a05a] master: RNA: Add Screen.is_temporary

Campbell Barton noreply at git.blender.org
Sat Jun 29 05:40:25 CEST 2019


Commit: 97e3af9a05a35785e0b38bfd7a793871a94d29e3
Author: Campbell Barton
Date:   Sat Jun 29 13:38:12 2019 +1000
Branches: master
https://developer.blender.org/rB97e3af9a05a35785e0b38bfd7a793871a94d29e3

RNA: Add Screen.is_temporary

Useful to check if the current window is temporary.

===================================================================

M	source/blender/makesrna/intern/rna_screen.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list