From c19caff2dc684860f9c0e50a26a8ddbac1560765 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 10 Aug 2023 17:56:12 +0200 Subject: [PATCH] Cleanup: Include layer tree element in assert check --- source/blender/editors/space_outliner/outliner_tree.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/space_outliner/outliner_tree.cc b/source/blender/editors/space_outliner/outliner_tree.cc index a3bd174e2d6..9acb814e1c9 100644 --- a/source/blender/editors/space_outliner/outliner_tree.cc +++ b/source/blender/editors/space_outliner/outliner_tree.cc @@ -378,8 +378,12 @@ TreeElement *outliner_add_element(SpaceOutliner *space_outliner, TSE_SEQ_STRIP, TSE_SEQUENCE_DUP, TSE_GENERIC_LABEL) || - ELEM( - type, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE)) + ELEM(type, + TSE_DEFGROUP, + TSE_DEFGROUP_BASE, + TSE_GPENCIL_EFFECT, + TSE_GPENCIL_EFFECT_BASE, + TSE_R_LAYER_BASE)) { BLI_assert_msg(false, "Element type should already use new AbstractTreeElement design"); }