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

This commit is contained in:
2018-12-17 14:28:29 +01:00
parent 60a5559b6c
commit ce3d00b9b7

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;