mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
3DScene set_viewport_from_scene method moved to c++
This commit is contained in:
parent
df14a3c399
commit
2f773a89df
9 changed files with 135 additions and 119 deletions
|
@ -1520,6 +1520,15 @@ void GLCanvas3D::select_view(const std::string& direction)
|
|||
}
|
||||
}
|
||||
|
||||
void GLCanvas3D::set_viewport_from_scene(const GLCanvas3D& other)
|
||||
{
|
||||
set_camera_phi(other.get_camera_phi());
|
||||
set_camera_theta(other.get_camera_theta());
|
||||
set_camera_target(other.get_camera_target());
|
||||
set_camera_zoom(other.get_camera_zoom());
|
||||
set_dirty(true);
|
||||
}
|
||||
|
||||
void GLCanvas3D::update_volumes_colors_by_extruder()
|
||||
{
|
||||
if ((m_volumes == nullptr) || (m_config == nullptr))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue