[Bf-blender-cvs] [e057d7b9eb3] blender2.8: No need to tag depsgraph id when dropping objects from the outliner

Dalai Felinto noreply at git.blender.org
Thu Jan 25 14:16:21 CET 2018


Commit: e057d7b9eb3f7641008e2cd77be9691d84433e5d
Author: Dalai Felinto
Date:   Thu Jan 25 11:14:13 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBe057d7b9eb3f7641008e2cd77be9691d84433e5d

No need to tag depsgraph id when dropping objects from the outliner

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.

===================================================================

M	source/blender/editors/object/object_add.c

===================================================================

diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 786784a200f..5c96c13ebed 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -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);



More information about the Bf-blender-cvs mailing list