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 0 additions and 1 deletions
Showing only changes of commit b551a6f770 - Show all commits

View File

@ -1189,7 +1189,6 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
}
/* Set temp pointer to mirrored ebones */
ebone = ED_armature_ebone_get_mirrored(arm->edbo, ebone_iter);
if (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.
ebone_iter->temp.ebone = ebone;
}