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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-23 08:38:19 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-03 15:38:41 +0400
commit308ec601b28c8f663d85f09010c95a2168fba134 (patch)
tree50273ebd0e08bcf3128566e50e890d0dfcde14c5 /source/blender/blenkernel/intern/linestyle.c
parent0cd49fde56ba61a4a530555798afd67a8fe0aabc (diff)
Fix for missing initialization and copying of FreestyleLineStyle::pr_texture value.
Diffstat (limited to 'source/blender/blenkernel/intern/linestyle.c')
-rw-r--r--source/blender/blenkernel/intern/linestyle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c
index ee55cf72419..b0395931ffe 100644
--- a/source/blender/blenkernel/intern/linestyle.c
+++ b/source/blender/blenkernel/intern/linestyle.c
@@ -92,6 +92,7 @@ static void default_linestyle_settings(FreestyleLineStyle *linestyle)
linestyle->sort_key = LS_SORT_KEY_DISTANCE_FROM_CAMERA;
linestyle->integration_type = LS_INTEGRATION_MEAN;
linestyle->texstep = 1.0f;
+ linestyle->pr_texture = TEX_PR_TEXTURE;
BLI_listbase_clear(&linestyle->color_modifiers);
BLI_listbase_clear(&linestyle->alpha_modifiers);
@@ -195,6 +196,7 @@ FreestyleLineStyle *BKE_copy_linestyle(FreestyleLineStyle *linestyle)
new_linestyle->gap3 = linestyle->gap3;
new_linestyle->panel = linestyle->panel;
new_linestyle->texstep = linestyle->texstep;
+ new_linestyle->pr_texture = linestyle->pr_texture;
for (m = (LineStyleModifier *)linestyle->color_modifiers.first; m; m = m->next)
BKE_copy_linestyle_color_modifier(new_linestyle, m);
for (m = (LineStyleModifier *)linestyle->alpha_modifiers.first; m; m = m->next)