More cleanup!

- removed old UI font completely, including from uiBeginBlock
- emboss hints for uiBlock only have three types now;
  Regular, Pulldown, or "Nothing" (only icon/text)
- removed old font path from Userdef
- removed all old button theme hinting
- removed old "auto block" to merge buttons in groups
  (was only in use for radiosity buttons)

And went over all warnings. One hooray for make giving clean output :)
Well, we need uniform definitions for warnings, so people at least fix
them... here's the real bad bugs I found:

- in mesh code, a call to editmesh mixed *em and *me
- in armature, ED_util.h was not included, so no warnings for wrong call
  to ED_undo_push()
- The extern Py api .h was not included in the bpy_interface.c, showing
  a several calls using different args.

Further just added the missing includes, and removed unused vars.
This commit is contained in:
2009-04-14 15:59:52 +00:00
parent 3ef247eed9
commit 5b3d7bfdf6
53 changed files with 283 additions and 486 deletions

View File

@@ -31,6 +31,8 @@
#include "BKE_context.h"
#include "BKE_text.h"
#include "BPY_extern.h"
void BPY_free_compiled_text( struct Text *text )
{
if( text->compiled ) {
@@ -59,6 +61,13 @@ static void bpy_init_modules( void )
Py_DECREF(mod);
}
#if (PY_VERSION_HEX < 0x02050000)
PyObject *PyImport_ImportModuleLevel(char *name, void *a, void *b, void *c, int d)
{
return PyImport_ImportModule(name);
}
#endif
void BPY_update_modules( void )
{
PyObject *mod= PyImport_ImportModuleLevel("bpy", NULL, NULL, NULL, 0);
@@ -106,7 +115,7 @@ static PyObject *CreateGlobalDictionary( bContext *C )
return dict;
}
void BPY_start_python( void )
void BPY_start_python( int argc, char **argv )
{
PyThreadState *py_tstate = NULL;
@@ -244,7 +253,7 @@ static int bpy_run_script_init(bContext *C, SpaceScript * sc)
return 1;
}
int BPY_run_script_space_draw(bContext *C, SpaceScript * sc)
int BPY_run_script_space_draw(struct bContext *C, SpaceScript * sc)
{
if (bpy_run_script_init(C, sc)) {
PyGILState_STATE gilstate = PyGILState_Ensure();
@@ -334,7 +343,7 @@ int BPY_run_python_script_space(const char *modulename, const char *func)
#endif
/* XXX this is temporary, need a proper script registration system for 2.5 */
void BPY_run_ui_scripts(void)
void BPY_run_ui_scripts(bContext *C)
{
#ifdef TIME_REGISTRATION
double time = PIL_check_seconds_timer();