[Bf-blender-cvs] [d7d4baa50f9] blender2.8: GP: missing change in previous commit
Antonioya
noreply at git.blender.org
Sun Sep 9 11:48:10 CEST 2018
Commit: d7d4baa50f98990ae1af3cb2541a0934a0460318
Author: Antonioya
Date: Sun Sep 9 11:48:02 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd7d4baa50f98990ae1af3cb2541a0934a0460318
GP: missing change in previous commit
===================================================================
M source/blender/draw/engines/gpencil/gpencil_draw_utils.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 73a621a5f0f..1e24b337466 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -909,7 +909,7 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, void *vedata, T
bGPdata *gpd = ob->data;
MaterialGPencilStyle *gp_style = NULL;
- float obscale = (ob->size[0] + ob->size[1] + ob->size[2]) / 3.0f;
+ float obscale = mat4_to_scale(ob->obmat);
/* use the brush material */
Material *ma = BKE_gpencil_get_material_from_brush(brush);
More information about the Bf-blender-cvs
mailing list