[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29939] trunk/blender/source/blender/ blenlib/intern/path_util.c: Fix for paths commit from Andrea:

Ton Roosendaal ton at blender.org
Sun Jul 4 18:34:24 CEST 2010


Revision: 29939
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29939
Author:   ton
Date:     2010-07-04 18:34:24 +0200 (Sun, 04 Jul 2010)

Log Message:
-----------
Fix for paths commit from Andrea:

For Mac, there was no code supporting Carbon. Added a stubs function
to make it compile, but it doesn't work yet properly.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/path_util.c

Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c	2010-07-04 16:20:42 UTC (rev 29938)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c	2010-07-04 16:34:24 UTC (rev 29939)
@@ -1015,6 +1015,15 @@
 }
 #endif
 
+#if defined(__APPLE__)
+#ifndef WITH_COCOA
+const char* BLI_osx_getBasePath(basePathesTypes pathType)
+{
+	return "/tmp/";
+}
+#endif
+#endif
+
 static int get_path_user(char *targetpath, char *folder_name, char *envvar)
 {
 	char user_path[FILE_MAX];





More information about the Bf-blender-cvs mailing list