Feature/fix crash on linux when clicking assemble feature (#12739)

* fix crash on Linux when clicking Assemble gizmo

* some qol changes for dev

* Revert "some qol changes for dev"

This reverts commit ffe321370b.
This commit is contained in:
SoftFever authored and GitHub committed 2026-03-12 19:38:36 +08:00
1 parent 40bf2157e3
commit 845baaefbb
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -678,7 +678,7 @@ void GLGizmoMeasure::on_render()
m_mesh_raycaster_map[m_last_hit_volume]->get_transform(), m_only_select_plane) :
std::nullopt;
}
if (m_measure_mode == EMeasureMode::ONLY_ASSEMBLY) {
if (m_measure_mode == EMeasureMode::ONLY_ASSEMBLY && curr_feature.has_value()) {
if (m_assembly_mode == AssemblyMode::FACE_FACE) {
if (curr_feature->get_type() != Measure::SurfaceFeatureType::Plane) {
curr_feature.reset();