mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed positioning of bed model into the scene and changed bundled bed models
This commit is contained in:
parent
1483a7fd51
commit
48dc2bb762
5 changed files with 3 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue