Cleanup: Remove unnecessary DispList bounds call

The object types that this covered now evaluate to curves
or a mesh, which are retrieved in the two earlier cases.
This commit is contained in:
Hans Goudey
2023-06-15 17:16:32 -04:00
parent 79eebf8aad
commit 2c7daa34b5

View File

@@ -3862,9 +3862,6 @@ bool BKE_object_boundbox_calc_from_evaluated_geometry(Object *ob)
max = float3(0);
}
}
else if (ob->runtime.curve_cache) {
BKE_displist_minmax(&ob->runtime.curve_cache->disp, min, max);
}
else {
return false;
}