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: cd4d5dcb46. 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.
This commit is contained in:
Dalai Felinto 2018-01-25 09:45:13 -02:00
parent 2d46ea52cd
commit 8e341633e9
Notes: blender-bot 2023-02-14 08:28:46 +01:00
Referenced by issue #50967, Blender2.8: OUTILINER: When you move an icon from the 'outiliner' area to the 3d view, the new object does not appear.
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}