Fix #124212: Edit mode undo crash with no faces
Just a missing null check here. Caused by 734e9fa4b82cf8f6e291fc0e9755bafec1548c61.
This commit is contained in:
parent
75959af2ed
commit
ecebf94e25
@ -360,8 +360,9 @@ static void um_arraystore_cd_free(BArrayCustomData *bcd, const int bs_index)
|
||||
BArrayStore *bs = BLI_array_store_at_size_get(&um_arraystore.bs_stride[bs_index], stride);
|
||||
for (int i = 0; i < bcd->states.size(); i++) {
|
||||
if (std::holds_alternative<BArrayState *>(bcd->states[i])) {
|
||||
BArrayState *state = std::get<BArrayState *>(bcd->states[i]);
|
||||
BLI_array_store_state_remove(bs, state);
|
||||
if (BArrayState *state = std::get<BArrayState *>(bcd->states[i])) {
|
||||
BLI_array_store_state_remove(bs, state);
|
||||
}
|
||||
}
|
||||
else {
|
||||
ImplicitSharingInfoAndData state = std::get<ImplicitSharingInfoAndData>(bcd->states[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user