Animation: Armature symmetrize ebones refactor #106487

Manually merged
Sybren A. Stüvel merged 5 commits from cgtinker/blender:symmetrize-refactoring into main 2023-05-15 11:09:36 +02:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 4cd6bf07d0 - Show all commits

View File

@ -1189,9 +1189,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
}
/* Set temp pointer to mirrored ebones */
if (ebone) {
ebone_iter->temp.ebone = ebone;
}
ebone_iter->temp.ebone = ebone;

When you're here in the code, ebone is guaranteed to be non-NULL.
And even if it were to be NULL, setting ebone_iter->temp.ebone = NULL in that case also wouldn't hurt.

When you're here in the code, `ebone` is guaranteed to be non-`NULL`. And even if it were to be `NULL`, setting `ebone_iter->temp.ebone = NULL` in that case also wouldn't hurt.

Right, I've overlooked that, thanks.

Right, I've overlooked that, thanks.
}
/* Find the selected bones and duplicate them as needed, with mirrored name. */