diff options
author | Hans Goudey <h.goudey@me.com> | 2021-04-19 20:25:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-04-19 20:25:25 +0300 |
commit | b8b7b47a0062ec5cc95818e9fc6bf34d07a268b0 (patch) | |
tree | fd889d8575ba22f048cd808c8b8ca753a37b3db3 /source/blender/editors/space_node/drawnode.c | |
parent | 6f761c7110af8f90457f8c13553c5e26d7bc270f (diff) |
Fix T85223: Some modifier panels can dissapear in old files
The problem is that each uiBlock needs to be assigned a unique name,
but when there can be multiple modifiers of the same type, we use the
panel sort order for the unique part of the string. However, the most
recent test file has 1200+ panels in the property editor, so 4
characters isn't enough for a unique string.
That's not a situation I expected, but it makes sense, because we don't
remove legacy panels with unused types when loading old files. So they
tend to accumulate a bunch of unused panels. That's why this works fine
with a new property editor, it doesn't all of the extra old panels.
These panels must be stored for the expansion status and order, but
arguably we could cull unused panels on save. However, simply increasing
the length of the unique panel string is a valid fix in this situation.
In the future, we can look into removing unused panels when saving.
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
0 files changed, 0 insertions, 0 deletions