Fixed positioning of bed model into the scene and changed bundled bed models

This commit is contained in:
Enrico Turri 2019-07-25 08:43:21 +02:00
parent 1483a7fd51
commit 48dc2bb762
5 changed files with 3 additions and 19 deletions

View file

@ -1736,13 +1736,7 @@ bool GLBed::on_init_from_file(const std::string& filename)
m_filename = filename;
ModelObject* model_object = model.objects.front();
model_object->center_around_origin();
TriangleMesh mesh = model.mesh();
mesh.repair();
m_volume.indexed_vertex_array.load_mesh(mesh);
m_volume.indexed_vertex_array.load_mesh(model.mesh());
float color[4] = { 0.235f, 0.235f, 0.235f, 1.0f };
set_color(color, 4);