[Bf-blender-cvs] [8e341633e98] master: Fix T50967: When you move an icon from the outliner area object doesn't show up

Dalai Felinto noreply at git.blender.org
Thu Jan 25 12:54:43 CET 2018


Commit: 8e341633e986ccbc9394c0317df12299aba453d1
Author: Dalai Felinto
Date:   Thu Jan 25 09:45:13 2018 -0200
Branches: master
https://developer.blender.org/rB8e341633e986ccbc9394c0317df12299aba453d1

Fix T50967: When you move an icon from the outliner area object doesn't show up

We can't have more than one NOTE_SUBTYPE in the same notifier.

This is a partial revert of: cd4d5dcb468a. In particular to the part concerning
"Also fixed a missing notifier of the object instancing operator".

Not only this was mixed with the original reason for the commit for no reason,
but it actually introduced a bug. Bad, bad developers ;)

Note: Although this commit is not needed for master, blender2.8 requires it for
the forementioned bug report.

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

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 5048b70546c..9746acc7f8e 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2398,7 +2398,8 @@ static int add_named_exec(bContext *C, wmOperator *op)
 
 	MEM_freeN(base);
 
-	WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT | ND_OB_ACTIVE, scene);
+	WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
+	WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
 
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list