Cleanup: move comment into function doc-string

This commit is contained in:
2021-02-26 16:30:06 +11:00
parent c67b03b810
commit c402cfa308
6 changed files with 3 additions and 5 deletions

View File

@@ -187,7 +187,6 @@ static void armature_undosys_step_decode(struct bContext *C,
{
ArmatureUndoStep *us = (ArmatureUndoStep *)us_p;
/* Load all our objects into edit-mode, clear everything else. */
ED_undo_object_editmode_restore_helper(
C, &us->elems[0].obedit_ref.ptr, us->elems_len, sizeof(*us->elems));

View File

@@ -248,7 +248,6 @@ static void curve_undosys_step_decode(struct bContext *C,
{
CurveUndoStep *us = (CurveUndoStep *)us_p;
/* Load all our objects into edit-mode, clear everything else. */
ED_undo_object_editmode_restore_helper(
C, &us->elems[0].obedit_ref.ptr, us->elems_len, sizeof(*us->elems));

View File

@@ -221,7 +221,6 @@ static void lattice_undosys_step_decode(struct bContext *C,
{
LatticeUndoStep *us = (LatticeUndoStep *)us_p;
/* Load all our objects into edit-mode, clear everything else. */
ED_undo_object_editmode_restore_helper(
C, &us->elems[0].obedit_ref.ptr, us->elems_len, sizeof(*us->elems));

View File

@@ -775,7 +775,6 @@ static void mesh_undosys_step_decode(struct bContext *C,
{
MeshUndoStep *us = (MeshUndoStep *)us_p;
/* Load all our objects into edit-mode, clear everything else. */
ED_undo_object_editmode_restore_helper(
C, &us->elems[0].obedit_ref.ptr, us->elems_len, sizeof(*us->elems));

View File

@@ -196,7 +196,6 @@ static void mball_undosys_step_decode(struct bContext *C,
{
MBallUndoStep *us = (MBallUndoStep *)us_p;
/* Load all our objects into edit-mode, clear everything else. */
ED_undo_object_editmode_restore_helper(
C, &us->elems[0].obedit_ref.ptr, us->elems_len, sizeof(*us->elems));

View File

@@ -863,6 +863,9 @@ void ED_undo_object_set_active_or_warn(
}
}
/**
* Load all our objects from `object_array` into edit-mode, clear everything else.
*/
void ED_undo_object_editmode_restore_helper(struct bContext *C,
Object **object_array,
uint object_array_len,