From 7cd4e2781afcc164232ef7b9ea5cd3fc20165dea Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 10 Jan 2009 22:57:33 +0000 Subject: RNA * Finished DNA_lamp_types.h, DNA_world_types.h and DNA_sound_types.h. * Renamed "parent" struct property to "nested", and also remaining "from" usage to "base". * Added a NEVER_NULL subtype for pointers and use it for all properties that apply. * Make sure all structs have a description, and fix any other DOC_BROKEN descriptions, also many other naming consistency improvements. --- source/blender/makesrna/intern/rna_property.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source/blender/makesrna/intern/rna_property.c') diff --git a/source/blender/makesrna/intern/rna_property.c b/source/blender/makesrna/intern/rna_property.c index 12fdb4a9508..21d8958b665 100644 --- a/source/blender/makesrna/intern/rna_property.c +++ b/source/blender/makesrna/intern/rna_property.c @@ -47,7 +47,7 @@ static StructRNA* rna_GameProperty_refine(struct PointerRNA *ptr) case GPROP_STRING: return &RNA_GameStringProperty; case GPROP_TIME: - return &RNA_GameTimeProperty; + return &RNA_GameTimerProperty; default: return &RNA_GameProperty; } @@ -79,12 +79,12 @@ void RNA_def_gameproperty(BlenderRNA *brna) {GPROP_INT, "INT", "Integer", ""}, {GPROP_FLOAT, "FLOAT", "Float", ""}, {GPROP_STRING, "STRING", "String", ""}, - {GPROP_TIME, "TIME", "Time", ""}, + {GPROP_TIME, "TIMER", "Timer", ""}, {0, NULL, NULL, NULL}}; /* Base Struct for GameProperty */ srna= RNA_def_struct(brna, "GameProperty", NULL); - RNA_def_struct_ui_text(srna , "Game Property", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna , "Game Property", "Game engine user defined object property."); RNA_def_struct_sdna(srna, "bProperty"); RNA_def_struct_refine_func(srna, "rna_GameProperty_refine"); @@ -104,16 +104,16 @@ void RNA_def_gameproperty(BlenderRNA *brna) /* GameBooleanProperty */ srna= RNA_def_struct(brna, "GameBooleanProperty", "GameProperty"); - RNA_def_struct_ui_text(srna , "Game Boolean Property", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna , "Game Boolean Property", "Game engine user defined boolean property."); RNA_def_struct_sdna(srna, "bProperty"); - prop= RNA_def_property(srna, "boolean_value", PROP_BOOLEAN, PROP_NONE); + prop= RNA_def_property(srna, "value", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "data", 1); RNA_def_property_ui_text(prop, "Value", "Property value."); /* GameIntProperty */ srna= RNA_def_struct(brna, "GameIntProperty", "GameProperty"); - RNA_def_struct_ui_text(srna , "Game Integer Property", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna , "Game Integer Property", "Game engine user defined integer number property."); RNA_def_struct_sdna(srna, "bProperty"); prop= RNA_def_property(srna, "value", PROP_INT, PROP_NONE); @@ -123,7 +123,7 @@ void RNA_def_gameproperty(BlenderRNA *brna) /* GameFloatProperty */ srna= RNA_def_struct(brna, "GameFloatProperty", "GameProperty"); - RNA_def_struct_ui_text(srna, "Game Float Property", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna, "Game Float Property", "Game engine user defined floating pointer number property."); RNA_def_struct_sdna(srna, "bProperty"); prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE); @@ -133,8 +133,8 @@ void RNA_def_gameproperty(BlenderRNA *brna) RNA_def_property_float_funcs(prop, "rna_GameFloatProperty_value_get", "rna_GameFloatProperty_value_set", NULL); /* GameTimerProperty */ - srna= RNA_def_struct(brna, "GameTimeProperty", "GameProperty"); - RNA_def_struct_ui_text(srna, "Game Time Property", "DOC_BROKEN"); + srna= RNA_def_struct(brna, "GameTimerProperty", "GameProperty"); + RNA_def_struct_ui_text(srna, "Game Timer Property", "Game engine user defined timer property."); RNA_def_struct_sdna(srna, "bProperty"); prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE); @@ -145,7 +145,7 @@ void RNA_def_gameproperty(BlenderRNA *brna) /* GameStringProperty */ srna= RNA_def_struct(brna, "GameStringProperty", "GameProperty"); - RNA_def_struct_ui_text(srna, "Game String Property", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna, "Game String Property", "Game engine user defined text string property."); RNA_def_struct_sdna(srna, "bProperty"); prop= RNA_def_property(srna, "value", PROP_STRING, PROP_NONE); -- cgit v1.2.3