Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-04-21 16:52:16 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-04-21 17:25:20 +0300
commit111a53f74ccf2cd53e41d7597dfecbab041858a3 (patch)
tree33483045078d6772d3f5b0f63ae60f83fef976f7 /source/blender/editors/object
parente6f073fe412b80eedd9dd090315bd6eaeb68cb09 (diff)
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.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index d860ce3d5e9..68332004e54 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -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);