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>2009-01-08 00:05:51 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-01-08 00:05:51 +0300
commitff1db49e343f700b2e779f4fb9aebb0055bc34bc (patch)
treed2b26815eda2230ee66310c0aa6a695d3be2bcea /source/blender/makesrna/intern/rna_text.c
parentbd456965b904fe6d673da790681b40023bcf7a0a (diff)
RNA
* DNA_userdef_types.h, done. Patch by Nathaniel Garbutt, thanks!
Diffstat (limited to 'source/blender/makesrna/intern/rna_text.c')
-rw-r--r--source/blender/makesrna/intern/rna_text.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/makesrna/intern/rna_text.c b/source/blender/makesrna/intern/rna_text.c
index 77cff4f8d15..7834775c4b9 100644
--- a/source/blender/makesrna/intern/rna_text.c
+++ b/source/blender/makesrna/intern/rna_text.c
@@ -36,18 +36,6 @@
#ifdef RNA_RUNTIME
-static float rna_TextMarker_color_get(PointerRNA *ptr, int index)
-{
- TextMarker *marker= (TextMarker*)ptr->data;
- return marker->color[index]/255.0f;
-}
-
-static void rna_TextMarker_color_set(PointerRNA *ptr, int index, float value)
-{
- TextMarker *marker= (TextMarker*)ptr->data;
- marker->color[index] = (char)(CLAMPIS(value*255.0f, 0, 255));
-}
-
static void rna_Text_filename_get(PointerRNA *ptr, char *value)
{
Text *text= (Text*)ptr->data;
@@ -163,7 +151,6 @@ static void rna_def_text_marker(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Edit All", "Edit all markers of the same group as one.");
prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
- RNA_def_property_float_funcs(prop, "rna_TextMarker_color_get", "rna_TextMarker_color_set", NULL);
RNA_def_property_ui_text(prop, "Color", "Color to display the marker with.");
}