Compile fix.
authorThomas Dinges <blender@dingto.org>
Sat, 15 Aug 2009 10:50:30 +0000 (10:50 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 15 Aug 2009 10:50:30 +0000 (10:50 +0000)
Variable was in wrong place, caused errors in msvc.
Fix by Lguillaume in IRC.

source/blender/python/intern/bpy_rna.c

index 21f5500530d67485a4fdd636de746d2e3a99bb8b..f2c8cf05942865eb847eeaf492b3de6db5346b27 100644 (file)
@@ -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);