From 9d922b4c24538d53aed9b0661804652455f8a3b7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 11 Apr 2009 05:46:40 +0000 Subject: Changed the script UI registration to import rather then run each python script, this means it caches the compiled pyc files after importing fro the first time. My times for importing 501 buttons_objects.py files were. - running each as a script 1.9sec - importing for the first time 1.8sec - importing a second time (using pyc files) 0.57sec Also added "bpy" to sys.modules so it can be imported. --- source/blender/python/intern/bpy_operator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_operator.h') diff --git a/source/blender/python/intern/bpy_operator.h b/source/blender/python/intern/bpy_operator.h index 8eb0b887baa..c4741f936bf 100644 --- a/source/blender/python/intern/bpy_operator.h +++ b/source/blender/python/intern/bpy_operator.h @@ -40,7 +40,7 @@ typedef struct { PyObject_HEAD /* required python macro */ } BPy_OperatorBase; -PyObject *BPY_operator_module(bContext *C ); +PyObject *BPY_operator_module(void); /* fill in properties from a python dict */ int PYOP_props_from_dict(PointerRNA *ptr, PyObject *kw); -- cgit v1.2.3