Skip to content

Commit a4cd80a

Browse files
LiZ-Li-BBLlanewei120
authored andcommitted
FIX: meshboolean transform result issue
jira: STUDIO-5425 Change-Id: If66fe909ce4458c1b3192e4fd8a3d758fe7c7eaa
1 parent b295ba3 commit a4cd80a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/slic3r/GUI/Gizmos/GLGizmoMeshBoolean.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ bool GLGizmoMeshBoolean::gizmo_event(SLAGizmoEventType action, const Vec2d& mous
6868
return true;
6969

7070
if (get_selecting_state() == MeshBooleanSelectingState::SelectTool) {
71-
m_tool.trafo = trafo_matrices[closest_hit_mesh_id];
71+
m_tool.trafo = mo->volumes[closest_hit_mesh_id]->get_matrix();
7272
m_tool.volume_idx = closest_hit_mesh_id;
7373
set_tool_volume(mo->volumes[closest_hit_mesh_id]);
7474
return true;
7575
}
7676
if (get_selecting_state() == MeshBooleanSelectingState::SelectSource) {
77-
m_src.trafo = trafo_matrices[closest_hit_mesh_id];
77+
m_src.trafo = mo->volumes[closest_hit_mesh_id]->get_matrix();
7878
m_src.volume_idx = closest_hit_mesh_id;
7979
set_src_volume(mo->volumes[closest_hit_mesh_id]);
8080
m_selecting_state = MeshBooleanSelectingState::SelectTool;

0 commit comments

Comments
 (0)