[Bf-blender-cvs] [15b6167] temp_imbuf_types_refactor: Initialize imbuf options correctly (thanks Campbell)
Antony Riakiotakis
noreply at git.blender.org
Mon Jul 13 13:29:07 CEST 2015
Commit: 15b6167c208256f16003413bfd309c24b374aeec
Author: Antony Riakiotakis
Date: Mon Jul 13 13:28:53 2015 +0200
Branches: temp_imbuf_types_refactor
https://developer.blender.org/rB15b6167c208256f16003413bfd309c24b374aeec
Initialize imbuf options correctly (thanks Campbell)
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index bd9b789..35cd81c 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -1210,6 +1210,8 @@ void BKE_image_all_free_anim_ibufs(int cfra)
int BKE_image_imtype_to_ftype(const char imtype, ImbFormatOptions *r_options)
{
+ r_options->flag = r_options->quality = 0;
+
if (imtype == R_IMF_IMTYPE_TARGA)
return IMB_FTYPE_TGA;
else if (imtype == R_IMF_IMTYPE_RAWTGA) {
More information about the Bf-blender-cvs
mailing list