Cleanup: comments, use negate_mat3_m4
authorCampbell Barton <ideasman42@gmail.com>
Fri, 18 May 2018 17:55:04 +0000 (19:55 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 18 May 2018 17:56:34 +0000 (19:56 +0200)
source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c
source/blender/editors/mesh/editmesh_add_manipulator.c
source/blender/makesrna/intern/rna_wm_api.c

index 770e7716dd27ca5788b4e857360337ce75fe0c14..86c3b4a09de26841924025bf5a12c9dcf3fb5bbe 100644 (file)
@@ -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. */
index cb531151b84194029fb303eaf2d141c6f6cada36..65e12e673af674342b5a3681c5c78691537cc415 100644 (file)
@@ -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]);
index ba955d65ac563e598068560727fb7032cc4834f7..a08a1846c5b27fb4061ab535a1def16428a524c8 100644 (file)
@@ -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", "", "");