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:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-07-19 21:44:44 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-07-19 21:44:44 +0400
commitd410135408fcce7856cc044ba717297c89302a34 (patch)
treee8f863161288e9b7e02c4b88bc50cae1d18231b5 /source/blender/python/generic/bpy_internal_import.c
parent8ac67fcd21039676011b5393e22a0fede89c34c9 (diff)
Sculpt+Paint/2.5:
* Moved brush NKEY panel from C to Python. Could use some UI review :) * Added a NULL check in bpy_internal_import.c, was crashing here on Python errors * Added RNA for vpaint brush and for weight paint * Added context for vpaint/wpaint similar to edit_object and sculpt_object
Diffstat (limited to 'source/blender/python/generic/bpy_internal_import.c')
-rw-r--r--source/blender/python/generic/bpy_internal_import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index c41ea386c0e..b8c17d71ac4 100644
--- a/source/blender/python/generic/bpy_internal_import.c
+++ b/source/blender/python/generic/bpy_internal_import.c
@@ -65,6 +65,8 @@ PyObject *bpy_text_import( char *name, int *found )
Main *maggie= bpy_import_main;
*found= 0;
+
+ if(!maggie) return NULL;
if (namelen>21-3) return NULL; /* we know this cant be importable, the name is too long for blender! */