Cleanup: comments, use negate_mat3_m4
This commit is contained in:
@@ -306,7 +306,7 @@ static void MANIPULATOR_WT_button_2d(wmManipulatorType *wt)
|
||||
prop = RNA_def_property(wt->srna, "icon", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_enum_icon_items);
|
||||
|
||||
/* Passed to 'GPU_batch_from_poly_2d_encoded' */
|
||||
/* Passed to 'GPU_batch_tris_from_poly_2d_encoded' */
|
||||
RNA_def_property(wt->srna, "shape", PROP_STRING, PROP_BYTESTRING);
|
||||
|
||||
/* Currently only used for cursor display. */
|
||||
|
||||
@@ -189,9 +189,7 @@ static void manipulator_placement_prop_matrix_set(
|
||||
mul_m4_m4m4(mat, man->cage->matrix_basis, value);
|
||||
|
||||
if (is_negative_m4(mat)) {
|
||||
negate_v3(mat[0]);
|
||||
negate_v3(mat[1]);
|
||||
negate_v3(mat[2]);
|
||||
negate_mat3_m4(mat);
|
||||
}
|
||||
|
||||
RNA_property_float_set_array(op->ptr, man->data.prop_matrix, &mat[0][0]);
|
||||
|
||||
@@ -572,7 +572,7 @@ void RNA_api_wm(StructRNA *srna)
|
||||
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR);
|
||||
|
||||
|
||||
/* wrap UI_popover_panel_begin */
|
||||
/* wrap UI_popover_begin */
|
||||
func = RNA_def_function(srna, "popover_begin__internal", "rna_PopoverBegin");
|
||||
RNA_def_function_flag(func, FUNC_NO_SELF | FUNC_USE_CONTEXT);
|
||||
/* return */
|
||||
@@ -580,7 +580,7 @@ void RNA_api_wm(StructRNA *srna)
|
||||
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR);
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
/* wrap UI_popover_panel_end */
|
||||
/* wrap UI_popover_end */
|
||||
func = RNA_def_function(srna, "popover_end__internal", "rna_PopoverEnd");
|
||||
RNA_def_function_flag(func, FUNC_NO_SELF | FUNC_USE_CONTEXT);
|
||||
parm = RNA_def_pointer(func, "menu", "UIPopover", "", "");
|
||||
|
||||
Reference in New Issue
Block a user