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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-31 18:02:40 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-31 18:02:40 +0300
commitb65a3e9337ac1d9c3870e0e04ee96090bc7e9b23 (patch)
treeb9eb920e1c9dfab0900d9277c31442330ced7870 /source/blender/makesrna/intern/rna_rna.c
parentba91587183105fb7edcab3d4f4e37ce0078bd86e (diff)
RNA
* DNA_text_types.h done, patch by Roelf de Kock. * Minor naming fixes in RNA-RNA.
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r--source/blender/makesrna/intern/rna_rna.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index 66cfa0c5d9a..47bfb1c8a4e 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -242,10 +242,10 @@ static int rna_Property_subtype_get(PointerRNA *ptr)
return prop->subtype;
}
-static int rna_Property_readonly_get(PointerRNA *ptr)
+static int rna_Property_editable_get(PointerRNA *ptr)
{
PropertyRNA *prop= (PropertyRNA*)ptr->data;
- return RNA_property_editable(ptr, prop) ? 0 : 1;
+ return RNA_property_editable(ptr, prop);
}
static int rna_Property_array_length_get(PointerRNA *ptr)
@@ -420,7 +420,7 @@ static void rna_def_struct(BlenderRNA *brna)
prop= RNA_def_property(srna, "description", PROP_STRING, PROP_NONE);
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
RNA_def_property_string_funcs(prop, "rna_Struct_description_get", "rna_Struct_description_length", NULL);
- RNA_def_property_ui_text(prop, "description", "This field explains the Struct's purpose");
+ RNA_def_property_ui_text(prop, "Description", "Description of the Struct's purpose.");
prop= RNA_def_property(srna, "base", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
@@ -497,10 +497,10 @@ static void rna_def_property(BlenderRNA *brna)
RNA_def_property_enum_funcs(prop, "rna_Property_subtype_get", NULL);
RNA_def_property_ui_text(prop, "Subtype", "Semantic interpretation of the property.");
- prop= RNA_def_property(srna, "readonly", PROP_INT, PROP_NONE);
+ prop= RNA_def_property(srna, "editable", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
- RNA_def_property_int_funcs(prop, "rna_Property_readonly_get", NULL, NULL);
- RNA_def_property_ui_text(prop, "Read Only", "Read Only setting for this property");
+ RNA_def_property_boolean_funcs(prop, "rna_Property_editable_get", NULL);
+ RNA_def_property_ui_text(prop, "Editable", "Property is editable through RNA.");
}
static void rna_def_number_property(StructRNA *srna, PropertyType type)