Cleanup: Remove object bounding box function

This abstraction doesn't serve any purpose after 11c6d4e88e.
The flag on bounding boxes isn't used, except for the dirty tag.
This commit is contained in:
Hans Goudey 2022-04-01 14:58:32 -05:00
parent 59c3194f8e
commit 69c07adb51
2 changed files with 1 additions and 17 deletions

View File

@ -355,10 +355,7 @@ void BKE_object_dimensions_set_ex(struct Object *ob,
void BKE_object_dimensions_set(struct Object *ob, const float value[3], int axis_mask);
void BKE_object_empty_draw_type_set(struct Object *ob, int value);
/**
* Use this to temporally disable/enable bound-box.
*/
void BKE_object_boundbox_flag(struct Object *ob, int flag, bool set);
void BKE_object_boundbox_calc_from_mesh(struct Object *ob, const struct Mesh *me_eval);
bool BKE_object_boundbox_calc_from_evaluated_geometry(struct Object *ob);
void BKE_object_minmax(struct Object *ob, float r_min[3], float r_max[3], bool use_hidden);

View File

@ -3627,19 +3627,6 @@ BoundBox *BKE_object_boundbox_get(Object *ob)
return bb;
}
void BKE_object_boundbox_flag(Object *ob, int flag, const bool set)
{
BoundBox *bb = BKE_object_boundbox_get(ob);
if (bb) {
if (set) {
bb->flag |= flag;
}
else {
bb->flag &= ~flag;
}
}
}
void BKE_object_boundbox_calc_from_mesh(Object *ob, const Mesh *me_eval)
{
float3 min(FLT_MAX);