[Bf-blender-cvs] [4ce5b85fe17] greasepencil-object: Cleanup: Replace by standard function
Antonio Vazquez
noreply at git.blender.org
Sun Jul 16 17:43:27 CEST 2017
Commit: 4ce5b85fe17b88597edc8354fecb817a7a42a966
Author: Antonio Vazquez
Date: Sun Jul 16 15:48:29 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB4ce5b85fe17b88597edc8354fecb817a7a42a966
Cleanup: Replace by standard function
===================================================================
M source/blender/blenkernel/intern/gpencil.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 8b42b50c2bd..391debf63d3 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1484,26 +1484,7 @@ void static gpencil_minmax(bGPdata *gpd, float min[3], float max[3])
}
for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) {
for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
- /* min */
- if (pt->x < min[0]) {
- min[0] = pt->x;
- }
- if (pt->y < min[1]) {
- min[1] = pt->y;
- }
- if (pt->z < min[2]) {
- min[2] = pt->z;
- }
- /* max */
- if (pt->x > max[0]) {
- max[0] = pt->x;
- }
- if (pt->y > max[1]) {
- max[1] = pt->y;
- }
- if (pt->z > max[2]) {
- max[2] = pt->z;
- }
+ minmax_v3v3_v3(min, max, &pt->x);
}
}
}
More information about the Bf-blender-cvs
mailing list