mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 07:03:11 +08:00
FIX:ban object drag downward when camera is horizontal
jira: none Change-Id: I8dd64eadb783aababb12a707fe78bfe29d1f8a50
This commit is contained in:
parent
f6a230869b
commit
2af6c4f4f4
@ -4290,6 +4290,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||||||
|
|
||||||
// apply offset
|
// apply offset
|
||||||
cur_pos = m_mouse.drag.start_position_3D + projection_x * camera_right + projection_z * camera_up;
|
cur_pos = m_mouse.drag.start_position_3D + projection_x * camera_right + projection_z * camera_up;
|
||||||
|
cur_pos[2] = m_mouse.drag.start_position_3D(2);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Generic view
|
// Generic view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user