Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/space_view3d.c
| Show First 20 Lines • Show All 912 Lines • ▼ Show 20 Lines | case NC_GEOM: | ||||
| ID *ob_data = wmn->reference; | ID *ob_data = wmn->reference; | ||||
| if (ob_data == NULL) { | if (ob_data == NULL) { | ||||
| BLI_assert(wmn->window); // Use `WM_event_add_notifier` instead of `WM_main_add_notifier` | BLI_assert(wmn->window); // Use `WM_event_add_notifier` instead of `WM_main_add_notifier` | ||||
| ViewLayer *view_layer = WM_window_get_active_view_layer(wmn->window); | ViewLayer *view_layer = WM_window_get_active_view_layer(wmn->window); | ||||
| ob_data = OBEDIT_FROM_VIEW_LAYER(view_layer)->data; | ob_data = OBEDIT_FROM_VIEW_LAYER(view_layer)->data; | ||||
| } | } | ||||
| if (ob_data) { | if (ob_data) { | ||||
| BLI_assert(OB_DATA_SUPPORT_ID(GS(ob_data->name))); | |||||
| /* TODO(sergey): Notifiers shouldn't really be doing DEG tags. */ | /* TODO(sergey): Notifiers shouldn't really be doing DEG tags. */ | ||||
| DEG_id_tag_update(ob_data, DEG_TAG_SELECT_UPDATE); | DEG_id_tag_update(ob_data, DEG_TAG_SELECT_UPDATE); | ||||
| } | } | ||||
| ATTR_FALLTHROUGH; | ATTR_FALLTHROUGH; | ||||
| } | } | ||||
| case ND_DATA: | case ND_DATA: | ||||
| case ND_VERTEX_GROUP: | case ND_VERTEX_GROUP: | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| ▲ Show 20 Lines • Show All 626 Lines • Show Last 20 Lines | |||||