Fix T59404: Mistake in recent EdgeHash refactor broke edge generations in mesh validate code.

This commit is contained in:
Bastien Montagne 2018-12-17 14:28:29 +01:00
parent 60a5559b6c
commit ce3d00b9b7
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #59404, OBJ import and rendering crash
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ bool BLI_edgehash_ensure_p(EdgeHash *eh, uint v0, uint v1, void ***r_value)
}
else if (index == SLOT_EMPTY) {
if (edgehash_ensure_can_insert(eh)) {
edgehash_insert(eh, edge, NULL);
*r_value = &edgehash_insert(eh, edge, NULL)->value;
}
else {
*r_value = &edgehash_insert_at_slot(eh, slot, edge, NULL)->value;