Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Context not available. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| bool ED_operator_editmesh_or_editcurve_region_view3d(bContext *C) | |||||
| { | |||||
| if (!CTX_wm_region_view3d(C)) return 0; | |||||
| if (ED_operator_editmesh(C)) return 1; | |||||
| if (ED_operator_editcurve(C)) return 1; | |||||
| CTX_wm_operator_poll_msg_set(C, "expected a view3d region & editmesh/editcurve"); | |||||
| return 0; | |||||
| } | |||||
| bool ED_operator_editarmature(bContext *C) | bool ED_operator_editarmature(bContext *C) | ||||
| { | { | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| Context not available. | |||||
| { | { | ||||
| SpaceImage *sima = CTX_wm_space_image(C); | SpaceImage *sima = CTX_wm_space_image(C); | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| return ED_space_image_show_uvedit(sima, obedit); | return ED_space_image_show_uvedit(sima, obedit); | ||||
| } | |||||
| bool ED_operator_nurbsuv(bContext *C) | |||||
| { | |||||
| SpaceImage *sima = CTX_wm_space_image(C); | |||||
| Object *obedit = CTX_data_edit_object(C); | |||||
| return ED_space_image_show_nurbsuv(sima, obedit); | |||||
| } | |||||
| bool ED_operator_uvedit_or_nurbsuv(bContext *C) | |||||
| { | |||||
| SpaceImage *sima = CTX_wm_space_image(C); | |||||
| Object *obedit = CTX_data_edit_object(C); | |||||
| return ED_space_image_show_uvedit(sima, obedit) || ED_space_image_show_nurbsuv(sima, obedit); | |||||
| } | } | ||||
| bool ED_operator_uvedit_space_image(bContext *C) | bool ED_operator_uvedit_space_image(bContext *C) | ||||
| Context not available. | |||||
| return sima && ED_space_image_show_uvedit(sima, obedit); | return sima && ED_space_image_show_uvedit(sima, obedit); | ||||
| } | } | ||||
| bool ED_operator_uvedit_or_nurbsuv_space_image(bContext *C) | |||||
| { | |||||
| SpaceImage *sima = CTX_wm_space_image(C); | |||||
| Object *obedit = CTX_data_edit_object(C); | |||||
| bool uvedit = ED_space_image_show_uvedit(sima, obedit); | |||||
| bool nurbsuv = ED_space_image_show_nurbsuv(sima, obedit); | |||||
| return sima && (uvedit || nurbsuv); | |||||
| } | |||||
| bool ED_operator_uvmap(bContext *C) | bool ED_operator_uvmap(bContext *C) | ||||
| { | { | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| Context not available. | |||||