Revision: 57645
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57645
Author:   moguri
Date:     2013-06-22 05:27:28 +0000 (Sat, 22 Jun 2013)
Log Message:
-----------
BGE: Fix for [#35815] "makeScreenshot() relative path not working in 
Blenderplayer" reported by HG1.

Someone forgot to add relative path expansion (BLI_path_abs) to the 
Blenderplayer...

Modified Paths:
--------------
    trunk/blender/source/gameengine/GamePlayer/common/GPC_Canvas.cpp

Modified: trunk/blender/source/gameengine/GamePlayer/common/GPC_Canvas.cpp
===================================================================
--- trunk/blender/source/gameengine/GamePlayer/common/GPC_Canvas.cpp    
2013-06-21 22:56:40 UTC (rev 57644)
+++ trunk/blender/source/gameengine/GamePlayer/common/GPC_Canvas.cpp    
2013-06-22 05:27:28 UTC (rev 57645)
@@ -41,11 +41,14 @@
 #include "RAS_IPolygonMaterial.h"
 #include "GPC_Canvas.h"
 
+#include "BLI_path_util.h"
 #include "BLI_string.h"
 
 #include "DNA_scene_types.h"
 #include "DNA_space_types.h"
 
+#include "BKE_global.h"
+#include "BKE_main.h"
 #include "BKE_image.h"
 
 extern "C" {
@@ -454,6 +457,7 @@
        // create file path 
        char path[FILE_MAX];
        BLI_strncpy(path, filename, sizeof(path));
+       BLI_path_abs(path, G.main->name);
        BKE_add_image_extension_from_type(path, im_format.imtype);
 
        // create and save imbuf 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to