Implemented enough functionality to actually execute Python from within
Blender. * Moved api2_2x/interface.c to ./BPY_interface.c This will be the general api layer from which all variants of the Blender api. Currently only the 2.2x variant is initialised. * Used swig (www.swig.org) to create Python wrappers for a couple of dummy functions. * Started implementation of the Blender and Blender.Object modules. Michel
This commit is contained in:
@@ -28,86 +28,12 @@
|
||||
*
|
||||
* ***** END GPL/BL DUAL LICENSE BLOCK *****
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <BPY_extern.h>
|
||||
#include "modules.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void BPY_start_python(void)
|
||||
void initBlenderApi2_2x (void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_end_python(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int BPY_Err_getLinenumber(void)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
const char *BPY_Err_getFilename(void)
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
struct _object *BPY_txt_do_python(struct SpaceText* st)
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
void BPY_free_compiled_text(struct Text* text)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_clear_bad_scriptlinks(struct Text *byebye)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_do_all_scripts(short event)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_do_pyscript(struct ID *id, short event)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_free_scriptlink(struct ScriptLink *slink)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_copy_scriptlink(struct ScriptLink *scriptlink)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int BPY_call_importloader(char *name)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
int BPY_spacetext_is_pywin(struct SpaceText *st)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
void BPY_spacetext_do_pywin_draw(struct SpaceText *st)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void BPY_spacetext_do_pywin_event(struct SpaceText *st, unsigned short event, short val)
|
||||
{
|
||||
return;
|
||||
printf ("initBlenderApi2_2x\n");
|
||||
initBlender ();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user