Code cleanup in rna files (huge, higly automated with py script).
Addresses: * C++ comments. * Spaces after if/for/while/switch statements. * Spaces around assignment operators.
This commit is contained in:
@@ -51,7 +51,7 @@ static void rna_Sequence_swap_internal(Sequence *seq_self, ReportList *reports,
|
||||
{
|
||||
const char *error_msg;
|
||||
|
||||
if(seq_swap(seq_self, seq_other, &error_msg) == 0)
|
||||
if (seq_swap(seq_self, seq_other, &error_msg) == 0)
|
||||
BKE_report(reports, RPT_ERROR, error_msg);
|
||||
}
|
||||
|
||||
@@ -62,16 +62,16 @@ void RNA_api_sequence_strip(StructRNA *srna)
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
|
||||
func= RNA_def_function(srna, "getStripElem", "give_stripelem");
|
||||
func = RNA_def_function(srna, "getStripElem", "give_stripelem");
|
||||
RNA_def_function_ui_description(func, "Return the strip element from a given frame or None");
|
||||
parm= RNA_def_int(func, "frame", 0, -MAXFRAME, MAXFRAME, "Frame",
|
||||
parm = RNA_def_int(func, "frame", 0, -MAXFRAME, MAXFRAME, "Frame",
|
||||
"The frame to get the strip element from", -MAXFRAME, MAXFRAME);
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
RNA_def_function_return(func, RNA_def_pointer(func, "elem", "SequenceElement", "", "strip element of the current frame"));
|
||||
|
||||
func= RNA_def_function(srna, "swap", "rna_Sequence_swap_internal");
|
||||
func = RNA_def_function(srna, "swap", "rna_Sequence_swap_internal");
|
||||
RNA_def_function_flag(func, FUNC_USE_REPORTS);
|
||||
parm= RNA_def_pointer(func, "other", "Sequence", "Other", "");
|
||||
parm = RNA_def_pointer(func, "other", "Sequence", "Other", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user