Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_view.c
| Show First 20 Lines • Show All 1,511 Lines • ▼ Show 20 Lines | if (BASE_SELECTED(v3d, base)) { | ||||
| if (base == BASACT(view_layer)) { | if (base == BASACT(view_layer)) { | ||||
| view_layer->basact = NULL; | view_layer->basact = NULL; | ||||
| } | } | ||||
| changed = true; | changed = true; | ||||
| } | } | ||||
| } | } | ||||
| if (changed) { | if (changed) { | ||||
| DEG_on_visible_update(bmain, false); | DEG_tag_on_visible_update(bmain, false); | ||||
| DEG_id_tag_update(&scene->id, ID_RECALC_SELECT); | DEG_id_tag_update(&scene->id, ID_RECALC_SELECT); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene); | WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| BKE_report(op->reports, RPT_ERROR, "No object selected"); | BKE_report(op->reports, RPT_ERROR, "No object selected"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| ▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines | |||||