Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_interface.c
| Show First 20 Lines • Show All 816 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| if (use_gil) | if (use_gil) | ||||
| PyGILState_Release(gilstate); | PyGILState_Release(gilstate); | ||||
| return done; | return done; | ||||
| } | } | ||||
| void BPY_context_gpumat_set(struct GPUMaterial *mat) | |||||
| { | |||||
| bContext *C = BPy_GetContext(); | |||||
| CTX_gpu_material_set(C, mat); | |||||
| } | |||||
| struct GPUMaterial *BPY_context_gpumat_get(void) | |||||
| { | |||||
| bContext *C = BPy_GetContext(); | |||||
| return CTX_gpu_material_get(C); | |||||
| } | |||||
| #ifdef WITH_PYTHON_MODULE | #ifdef WITH_PYTHON_MODULE | ||||
| /* TODO, reloading the module isn't functional at the moment. */ | /* TODO, reloading the module isn't functional at the moment. */ | ||||
| static void bpy_module_free(void *mod); | static void bpy_module_free(void *mod); | ||||
| extern int main_python_enter(int argc, const char **argv); | extern int main_python_enter(int argc, const char **argv); | ||||
| extern void main_python_exit(void); | extern void main_python_exit(void); | ||||
| static struct PyModuleDef bpy_proxy_def = { | static struct PyModuleDef bpy_proxy_def = { | ||||
| PyModuleDef_HEAD_INIT, | PyModuleDef_HEAD_INIT, | ||||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||