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:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-07-01 09:19:14 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-07-01 09:19:14 +0400
commitfad2aeb3fb674ed9fe9d5e87622cc1f6b7d4ecb1 (patch)
tree56567faf377aea8043fd2abe78cfc7a29d44acd4 /source/blender/python/api2_2x/Sys.c
parent14b4ed4e8dd15ebbc05fa3947e983d5e6bbc7fc8 (diff)
- small fix in Sys.c to compile on Windows:
Thanks Florian Eggenberger for telling us about it. And Greg McBride for pointing a possible fix. - Draw.Text and Draw.GetStringWidth updated: Now they accept an optional second parameter to set font size and Draw.Text returns the drawn string width. - Partially fixed the update() and PutRaw() bugs in NMesh: A total fix will require bigger changes, but what was done (unless buggy) takes care of the common cases.
Diffstat (limited to 'source/blender/python/api2_2x/Sys.c')
-rw-r--r--source/blender/python/api2_2x/Sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Sys.c b/source/blender/python/api2_2x/Sys.c
index e093b51f471..4528d41933a 100644
--- a/source/blender/python/api2_2x/Sys.c
+++ b/source/blender/python/api2_2x/Sys.c
@@ -31,7 +31,7 @@
#include "Sys.h"
-static PyObject *g_sysmodule = Py_None; /* pointer to Blender.sys module */
+static PyObject *g_sysmodule = NULL; /* pointer to Blender.sys module */
PyObject *sys_Init (void)
{