[Bf-blender-cvs] [965bc714424] temp-object-multi-mode: Fix median center calculation
Campbell Barton
noreply at git.blender.org
Tue Apr 10 20:38:54 CEST 2018
Commit: 965bc714424ecee6a7a9dc847bff2c5639a6ff20
Author: Campbell Barton
Date: Tue Apr 10 20:35:15 2018 +0200
Branches: temp-object-multi-mode
https://developer.blender.org/rB965bc714424ecee6a7a9dc847bff2c5639a6ff20
Fix median center calculation
===================================================================
M source/blender/editors/transform/transform_generics.c
===================================================================
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index db581a0210f..5315f6e4c4c 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -1829,10 +1829,10 @@ void calculateCenterMedian(TransInfo *t, float r_center[3])
}
}
}
+ } // FIXME(indent)
if (total) {
mul_v3_fl(partial, 1.0f / (float)total);
}
- } // FIXME(indent)
copy_v3_v3(r_center, partial);
}
@@ -1858,6 +1858,7 @@ void calculateCenterBound(TransInfo *t, float r_center[3])
}
}
}
+ is_first = false;
}
else {
copy_v3_v3(max, th->data[i].center);
More information about the Bf-blender-cvs
mailing list