mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-08 17:29:03 +08:00
FIX:clear clip position when exit paint gizmo
Jira: STUDIO-6748 Change-Id: I2995bb17fdfc26453d8235b4c01a78449b2a085e
This commit is contained in:
parent
5c6b8812a5
commit
78327146cc
@ -1094,12 +1094,14 @@ void GLGizmoPainterBase::on_set_state()
|
||||
//camera.look_at(position, rotate_target, Vec3d::UnitZ());
|
||||
}
|
||||
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
|
||||
if (m_c->object_clipper()) {
|
||||
m_c->object_clipper()->set_position(0, true);
|
||||
}
|
||||
// we are actually shutting down
|
||||
on_shutdown();
|
||||
m_old_mo_id = -1;
|
||||
//m_iva.release_geometry();
|
||||
m_triangle_selectors.clear();
|
||||
|
||||
//Camera& camera = wxGetApp().plater()->get_camera();
|
||||
//camera.look_at(camera.get_position(), m_previous_target, Vec3d::UnitZ());
|
||||
//camera.set_target(m_previous_target);
|
||||
|
Loading…
x
Reference in New Issue
Block a user