Removed bad copied UI strings and comment from texture slot rna code.
This commit is contained in:
@@ -1848,7 +1848,6 @@ void RNA_def_material(BlenderRNA *brna)
|
||||
}
|
||||
|
||||
|
||||
/* curve.splines */
|
||||
static void rna_def_texture_slots(BlenderRNA *brna, PropertyRNA *cprop, const char *structname, const char *structname_slots)
|
||||
{
|
||||
StructRNA *srna;
|
||||
@@ -1863,13 +1862,11 @@ static void rna_def_texture_slots(BlenderRNA *brna, PropertyRNA *cprop, const ch
|
||||
|
||||
/* functions */
|
||||
func= RNA_def_function(srna, "add", "rna_mtex_texture_slots_add");
|
||||
RNA_def_function_ui_description(func, "Add a number of points to this spline.");
|
||||
RNA_def_function_flag(func, FUNC_USE_SELF_ID|FUNC_NO_SELF|FUNC_USE_CONTEXT|FUNC_USE_REPORTS);
|
||||
parm= RNA_def_pointer(func, "mtex", structname, "", "The newly initialized mtex.");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func= RNA_def_function(srna, "create", "rna_mtex_texture_slots_create");
|
||||
RNA_def_function_ui_description(func, "Add a number of points to this spline.");
|
||||
RNA_def_function_flag(func, FUNC_USE_SELF_ID|FUNC_NO_SELF|FUNC_USE_CONTEXT|FUNC_USE_REPORTS);
|
||||
parm= RNA_def_int(func, "index", 0, 0, INT_MAX, "Index", "Slot index to initialize.", 0, INT_MAX);
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
@@ -1877,7 +1874,6 @@ static void rna_def_texture_slots(BlenderRNA *brna, PropertyRNA *cprop, const ch
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func= RNA_def_function(srna, "clear", "rna_mtex_texture_slots_clear");
|
||||
RNA_def_function_ui_description(func, "Add a number of points to this spline.");
|
||||
RNA_def_function_flag(func, FUNC_USE_SELF_ID|FUNC_NO_SELF|FUNC_USE_CONTEXT|FUNC_USE_REPORTS);
|
||||
parm= RNA_def_int(func, "index", 0, 0, INT_MAX, "Index", "Slot index to clar.", 0, INT_MAX);
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
|
||||
Reference in New Issue
Block a user