mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
1st installment of tech ENABLE_ENVIRONMENT_MAP
This commit is contained in:
parent
4b6bcd7028
commit
c63e03c367
11 changed files with 93 additions and 6 deletions
|
@ -1994,6 +1994,10 @@ void GLCanvas3D::render()
|
|||
return;
|
||||
}
|
||||
|
||||
#if ENABLE_ENVIRONMENT_MAP
|
||||
wxGetApp().plater()->init_environment_texture();
|
||||
#endif // ENABLE_ENVIRONMENT_MAP
|
||||
|
||||
const Size& cnv_size = get_canvas_size();
|
||||
// Probably due to different order of events on Linux/GTK2, when one switched from 3D scene
|
||||
// to preview, this was called before canvas had its final size. It reported zero width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue