Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_edit.c
| Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | if (obedit && obedit->type == OB_MESH) { | ||||
| return ret; | return ret; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| /* matches clip function */ | /* matches clip function */ | ||||
| bool ED_space_image_check_show_maskedit(SceneLayer *sl, SpaceImage *sima) | bool ED_space_image_check_show_maskedit(ViewLayer *sl, SpaceImage *sima) | ||||
| { | { | ||||
| /* check editmode - this is reserved for UV editing */ | /* check editmode - this is reserved for UV editing */ | ||||
| Object *ob = OBACT(sl); | Object *ob = OBACT(sl); | ||||
| if (ob && ob->mode & OB_MODE_EDIT && ED_space_image_show_uvedit(sima, ob)) { | if (ob && ob->mode & OB_MODE_EDIT && ED_space_image_show_uvedit(sima, ob)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return (sima->mode == SI_MODE_MASK); | return (sima->mode == SI_MODE_MASK); | ||||
| } | } | ||||
| int ED_space_image_maskedit_poll(bContext *C) | int ED_space_image_maskedit_poll(bContext *C) | ||||
| { | { | ||||
| SpaceImage *sima = CTX_wm_space_image(C); | SpaceImage *sima = CTX_wm_space_image(C); | ||||
| if (sima) { | if (sima) { | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| return ED_space_image_check_show_maskedit(sl, sima); | return ED_space_image_check_show_maskedit(sl, sima); | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool ED_space_image_paint_curve(const bContext *C) | bool ED_space_image_paint_curve(const bContext *C) | ||||
| { | { | ||||
| Show All 23 Lines | |||||