Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-10-06 17:15:12 +0300
committerJulian Eisel <julian@blender.org>2021-10-06 17:36:20 +0300
commit536109b4ec336e86de5a7e22e51804584bca74f5 (patch)
treedb9fac77268a34052c2afb8a5313a419e933ed67 /source/blender/editors/include/UI_tree_view.hh
parent2012d541ae3b9fb4ef099e7c490083b463e60d4f (diff)
Fix possibly wrong matching of tree-view item buttons
The UI code to ensure consistent button state over redraws was just comparing the name of the item, ignoring the parent names. So with multiple items of the same name, there might have been glitches (didn't see any myself though). There's a leftover to-do though, we don't check yet if the matched buttons are actually from the same tree. Added TODO comment.
Diffstat (limited to 'source/blender/editors/include/UI_tree_view.hh')
-rw-r--r--source/blender/editors/include/UI_tree_view.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_tree_view.hh b/source/blender/editors/include/UI_tree_view.hh
index 51737067648..8f8681896fe 100644
--- a/source/blender/editors/include/UI_tree_view.hh
+++ b/source/blender/editors/include/UI_tree_view.hh
@@ -301,6 +301,7 @@ class AbstractTreeViewItem : public TreeViewItemContainer {
bool is_renaming() const;
void ensure_parents_uncollapsed();
+ bool matches_including_parents(const AbstractTreeViewItem &other) const;
protected:
/**