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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-05-31 11:40:03 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-05-31 11:40:03 +0400
commit2ad930e41a1d280a8801615cb9ee5eedf40b7d79 (patch)
tree77bb59a8ec49634638ebd3cb1895da1249683e1f /source/blender/makesrna/intern/rna_text.c
parent54e8cacdcf5fb06441530d7c5b10265733f6e54f (diff)
Made text datablock properties 'is_in_memory' and 'is_dirty' editable in Python.
The rationale of this revision is to provide an easy way to make text datablocks internal from within Python (i.e., by setting these properties to True and the 'filepath' property to empty string).
Diffstat (limited to 'source/blender/makesrna/intern/rna_text.c')
-rw-r--r--source/blender/makesrna/intern/rna_text.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_text.c b/source/blender/makesrna/intern/rna_text.c
index df6181af4b2..b1eb0bb2228 100644
--- a/source/blender/makesrna/intern/rna_text.c
+++ b/source/blender/makesrna/intern/rna_text.c
@@ -148,7 +148,6 @@ static void rna_def_text(BlenderRNA *brna)
prop = RNA_def_property(srna, "is_dirty", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", TXT_ISDIRTY);
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Dirty", "Text file has been edited since last save");
prop = RNA_def_property(srna, "is_modified", PROP_BOOLEAN, PROP_NONE);
@@ -158,7 +157,6 @@ static void rna_def_text(BlenderRNA *brna)
prop = RNA_def_property(srna, "is_in_memory", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", TXT_ISMEM);
- 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);