[Bf-blender-cvs] [524b2a0859b] temp-gpencil-fill: GPencil: Remove debug prints
Antonio Vazquez
noreply at git.blender.org
Wed Feb 3 12:36:54 CET 2021
Commit: 524b2a0859b60e0b929ec4db0b668ec5052e493f
Author: Antonio Vazquez
Date: Wed Feb 3 12:36:49 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rB524b2a0859b60e0b929ec4db0b668ec5052e493f
GPencil: Remove debug prints
===================================================================
M source/blender/editors/gpencil/gpencil_fill.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 7a6a0c2971b..2cc58e52e9d 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1842,16 +1842,11 @@ static void gpencil_zoom_level_set(tGPDfill *tgpf)
float width = ceilf(rect_bound.xmax - rect_bound.xmin);
float height = ceilf(rect_bound.ymax - rect_bound.ymin);
- printf("View: %d x %d\n", tgpf->region->winx, tgpf->region->winy);
- printf("Max: %f x %f\n", rect_max.xmax - rect_max.xmin, rect_max.ymax - rect_max.ymin);
- printf("Box: %f x %f\n", width, height);
-
float zoomx = (width > tgpf->region->winx) ? width / (float)tgpf->region->winx : 1.0f;
float zoomy = (height > tgpf->region->winy) ? height / (float)tgpf->region->winy : 1.0f;
if ((zoomx != 1.0f) || (zoomy != 1.0f)) {
tgpf->zoom = min_ff(ceil(max_ff(zoomx, zoomy) + 1.0f), 6.0f);
}
- printf("Zoom:%f\n", tgpf->zoom);
}
static bool gpencil_do_frame_fill(tGPDfill *tgpf, const bool is_inverted)
More information about the Bf-blender-cvs
mailing list