From 1dd1cea06e0bb1c9cd1e08fd9f359893dc2681a3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 29 Nov 2010 07:56:45 +0000 Subject: fix for error when changing DISBALE_PYTHON -> WITH_PYTHON, This define wasn't set in some parts of the BGE causing problems with the view matrix. in CMake define for the entire BGE fixes this. --- source/blender/editors/util/undo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index e8c4edf3d57..f0e8184b991 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -156,9 +156,10 @@ static int ed_undo_step(bContext *C, int step, const char *undoname) if(do_glob_undo) { if(U.uiflag & USER_GLOBALUNDO) { -#ifdef WITH_PYTHON + // note python defines not valid here anymore. + //#ifdef WITH_PYTHON // XXX BPY_scripts_clear_pyobjects(); -#endif + //#endif if(undoname) BKE_undo_name(C, undoname); else -- cgit v1.2.3