Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_operator.c
| Context not available. | |||||
| context_dict_back = CTX_py_dict_get(C); | context_dict_back = CTX_py_dict_get(C); | ||||
| CTX_py_dict_set(C, (void *)context_dict); | CTX_py_dict_set(C, (void *)context_dict); | ||||
| Py_XINCREF(context_dict); /* so we done loose it */ | Py_XINCREF(context_dict); /* so we done loose it */ | ||||
| /* main purpose of thsi function */ | /* main purpose of this function */ | ||||
| ret = WM_operator_poll_context((bContext *)C, ot, context) ? Py_True : Py_False; | ret = WM_operator_poll_context((bContext *)C, ot, context) ? Py_True : Py_False; | ||||
| /* restore with original context dict, probably NULL but need this for nested operator calls */ | /* restore with original context dict, probably NULL but need this for nested operator calls */ | ||||
| Context not available. | |||||