No need to tag depsgraph id when dropping objects from the outliner
authorDalai Felinto <dfelinto@gmail.com>
Thu, 25 Jan 2018 13:14:13 +0000 (11:14 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 25 Jan 2018 13:14:13 +0000 (11:14 -0200)
As done by c42fc19a8a1c71 - this was needed originally because notifiers were
not working so I had to force tagging.

And for the records, I should have used DEG_TAG_BASE_FLAGS_UPDATE instead of 0.

source/blender/editors/object/object_add.c

index 786784a200fc267b19610d0f152763dd714053d1..5c96c13ebedeb749522b6a5b1eded4d065163a6c 100644 (file)
@@ -2483,9 +2483,6 @@ static int add_named_exec(bContext *C, wmOperator *op)
        /* TODO(sergey): Only update relations for the current scene. */
        DEG_relations_tag_update(bmain);
 
-       /* TODO(sergey): Use proper flag for tagging here. */
-       DEG_id_tag_update(&scene->id, 0);
-
        WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
        WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);