diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-20 18:01:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-20 18:01:09 +0300 |
commit | 854cc87a80ef8526416b931ef735bc6bacb6ede5 (patch) | |
tree | 23daca51096463b272c7669efb0cf06d26272935 /source/blender/makesrna/intern/rna_text.c | |
parent | 320cc0f12a186292078e174f2862a6539ac4d258 (diff) |
option to have scripts run on startup for per blendfile UI's
Diffstat (limited to 'source/blender/makesrna/intern/rna_text.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_text.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_text.c b/source/blender/makesrna/intern/rna_text.c index 8c9b2b58887..bed686ed360 100644 --- a/source/blender/makesrna/intern/rna_text.c +++ b/source/blender/makesrna/intern/rna_text.c @@ -194,6 +194,10 @@ static void rna_def_text(BlenderRNA *brna) RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Memory", "Text file is in memory, without a corresponding file on disk."); + prop= RNA_def_property(srna, "use_module", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flags", TXT_ISSCRIPT); + RNA_def_property_ui_text(prop, "Register", "Register this text as a module on loading."); + prop= RNA_def_property(srna, "lines", PROP_COLLECTION, PROP_NONE); RNA_def_property_struct_type(prop, "TextLine"); RNA_def_property_ui_text(prop, "Lines", "Lines of text."); |