mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-10 23:51:49 +08:00
Measuring - Gizmo measure - Fixed update of volume matrix
This commit is contained in:
parent
22e85d9896
commit
1c2c012006
@ -678,11 +678,11 @@ void GLGizmoMeasure::update_if_needed()
|
||||
}
|
||||
m_old_model_object = object;
|
||||
m_old_model_volume = volume;
|
||||
|
||||
m_volume_matrix = m_parent.get_selection().get_first_volume()->world_matrix();
|
||||
m_volume_matrix_scale_inverse = Geometry::Transformation(m_volume_matrix).get_scaling_factor_matrix().inverse();
|
||||
};
|
||||
|
||||
m_volume_matrix = m_parent.get_selection().get_first_volume()->world_matrix();
|
||||
m_volume_matrix_scale_inverse = Geometry::Transformation(m_volume_matrix).get_scaling_factor_matrix().inverse();
|
||||
|
||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
||||
const ModelVolume* mv = m_c->selection_info()->model_volume();
|
||||
if (m_state != On || (mo == nullptr && mv == nullptr))
|
||||
|
Loading…
x
Reference in New Issue
Block a user