diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-08-15 13:44:31 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-08-15 13:45:15 +0400 |
commit | 01c5a65f7bb87d2531542a3221b4fd87923ddbee (patch) | |
tree | f84d0c40ade58b78f3ec13305ec9939475833180 /source/blender/blenkernel | |
parent | 27b4a1f7dda7cfb487cc8f27764235e46955ca58 (diff) |
Fix uninitialized imagepaint values on new scene, report by kopias on
irc
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index a6e23edba56..3aadf322156 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -259,6 +259,7 @@ Scene *BKE_scene_copy(Scene *sce, int type) BKE_paint_copy(&ts->imapaint.paint, &ts->imapaint.paint); ts->imapaint.paintcursor = NULL; + id_us_plus((ID *)ts->imapaint.stencil); ts->particle.paintcursor = NULL; } @@ -560,7 +561,9 @@ Scene *BKE_scene_add(Main *bmain, const char *name) sce->toolsettings->proportional_size = 1.0f; - sce->toolsettings->imapaint.paint.flags |= PAINT_SHOW_BRUSH; + sce->toolsettings->imapaint.paint.flags |= PAINT_SHOW_BRUSH;\ + sce->toolsettings->imapaint.normal_angle = 80; + sce->toolsettings->imapaint.seam_bleed = 2; sce->physics_settings.gravity[0] = 0.0f; sce->physics_settings.gravity[1] = 0.0f; |