Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/space_image.c
| Show First 20 Lines • Show All 837 Lines • ▼ Show 20 Lines | switch (wmn->category) { | ||||
| case NC_NODE: | case NC_NODE: | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| break; | break; | ||||
| case NC_GPENCIL: | case NC_GPENCIL: | ||||
| if (ELEM(wmn->action, NA_EDITED, NA_SELECTED)) { | if (ELEM(wmn->action, NA_EDITED, NA_SELECTED)) { | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| } | } | ||||
| break; | break; | ||||
| case NC_BRUSH: | |||||
| if (wmn->action == NA_EDITED) { | |||||
| ED_region_tag_redraw(ar); | |||||
| } | |||||
| break; | |||||
| } | } | ||||
| } | } | ||||
| /* *********************** scopes region ************************ */ | /* *********************** scopes region ************************ */ | ||||
| /* add handlers, stuff you only do once or on area/region changes */ | /* add handlers, stuff you only do once or on area/region changes */ | ||||
| static void image_tools_region_init(wmWindowManager *wm, ARegion *ar) | static void image_tools_region_init(wmWindowManager *wm, ARegion *ar) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | switch (wmn->category) { | ||||
| case NC_GEOM: | case NC_GEOM: | ||||
| switch (wmn->data) { | switch (wmn->data) { | ||||
| case ND_DATA: | case ND_DATA: | ||||
| case ND_SELECT: | case ND_SELECT: | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| break; | break; | ||||
| } | } | ||||
| break; | break; | ||||
| case NC_BRUSH: | |||||
| if (wmn->action == NA_EDITED) { | |||||
| ED_region_tag_redraw(ar); | |||||
| } | |||||
| break; | |||||
| } | } | ||||
| } | } | ||||
| static void image_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id) | static void image_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id) | ||||
| { | { | ||||
| SpaceImage *simg = (SpaceImage *)slink; | SpaceImage *simg = (SpaceImage *)slink; | ||||
| if (!ELEM(GS(old_id->name), ID_IM, ID_GD, ID_MSK)) { | if (!ELEM(GS(old_id->name), ID_IM, ID_GD, ID_MSK)) { | ||||
| ▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines | |||||