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:
-rw-r--r--projectfiles/blender/BPY_python/BPY_python.dsp8
-rw-r--r--source/blender/python/BPY_menus.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/projectfiles/blender/BPY_python/BPY_python.dsp b/projectfiles/blender/BPY_python/BPY_python.dsp
index c8248f7dad5..0cf73bb3566 100644
--- a/projectfiles/blender/BPY_python/BPY_python.dsp
+++ b/projectfiles/blender/BPY_python/BPY_python.dsp
@@ -111,6 +111,10 @@ SOURCE=..\..\..\source\blender\python\BPY_interface.c
# End Source File
# Begin Source File
+SOURCE=..\..\..\source\blender\python\BPY_menus.c
+# End Source File
+# Begin Source File
+
SOURCE=..\..\..\source\blender\python\api2_2x\Build.c
# End Source File
# Begin Source File
@@ -263,6 +267,10 @@ SOURCE=..\..\..\source\blender\python\BPY_extern.h
# End Source File
# Begin Source File
+SOURCE=..\..\..\source\blender\python\BPY_menus.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\..\source\blender\python\api2_2x\bpy_types.h
# End Source File
# Begin Source File
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c
index b5d9610d3d8..14d763f069f 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -42,6 +42,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <Python.h>
#ifndef WIN32
#include <dirent.h>
@@ -103,7 +104,7 @@ char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short menugroup)
str[0] = '\0';
- snprintf(str2, sizeof(str2), "%s: %s%%t",
+ PyOS_snprintf(str2, sizeof(str2), "%s: %s%%t",
BPyMenu_group_itoa(menugroup), pym->name);
strcat(str, str2);