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
2026-03-12 19:38:36 +08:00
committed by GitHub
parent 40bf2157e3
commit 845baaefbb
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -44,3 +44,4 @@ test.js
/.cache/
.clangd
internal_docs/
*.flatpak

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();