Duplicates of a grid corner adjacent to an edge which are on the
adjacent grid of the same face were not added when requested.
Needed for D8356 to work, it may also fix some other bug in Multires.
Differential D8385
Fix missing duplicates in the subdiv_ccg neighbors function Authored by Pablo Dobarro (pablodp606) on Jul 25 2020, 1:51 AM. Tags None Subscribers None
Details Duplicates of a grid corner adjacent to an edge which are on the Needed for D8356 to work, it may also fix some other bug in Multires.
Diff Detail
Event Timeline
Comment Actions Ok, the workaround for the missing automated test. Here is a patch and .blend file iv'e used: P1552 Indeed all 3 duplicates are now detected.
Comment Actions Ok, I refactored this to remove the two calls to subdiv_ccg_neighbors_init, so we can leave the neighbor storage refactor for a separate patch. In that case, wouldn't it be simpler to add a subdiv_ccg_neighbors_add and subdiv_ccg_neighbors_add_duplicate functions that handle both the capacity, sizes and indices in the array? That way all the logic to write neighbors and duplicates to specific array indices can be removed from the rest of the functions, similar to how cloth brush constraints and neighbors for regular meshes work. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||