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:
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 77c27dfa3db..53fb6dbffb1 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -99,8 +99,10 @@
#include "BDR_unwrapper.h"
#include "BDR_editobject.h"
+#ifndef DISABLE_PYTHON
#include "BPY_extern.h"
#include "BPY_menus.h"
+#endif
/* Pupmenu codes: */
#define UV_CUBE_MAPPING 2
@@ -1238,7 +1240,9 @@ void face_borderselect()
void uv_autocalc_tface()
{
short mode, i=0, has_pymenu=0; /* pymenu must be bigger then UV_*_MAPPING */
+#ifndef DISABLE_PYTHON
BPyMenu *pym;
+#endif
char menu_number[3];
/* uvmenu, will add python items */
@@ -1253,7 +1257,7 @@ void uv_autocalc_tface()
MENUSTRING("Project from View (Bounds)",UV_BOUNDS_MAPPING) "|%l|"
MENUSTRING("Reset", UV_RESET_MAPPING);
-
+#ifndef DISABLE_PYTHON
/* note that we account for the 10 previous entries with i+10: */
for (pym = BPyMenuTable[PYMENU_UVCALCULATION]; pym; pym = pym->next, i++) {
@@ -1268,14 +1272,15 @@ void uv_autocalc_tface()
sprintf(menu_number, "%d", i+10);
strcat(uvmenu, menu_number);
}
+#endif
mode= pupmenu(uvmenu);
-
+#ifndef DISABLE_PYTHON
if (mode >= 10) {
BPY_menu_do_python(PYMENU_UVCALCULATION, mode - 10);
return;
}
-
+#endif
switch(mode) {
case UV_CUBE_MAPPING:
calculate_uv_map(B_UVAUTO_CUBE); break;