forked from bartvdbraak/blender
added imports to templates
This commit is contained in:
parent
90e1119619
commit
aff6b6885f
@ -1,4 +1,3 @@
|
||||
|
||||
import bpy
|
||||
|
||||
def write_some_data(context, filepath, use_some_setting):
|
||||
|
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
from bpy.props import *
|
||||
|
||||
class ModalOperator(bpy.types.Operator):
|
||||
|
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
import bgl
|
||||
import blf
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
from mathutils import Vector
|
||||
from bpy.props import FloatVectorProperty
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
|
||||
def main(context):
|
||||
obj = context.active_object
|
||||
|
@ -150,7 +150,6 @@ void BPY_update_modules( void )
|
||||
*****************************************************************************/
|
||||
static PyObject *CreateGlobalDictionary( bContext *C, const char *filename )
|
||||
{
|
||||
PyObject *mod;
|
||||
PyObject *item;
|
||||
PyObject *dict = PyDict_New( );
|
||||
PyDict_SetItemString( dict, "__builtins__", PyEval_GetBuiltins( ) );
|
||||
|
Loading…
Reference in New Issue
Block a user