[Bf-blender-cvs] [0c9ef211c95] greasepencil-object: Change default PixSize to 500
Antonio Vazquez
noreply at git.blender.org
Thu Aug 31 17:33:32 CEST 2017
Commit: 0c9ef211c95d87d9e3e5493b3537319887335f44
Author: Antonio Vazquez
Date: Thu Aug 31 16:57:31 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB0c9ef211c95d87d9e3e5493b3537319887335f44
Change default PixSize to 500
Thios value is better to keep default Blender size: 1 bu = 1 mts
===================================================================
M source/blender/blenkernel/intern/gpencil.c
M source/blender/makesdna/DNA_gpencil_types.h
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index df368ef36ef..b630953c7d8 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1859,7 +1859,7 @@ static bGPDstroke *gpencil_add_stroke(bGPDframe *gpf, Palette *palette, PaletteC
/* allocate memory for a new stroke */
bGPDstroke *gps = MEM_callocN(sizeof(bGPDstroke), "gp_stroke");
- gps->thickness = thickness;
+ gps->thickness = thickness * (GP_DEFAULT_PIX_FACTOR / 40);
gps->inittime = 0;
/* enable recalculation flag by default */
gps->flag = GP_STROKE_RECALC_CACHES | GP_STROKE_3DSPACE;
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 4c56d70ed11..84adfa7c9ed 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -40,7 +40,7 @@ struct GHash;
/* TODO: add size as userprefs parameter */
#define GP_OBGPENCIL_DEFAULT_SIZE 0.2f
-#define GP_DEFAULT_PIX_FACTOR 40
+#define GP_DEFAULT_PIX_FACTOR 500
/* information of vertex group weight */
typedef struct bGPDweight {
More information about the Bf-blender-cvs
mailing list