[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57153] trunk/blender/source/blender/ makesrna/intern/rna_text.c: Made text datablock properties 'is_in_memory' and 'is_dirty' editable in Python.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Fri May 31 09:40:04 CEST 2013


Revision: 57153
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57153
Author:   kjym3
Date:     2013-05-31 07:40:03 +0000 (Fri, 31 May 2013)
Log Message:
-----------
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).

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_text.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_text.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_text.c	2013-05-31 06:28:11 UTC (rev 57152)
+++ trunk/blender/source/blender/makesrna/intern/rna_text.c	2013-05-31 07:40:03 UTC (rev 57153)
@@ -148,7 +148,6 @@
 
 	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 @@
 
 	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);




More information about the Bf-blender-cvs mailing list