disable indoor check

This commit is contained in:
T1ti
2023-07-16 00:24:10 +02:00
parent 7358075d3e
commit aa08b7ae05
2 changed files with 7 additions and 4 deletions

View File

@@ -844,7 +844,6 @@ bool World::isInIndoorWmoGroup(std::array<glm::vec3, 2> obj_bounds)
{
auto wmo_extents = wmo_instance.getExtents();
if (obj_bounds[1].x >= wmo_extents[0].x
&& obj_bounds[1].y >= wmo_extents[0].y
&& obj_bounds[1].z >= wmo_extents[0].z
@@ -871,8 +870,11 @@ bool World::isInIndoorWmoGroup(std::array<glm::vec3, 2> obj_bounds)
&& group_extents.second.y >= obj_bounds[0].y
&& group_extents.second.z >= obj_bounds[0].z;
is_indoor = test;
return;
if (test)
{
return true;
}
}
}
}

View File

@@ -641,7 +641,8 @@ namespace Noggit
new_obj->recalcExtents();
// check if pos is valid (not in an interior) wmo group
bool is_indoor = world->isInIndoorWmoGroup(new_obj->extents);
// bool is_indoor = world->isInIndoorWmoGroup(new_obj->extents);
bool is_indoor = false; // Disabled the indoor check until non axis aligned boxes check is implemented
if (is_indoor)
{
QMessageBox::warning