initial bmesh python api.
corrently allows to create and loop over verts/edges/faces, access selection and selection modes. this is still WIP, access to face, edge verts is still missing, no access to UV's, no access to editing operations yet. When the api is ready it will be documented by sphinx like mathutils, blf, aud.
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
/* inittab initialization functions */
|
||||
#include "../generic/bgl.h"
|
||||
#include "../generic/blf_py_api.h"
|
||||
#include "../bmesh/bmesh_py_api.h"
|
||||
#include "../mathutils/mathutils.h"
|
||||
|
||||
/* for internal use, when starting and ending python scripts */
|
||||
@@ -192,6 +193,7 @@ static struct _inittab bpy_internal_modules[] = {
|
||||
// {(char *)"mathutils.noise", PyInit_mathutils_noise},
|
||||
{(char *)"bgl", BPyInit_bgl},
|
||||
{(char *)"blf", BPyInit_blf},
|
||||
{(char *)"bme", BPyInit_bmesh},
|
||||
#ifdef WITH_AUDASPACE
|
||||
{(char *)"aud", AUD_initPython},
|
||||
#endif
|
||||
@@ -699,7 +701,6 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
|
||||
return done;
|
||||
}
|
||||
|
||||
|
||||
#ifdef WITH_PYTHON_MODULE
|
||||
#include "BLI_fileops.h"
|
||||
/* TODO, reloading the module isnt functional at the moment. */
|
||||
|
||||
Reference in New Issue
Block a user