diff options
author | Thomas Dinges <blender@dingto.org> | 2009-08-15 14:50:30 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-08-15 14:50:30 +0400 |
commit | 13c3bdbf8bb6be3f76f17c07d950177839f26dab (patch) | |
tree | fa4c3fb0ba483496574b0ed066f0f6fe592f71d9 /source/blender/python | |
parent | 712b67743b563737781d6136a44a14a04651e825 (diff) |
Compile fix.
Variable was in wrong place, caused errors in msvc.
Fix by Lguillaume in IRC.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 21f5500530d..f2c8cf05942 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -3042,10 +3042,11 @@ static void bpy_class_free(void *pyob_ptr) void pyrna_alloc_types(void) { PyGILState_STATE gilstate; - gilstate = PyGILState_Ensure(); PointerRNA ptr; PropertyRNA *prop; + + gilstate = PyGILState_Ensure(); /* avoid doing this lookup for every getattr */ RNA_blender_rna_pointer_create(&ptr); |