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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-10 20:21:46 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-10 20:21:46 +0300
commitf314a00be16f9b3352425f86cc5a197fb2197367 (patch)
tree35b6ee63cade31de3f5bf95e6bdbcdcaa31de7de /source/blender/src/imagepaint.c
parent2a0ef5454d36637a7a76b99580ed1ec9eab6b968 (diff)
Bugfix for image painting crash on windows as reported on bf-committers.
Diffstat (limited to 'source/blender/src/imagepaint.c')
-rw-r--r--source/blender/src/imagepaint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/imagepaint.c b/source/blender/src/imagepaint.c
index f2266d9ac4a..a6b5f1654ef 100644
--- a/source/blender/src/imagepaint.c
+++ b/source/blender/src/imagepaint.c
@@ -654,7 +654,7 @@ void imagepaint_paint(short mousebutton, short texpaint)
time= PIL_check_seconds_timer();
prevmval[0]= mval[0];
prevmval[1]= mval[1];
- s.blend = (td->Active == 2)? BRUSH_BLEND_ERASE_ALPHA: s.brush->blend;
+ s.blend = (td && td->Active == 2)? BRUSH_BLEND_ERASE_ALPHA: s.brush->blend;
imapaint_paint_stroke(&s, painter, texpaint, prevmval, mval, time, pressure);
@@ -664,7 +664,7 @@ void imagepaint_paint(short mousebutton, short texpaint)
if(td) {
td= get_tablet_data();
pressure= (td)? td->Pressure: 1.0f;
- s.blend = (td->Active == 2)? BRUSH_BLEND_ERASE_ALPHA: s.brush->blend;
+ s.blend = (td && td->Active == 2)? BRUSH_BLEND_ERASE_ALPHA: s.brush->blend;
}
time= PIL_check_seconds_timer();