BPython:
- New module + doc: Blender.Library: It's like File->Append, loads datablocks from .blend files. - small updates to fix warnings and accomodate for the new module, in readfile.[ch] - New Blender.sys module function: time, a wrapper of the PIL get time function. - Updated original makefile and scons builds.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
#include "BKE_utildefines.h"
|
||||
#include "PIL_time.h"
|
||||
|
||||
#include "Sys.h"
|
||||
|
||||
@@ -168,3 +169,10 @@ static PyObject *M_sys_splitext (PyObject *self, PyObject *args)
|
||||
|
||||
return Py_BuildValue("ss", path, ext);
|
||||
}
|
||||
|
||||
static PyObject *M_sys_time (PyObject *self)
|
||||
{
|
||||
double t = PIL_check_seconds_timer();
|
||||
return Py_BuildValue("d", t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user