Fix #120187: Over-allocation in multires sculpt undo nodes
commitebab68d4f1f22932edbcd10e187db5d15d24ab04
authorHans Goudey <hans@blender.org>
Wed, 3 Apr 2024 17:47:35 +0000 (3 13:47 -0400)
committerHans Goudey <hans@blender.org>
Wed, 3 Apr 2024 17:49:26 +0000 (3 13:49 -0400)
treeade543ab963342ba9aca3b8ecea40a40eb8282bf
parenta6d6787d26d67387d92a16c2a97bbd9832d4d726
Fix #120187: Over-allocation in multires sculpt undo nodes

4b427e1b579725f1757e confused `unode->maxgrid` and `unode->grids.size()`
which is the number of all grids in the mesh. A follow-up commit will
rename `maxgrid` to make that clearer.
source/blender/editors/sculpt_paint/sculpt_undo.cc