Skip to content

Commit

Permalink
Fix null pointer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed Nov 6, 2024
1 parent 3d45414 commit ceeebda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,10 @@ void GLGizmoMeasure::on_render()
reset_gripper_pick(GripperType::UNDEFINE, true);

m_curr_feature = curr_feature;
m_curr_feature->volume = m_last_hit_volume;
m_curr_feature->world_tran = m_mesh_raycaster_map[m_last_hit_volume]->get_transform();
if (!m_curr_feature.has_value())
return;
m_curr_feature->volume = m_last_hit_volume;
m_curr_feature->world_tran = m_mesh_raycaster_map[m_last_hit_volume]->get_transform();

switch (m_curr_feature->get_type()) {
default: { assert(false); break; }
Expand Down

0 comments on commit ceeebda

Please sign in to comment.