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>2013-04-08 09:01:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-08 09:01:35 +0400
commita4520320ef70fc7e7cae8399e086fd8337f971a8 (patch)
treeacb71d7f554f08e5990e760902b8bcfdd6f1e5fc /source/creator
parentb14f68521e9fbc7e72aeecdbc4f9c02d5db99e4b (diff)
fix [#34900] Building blender as a python module is broken in trunk
patch provided by reporter - Martijn Berger (juicyfruit) also quiet warnings for headless mode.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 1fec281a71c..cea32a8b171 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -195,6 +195,7 @@ static void fpe_handler(int UNUSED(sig))
#endif
/* handling ctrl-c event in console */
+#if !(defined(WITH_PYTHON_MODULE) || defined(WITH_HEADLESS))
static void blender_esc(int sig)
{
static int count = 0;
@@ -210,6 +211,7 @@ static void blender_esc(int sig)
count++;
}
}
+#endif
static int print_version(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data))
{