Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-08-21 21:36:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-21 21:38:05 +0300
commite6f8f189023d1472f77797789e0c2bea78716df6 (patch)
treeaa4c7021d4c67d2ee23c10c68964267222924810 /source/blender/editors/armature/armature_utils.c
parente83f0922011243a0085975fe41930ed34bb6c009 (diff)
Cleanup: clang-format
Diffstat (limited to 'source/blender/editors/armature/armature_utils.c')
-rw-r--r--source/blender/editors/armature/armature_utils.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_utils.c b/source/blender/editors/armature/armature_utils.c
index 63b55a3f1b8..cd299906b4c 100644
--- a/source/blender/editors/armature/armature_utils.c
+++ b/source/blender/editors/armature/armature_utils.c
@@ -381,8 +381,12 @@ void armature_tag_unselect(bArmature *arm)
void ED_armature_ebone_transform_mirror_update(bArmature *arm, EditBone *ebo, bool check_select)
{
- /* TODO When this function is called by property updates, cancelling the value change will not restore mirrored bone correctly. */
- /* Currently check_select==true when this function is called from a transform operator, eg. from 3d viewport. */
+ /* TODO When this function is called by property updates,
+ * cancelling the value change will not restore mirrored bone correctly. */
+
+ /* Currently check_select==true when this function is called from a transform operator,
+ * eg. from 3d viewport. */
+
/* no layer check, correct mirror is more important */
if (!check_select || ebo->flag & (BONE_TIPSEL | BONE_ROOTSEL)) {
EditBone *eboflip = ED_armature_ebone_get_mirrored(arm->edbo, ebo);
@@ -440,7 +444,8 @@ void ED_armature_ebone_transform_mirror_update(bArmature *arm, EditBone *ebo, bo
if (!check_select || ebo->flag & BONE_SELECTED) {
/* Mirror bone body properties (both head and tail are selected). */
- /* TODO: These values can also be changed from pose mode, so only mirroring them in edit mode is not ideal. */
+ /* TODO: These values can also be changed from pose mode,
+ * so only mirroring them in edit mode is not ideal. */
eboflip->dist = ebo->dist;
eboflip->weight = ebo->weight;