Fix crash in outliner when moving objects around
How to reproduce it: * Change Outliner from Active View Layer to Collections * Create a new collection under Master Collection (Collection 2) * Move all three objects from Collection 1 to Collection 2 * Move all three objects from Collection 2 to Collection 1
This commit is contained in:
parent
ae12424298
commit
59fcfaf5c3
|
@ -71,6 +71,7 @@
|
|||
#include "BKE_idcode.h"
|
||||
#include "BKE_outliner_treehash.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
#include "DEG_depsgraph_build.h"
|
||||
|
||||
#include "ED_armature.h"
|
||||
|
@ -469,6 +470,10 @@ static void outliner_object_reorder(
|
|||
BLI_freelistN(&data.objects_selected_array);
|
||||
|
||||
DEG_relations_tag_update(bmain);
|
||||
|
||||
/* TODO(sergey): Use proper flag for tagging here. */
|
||||
DEG_id_tag_update(id, 0);
|
||||
|
||||
WM_main_add_notifier(NC_SCENE | ND_LAYER, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue