Python API

----------
Definition of default "bpy" module was decrementing reference count, which
caused assertion errors on Windows.  This fixes the problem on Linux; Win
developers please test!
This commit is contained in:
Ken Hughes
2007-03-20 18:45:05 +00:00
parent cbadf6523c
commit a6db9c5949

View File

@@ -1973,8 +1973,8 @@ void init_ourImport( void )
d = PyModule_GetDict( m );
/* add in "bpy" as a default module */
EXPP_dict_set_item_str( d, "bpy", Main_Init() );
PyDict_SetItemString(d, "bpy", Main_Init() );
EXPP_dict_set_item_str( d, "__import__", import );
}