Fix T81675: Renaming collapsed collection in Outliner renames nested items
* `do_outliner_item_rename()` enables the rename mode for the item under the cursor. Issue is, collapsed children end up having stored the same coordinate as their parent, so they too would get the rename mode enabled (there is no early-exit that would hide this). * The items displayed as inline icons do get the proper coordinates of the icons, so they are not mistaken as being under the cursor. After rBb077de086e14, the Outliner tree is rebuilt less often, so the coordinates are cleared less often too. As far as I can see we can always clear coordinates of invisible items now. No code seems to depend on keeping the old coordinates anymore.
This commit is contained in:
parent
5efb104003
commit
5129e2e042
Notes:
blender-bot
2023-02-14 07:17:43 +01:00
Referenced by issue #81675, renaming a collection in outliner triggers renaming mode for all meshes inside
|
@ -2915,9 +2915,9 @@ static void outliner_set_coord_tree_element(TreeElement *te, int startx, int sta
|
|||
|
||||
/* closed items may be displayed in row of parent, don't change their coordinate! */
|
||||
if ((te->flag & TE_ICONROW) == 0 && (te->flag & TE_ICONROW_MERGED) == 0) {
|
||||
/* store coord and continue, we need coordinates for elements outside view too */
|
||||
te->xs = startx;
|
||||
te->ys = starty;
|
||||
te->xs = 0;
|
||||
te->ys = 0;
|
||||
te->xend = 0;
|
||||
}
|
||||
|
||||
for (ten = te->subtree.first; ten; ten = ten->next) {
|
||||
|
|
Loading…
Reference in New Issue