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:
authorAntonioya <blendergit@gmail.com>2018-08-03 17:36:53 +0300
committerAntonioya <blendergit@gmail.com>2018-08-03 17:37:07 +0300
commit7288d4d8c4a390fb58509120809360a56c00e3cf (patch)
tree44fcba81374c162e35ca56858fbddf03e86ffee4 /source/blender/editors/gpencil/gpencil_old.c
parentfe8dcffd79488451f748a0c9cf33e7ca6579c028 (diff)
Replace wrong aasign material flag to BKE_MAT_ASSIGN_USERPREF
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_old.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_old.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_old.c b/source/blender/editors/gpencil/gpencil_old.c
index b7af1c80d4c..76d519fe371 100644
--- a/source/blender/editors/gpencil/gpencil_old.c
+++ b/source/blender/editors/gpencil/gpencil_old.c
@@ -129,7 +129,7 @@ static int gpencil_convert_old_files_exec(bContext *C, wmOperator *UNUSED(op))
/* create material slot */
BKE_object_material_slot_add(bmain, ob);
Material *ma = BKE_material_add_gpencil(bmain, palcolor->info);
- assign_material(bmain, ob, ma, ob->totcol, BKE_MAT_ASSIGN_EXISTING);
+ assign_material(bmain, ob, ma, ob->totcol, BKE_MAT_ASSIGN_USERPREF);
/* copy color settings */
MaterialGPencilStyle *gp_style = ma->gp_style;