diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-12 19:28:47 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-12 19:28:47 +0400 |
commit | 00e1187a18428e8218443b8cff30b839ce1cfa89 (patch) | |
tree | c0d8a57973f661746ebe441a1a60ad9ce1b30242 /source/blender/src/imagepaint.c | |
parent | bad72cec611664dcb68776281efd436c793465f7 (diff) |
UV/Image Editor: Paint option crashed when using on float images.
Should support this once too... but that's another project.
Diffstat (limited to 'source/blender/src/imagepaint.c')
-rw-r--r-- | source/blender/src/imagepaint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/imagepaint.c b/source/blender/src/imagepaint.c index 23cd624703e..3aed860442f 100644 --- a/source/blender/src/imagepaint.c +++ b/source/blender/src/imagepaint.c @@ -89,7 +89,7 @@ static int imagepaint_init(IMG_BrushPtr **brush, IMG_CanvasPtr **canvas, IMG_Can ImagePaintTool *tool= &Gip.tool[Gip.current]; /* verify that we can paint */ - if(!G.sima->image || !G.sima->image->ibuf) + if(!G.sima->image || !G.sima->image->ibuf || !G.sima->image->ibuf->rect) return 0; else if(G.sima->image->packedfile) { error("Painting in packed images not supported"); |