Fix crash when duplicating objects by tagging depsgraph

This may change once depsgraph becomes aware of workspaces.
For now this is the best we can do.
This commit is contained in:
Dalai Felinto
2017-04-21 15:52:16 +02:00
parent e6f073fe41
commit 111a53f74c

View File

@@ -2286,6 +2286,8 @@ static int duplicate_exec(bContext *C, wmOperator *op)
BKE_main_id_clear_newpoins(bmain);
DAG_relations_tag_update(bmain);
/* TODO(sergey): Use proper flag for tagging here. */
DAG_id_tag_update(&CTX_data_scene(C)->id, 0);
WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);