mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Improvements of the triangulation of SLA layer preview.
This commit is contained in:
parent
584e8a8490
commit
49487c16e6
7 changed files with 386 additions and 127 deletions
|
@ -1995,7 +1995,7 @@ bool GLBed::on_init_from_file(const std::string& filename, bool useVBOs)
|
|||
{
|
||||
model = Model::read_from_file(filename);
|
||||
}
|
||||
catch (std::exception &e)
|
||||
catch (std::exception & /* ex */)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -2014,7 +2014,7 @@ bool GLBed::on_init_from_file(const std::string& filename, bool useVBOs)
|
|||
else
|
||||
m_volume.indexed_vertex_array.load_mesh_flat_shading(mesh);
|
||||
|
||||
float color[4] = { 0.235f, 0.235, 0.235f, 1.0f };
|
||||
float color[4] = { 0.235f, 0.235f, 0.235f, 1.0f };
|
||||
set_color(color, 4);
|
||||
|
||||
m_volume.bounding_box = m_volume.indexed_vertex_array.bounding_box();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue