Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-07-03 15:46:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-03 15:46:46 +0400
commit3c6f957097cec1bc8f7e64af304cc8dec12b2158 (patch)
treecf5286d2723a1369807efdf4a504c555d545892f /source/blender
parentc12b2796d7a666c41d59d3df45bff5f4cb7ef6f2 (diff)
fix for own missing var in recent commit.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/include/UI_interface.h1
-rw-r--r--source/blender/python/intern/bpy_interface.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 2894ffee773..b7c13505d2e 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -51,6 +51,7 @@ struct rcti;
struct rctf;
struct uiStyle;
struct uiFontStyle;
+struct uiWidgetColors;
struct ColorBand;
struct CurveMapping;
struct Image;
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 2b1b72d0307..fbd8339741e 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -151,6 +151,7 @@ wchar_t* Py_GetPath(void)
/* must be called before Py_Initialize */
void BPY_start_python_path(void)
{
+ char py_path[FILE_MAXDIR + 11] = "";
char *py_path_bundle= BLI_gethome_folder("python");
if(py_path_bundle==NULL)
@@ -171,7 +172,7 @@ void BPY_start_python_path(void)
sprintf(py_path, "PYTHONPATH=%s", py_path_bundle)
putenv(py_path);
#else
- setenv("PYTHONPATH", py_path_bundle, 1); /* initializing the video driver can cause crashes on some systems - Campbell */
+ setenv("PYTHONPATH", py_path_bundle, 1);
#endif
#endif