Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_dragdrop.c
| Show First 20 Lines • Show All 1,305 Lines • ▼ Show 20 Lines | else if (GS(drag_id->id->name) == ID_GR) { | ||||
| Collection *collection = (Collection *)drag_id->id; | Collection *collection = (Collection *)drag_id->id; | ||||
| if (collection != from) { | if (collection != from) { | ||||
| BKE_collection_move(bmain, data.to, from, relative, relative_after, collection); | BKE_collection_move(bmain, data.to, from, relative, relative_after, collection); | ||||
| } | } | ||||
| } | } | ||||
| if (from) { | if (from) { | ||||
| DEG_id_tag_update(&from->id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(&from->id, ID_RECALC_COPY_ON_WRITE | ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| } | } | ||||
| /* Update dependency graph. */ | /* Update dependency graph. */ | ||||
| DEG_id_tag_update(&data.to->id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(&data.to->id, ID_RECALC_COPY_ON_WRITE); | ||||
| DEG_relations_tag_update(bmain); | DEG_relations_tag_update(bmain); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_LAYER, scene); | WM_event_add_notifier(C, NC_SCENE | ND_LAYER, scene); | ||||
| ▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines | |||||