Commit: 923f394485f0a0171d3969bed137598cac4c96af Author: Philipp Oeser Date: Thu Dec 1 11:41:26 2022 +0100 Branches: master https://developer.blender.org/rB923f394485f0a0171d3969bed137598cac4c96af
Fix Outliner: Click next to View Layer name triggers object select Unlike other (closed) hierarchies, view layers dont show their contents next to their names. Code would still find the item via outliner_find_item_at_x_in_row though, this is now prevented (same as if the viewlayer was open [instead of collapsed]). Fixes T102357. Maniphest Tasks: T102357 Differential Revision: https://developer.blender.org/D16662 =================================================================== M source/blender/editors/space_outliner/outliner_utils.cc =================================================================== diff --git a/source/blender/editors/space_outliner/outliner_utils.cc b/source/blender/editors/space_outliner/outliner_utils.cc index 2deedccc29e..e28f45227ee 100644 --- a/source/blender/editors/space_outliner/outliner_utils.cc +++ b/source/blender/editors/space_outliner/outliner_utils.cc @@ -133,9 +133,11 @@ TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, bool *r_is_merged_icon, bool *r_is_over_icon) { - /* if parent_te is opened, it doesn't show children in row */ + TreeStoreElem *parent_tselem = TREESTORE(parent_te); TreeElement *te = parent_te; - if (!TSELEM_OPEN(TREESTORE(parent_te), space_outliner)) { + + /* If parent_te is opened, or it is a ViewLayer, it doesn't show children in row. */ + if (!TSELEM_OPEN(parent_tselem, space_outliner) && parent_tselem->type != TSE_R_LAYER) { te = outliner_find_item_at_x_in_row_recursive(parent_te, view_co_x, r_is_merged_icon); } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
