Compile fix.

Variable was in wrong place, caused errors in msvc.
Fix by Lguillaume in IRC.
This commit is contained in:
Thomas Dinges 2009-08-15 10:50:30 +00:00
parent 712b67743b
commit 13c3bdbf8b

@ -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);