mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 15:47:25 +08:00
Another fix in flatten gizmo's flattening normal
This commit is contained in:
parent
df594fc5b0
commit
aef871f1a0
@ -1280,7 +1280,7 @@ bool GLGizmoFlatten::is_plane_update_necessary() const
|
||||
}
|
||||
|
||||
Vec3d GLGizmoFlatten::get_flattening_normal() const {
|
||||
Vec3d normal = m_model_object->instances.front()->world_matrix().matrix().block(0, 0, 3, 3) * m_normal;
|
||||
Vec3d normal = m_model_object->instances.front()->world_matrix(true).matrix().block(0, 0, 3, 3).inverse() * m_normal;
|
||||
m_normal = Vec3d::Zero();
|
||||
return normal.normalized();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user