From 90e360c39fbe9ea0f9d0a441001d0dccfb158d04 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Tue, 9 Oct 2018 16:55:13 +0200 Subject: GP: Improve center object in viewport when press . Before when press . (view_select) the object was centered at the dummy, but now it's centered with the strokes bounding box size. Also fixed some problems in edit mode when the object origin was not in view origin. --- source/blender/blenkernel/BKE_gpencil.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenkernel/BKE_gpencil.h') diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index 058e42bd261..8ab088eff02 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -143,6 +143,9 @@ struct Material *BKE_gpencil_get_material_from_brush(struct Brush *brush); struct Material *BKE_gpencil_material_ensure(struct Main *bmain, struct Object *ob); /* object boundbox */ +bool BKE_gpencil_data_minmax( + struct Object *ob, const struct bGPdata *gpd, + float r_min[3], float r_max[3]); bool BKE_gpencil_stroke_minmax( const struct bGPDstroke *gps, const bool use_select, float r_min[3], float r_max[3]); -- cgit v1.2.3