diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-04 09:36:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-04 09:36:11 +0300 |
commit | 3eb38a79d8843ef57e41156371058f7fb0d8dd6f (patch) | |
tree | 36fe53c8f034c6b35accdaba2f4ad223cade67e8 /source/blender | |
parent | 061b59a1d4f875ba965d67e573df3579c83352fb (diff) |
Loading raw targa now sets the filetype
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/intern/targa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c index 70b71ec4182..40dcdc9d24a 100644 --- a/source/blender/imbuf/intern/targa.c +++ b/source/blender/imbuf/intern/targa.c @@ -568,7 +568,7 @@ ImBuf *imb_loadtarga(unsigned char *mem, size_t mem_size, int flags, char colors else ibuf = IMB_allocImBuf(tga.xsize, tga.ysize, (tga.pixsize + 0x7) & ~0x7, IB_rect); if (ibuf == NULL) return NULL; - ibuf->ftype = TGA; + ibuf->ftype = (tga.imgtyp < 4) ? RAWTGA : TGA; mem = mem + 18 + tga.numid; cp[0] = 0xff; |