Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_interface.c
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | #ifdef TIME_PY_RUN | ||||
| bpy_timer_run = PIL_check_seconds_timer(); | bpy_timer_run = PIL_check_seconds_timer(); | ||||
| bpy_timer_count++; | bpy_timer_count++; | ||||
| #endif | #endif | ||||
| } | } | ||||
| } | } | ||||
| /* context should be used but not now because it causes some bugs */ | /* context should be used but not now because it causes some bugs */ | ||||
| void bpy_context_clear(bContext *UNUSED(C), PyGILState_STATE *gilstate) | void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate) | ||||
| { | { | ||||
| py_call_level--; | py_call_level--; | ||||
| if (gilstate) { | if (gilstate) { | ||||
| PyGILState_Release(*gilstate); | PyGILState_Release(*gilstate); | ||||
| } | } | ||||
| if (py_call_level < 0) { | if (py_call_level < 0) { | ||||
| ▲ Show 20 Lines • Show All 905 Lines • Show Last 20 Lines | |||||