From 9d98d55b1e860f9605c7409a747c88d4e3872d40 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Mon, 28 Jul 2025 10:02:52 +0100 Subject: [PATCH] fix tree selection --- Engine/source/navigation/navMeshTools/navMeshSelectTool.h | 1 + Templates/BaseGame/game/tools/navEditor/navEditor.tscript | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Engine/source/navigation/navMeshTools/navMeshSelectTool.h b/Engine/source/navigation/navMeshTools/navMeshSelectTool.h index ff2ad8769..521a23fe8 100644 --- a/Engine/source/navigation/navMeshTools/navMeshSelectTool.h +++ b/Engine/source/navigation/navMeshTools/navMeshSelectTool.h @@ -18,6 +18,7 @@ public: NavMeshSelectTool(); virtual ~NavMeshSelectTool() {} + void setActiveNavMesh(NavMesh* nav_mesh) { mNavMesh = nav_mesh; mSelMesh = nav_mesh; } void onActivated(const Gui3DMouseEvent& evt) override; void onDeactivated() override; diff --git a/Templates/BaseGame/game/tools/navEditor/navEditor.tscript b/Templates/BaseGame/game/tools/navEditor/navEditor.tscript index 3d72f307d..3a501cddd 100644 --- a/Templates/BaseGame/game/tools/navEditor/navEditor.tscript +++ b/Templates/BaseGame/game/tools/navEditor/navEditor.tscript @@ -698,6 +698,8 @@ function NavTreeView::onInspect(%this, %obj) function NavTreeView::onSelect(%this, %obj) { NavInspector.inspect(%obj); + + NavEditorGui.selectMesh(%obj); } function NavEditorGui::prepSelectionMode(%this)