Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2013-11-06 14:59:05 +0400
committerJoshua Leung <aligorith@gmail.com>2013-11-06 14:59:05 +0400
commit50ac2ee8dea2df1f95ef700e271e4111adb1ef48 (patch)
tree4eaa9e53eac6d8302e47d0c1d65e0c0386ca00d0 /source/blender/blenkernel/intern/gpencil.c
parent17994825f069e6b2c013de466f36fadfe9018579 (diff)
Grease Pencil: User-Pref for setting the default colour of newly created layers
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 4d17bd286b4..42e146301a2 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -38,6 +38,7 @@
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
+#include "BLI_math_vector.h"
#include "BLF_translation.h"
@@ -182,7 +183,7 @@ bGPDlayer *gpencil_layer_addnew(bGPdata *gpd, const char *name, int setactive)
BLI_addtail(&gpd->layers, gpl);
/* set basic settings */
- gpl->color[3] = 0.9f;
+ copy_v4_v4(gpl->color, U.gpencil_new_layer_col);
gpl->thickness = 3;
/* auto-name */