Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy.c
| Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Lines | #endif | ||||
| PyModule_AddObject(mod, meth_bpy_user_resource.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_user_resource, NULL)); | PyModule_AddObject(mod, meth_bpy_user_resource.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_user_resource, NULL)); | ||||
| PyModule_AddObject(mod, meth_bpy_resource_path.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_resource_path, NULL)); | PyModule_AddObject(mod, meth_bpy_resource_path.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_resource_path, NULL)); | ||||
| PyModule_AddObject(mod, meth_bpy_escape_identifier.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_escape_identifier, NULL)); | PyModule_AddObject(mod, meth_bpy_escape_identifier.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_escape_identifier, NULL)); | ||||
| /* register funcs (bpy_rna.c) */ | /* register funcs (bpy_rna.c) */ | ||||
| PyModule_AddObject(mod, meth_bpy_register_class.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_register_class, NULL)); | PyModule_AddObject(mod, meth_bpy_register_class.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_register_class, NULL)); | ||||
| PyModule_AddObject(mod, meth_bpy_unregister_class.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_unregister_class, NULL)); | PyModule_AddObject(mod, meth_bpy_unregister_class.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_unregister_class, NULL)); | ||||
| PyModule_AddObject(mod, meth_bpy_bl_origin_get.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_bl_origin_get, NULL)); | |||||
| PyModule_AddObject(mod, meth_bpy_bl_origin_set.ml_name, (PyObject *)PyCFunction_New(&meth_bpy_bl_origin_set, NULL)); | |||||
| /* add our own modules dir, this is a python package */ | /* add our own modules dir, this is a python package */ | ||||
| bpy_package_py = bpy_import_test("bpy"); | bpy_package_py = bpy_import_test("bpy"); | ||||
| } | } | ||||