1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-18 09:14:27 +00:00

3DScene set_viewport_from_scene method moved to c++

This commit is contained in:
Enrico Turri
2018-05-29 15:36:09 +02:00
parent df14a3c399
commit 2f773a89df
9 changed files with 135 additions and 119 deletions
+9
View File
@@ -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))