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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-13 04:51:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-13 04:51:48 +0400
commitb68c91193111bbd6dce17dda5d2b2762331665ad (patch)
tree507a3ecfe118f4f6236a3de9a0ac16c34050705e /source
parent84e793a6f9cf2061168f2a01d3a149682564ec0b (diff)
fix for mistake checking engines on load.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/intern/bpy_interface.c4
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index d323c2a3475..83c52464c9c 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -244,7 +244,7 @@ void BPY_python_start(int argc, const char **argv)
bpy_python_start_path(); /* allow to use our own included python */
- /* Python 3.2 now looks for '2.56/python/include/python3.2d/pyconfig.h' to parse
+ /* Python 3.2 now looks for '2.57/python/include/python3.2d/pyconfig.h' to parse
* from the 'sysconfig' module which is used by 'site', so for now disable site.
* alternatively we could copy the file. */
Py_NoSiteFlag= 1;
@@ -552,7 +552,7 @@ int BPY_string_exec(bContext *C, const char *expr)
PyObject *main_mod= NULL;
PyObject *py_dict, *retval;
int error_ret= 0;
- Main *bmain_back;
+ Main *bmain_back; /* XXX, quick fix for release (Copy Settings crash), needs further investigation */
if (!expr) return -1;
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index c85b6767a33..3d10a766417 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -344,7 +344,7 @@ void WM_read_file(bContext *C, const char *name, ReportList *reports)
{
Scene *sce;
for(sce= G.main->scene.first; sce; sce= sce->id.next) {
- if(BLI_findstring(&R_engines, sce->r.engine, offsetof(RenderEngineType, idname)) == NULL) {
+ if(sce->r.engine[0] && BLI_findstring(&R_engines, sce->r.engine, offsetof(RenderEngineType, idname)) == NULL) {
BKE_reportf(reports, RPT_WARNING, "Engine not available: '%s' for scene: %s, an addon may need to be installed or enabled", sce->r.engine, sce->id.name+2);
}
}