[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43410] trunk/blender/source: opengl render save ignored alpha settings.

Campbell Barton ideasman42 at gmail.com
Mon Jan 16 07:44:10 CET 2012


Revision: 43410
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43410
Author:   campbellbarton
Date:     2012-01-16 06:43:58 +0000 (Mon, 16 Jan 2012)
Log Message:
-----------
opengl render save ignored alpha settings. also some FILE_MAX defines missed last commit.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/render/render_opengl.c
    trunk/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
    trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

Modified: trunk/blender/source/blender/editors/render/render_opengl.c
===================================================================
--- trunk/blender/source/blender/editors/render/render_opengl.c	2012-01-16 05:52:33 UTC (rev 43409)
+++ trunk/blender/source/blender/editors/render/render_opengl.c	2012-01-16 06:43:58 UTC (rev 43410)
@@ -240,7 +240,7 @@
 			}
 
 			BKE_makepicstring(name, scene->r.pic, oglrender->bmain->name, scene->r.cfra, scene->r.im_format.imtype, scene->r.scemode & R_EXTENSION, FALSE);
-			ok= BKE_write_ibuf(ibuf, name, &scene->r.im_format); /* no need to stamp here */
+			ok= BKE_write_ibuf_as(ibuf, name, &scene->r.im_format, TRUE); /* no need to stamp here */
 			if(ok)	printf("OpenGL Render written to '%s'\n", name);
 			else	printf("OpenGL Render failed to write '%s'\n", name);
 		}

Modified: trunk/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
===================================================================
--- trunk/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp	2012-01-16 05:52:33 UTC (rev 43409)
+++ trunk/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp	2012-01-16 06:43:58 UTC (rev 43410)
@@ -286,7 +286,7 @@
 			exitrequested = KX_EXIT_REQUEST_NO_REQUEST;
 			if (bfd) BLO_blendfiledata_free(bfd);
 			
-			char basedpath[240];
+			char basedpath[FILE_MAX];
 			// base the actuator filename with respect
 			// to the original file working directory
 

Modified: trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
===================================================================
--- trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2012-01-16 05:52:33 UTC (rev 43409)
+++ trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2012-01-16 06:43:58 UTC (rev 43410)
@@ -765,7 +765,7 @@
 					// if we got an exitcode 3 (KX_EXIT_REQUEST_START_OTHER_GAME) load a different file
 					if (exitcode == KX_EXIT_REQUEST_START_OTHER_GAME)
 					{
-						char basedpath[240];
+						char basedpath[FILE_MAX];
 						
 						// base the actuator filename relative to the last file
 						BLI_strncpy(basedpath, exitstring.Ptr(), sizeof(basedpath));



More information about the Bf-blender-cvs mailing list