fix tree selection

This commit is contained in:
marauder2k7 2025-07-28 10:02:52 +01:00
parent 888e72ad28
commit 9d98d55b1e
2 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -698,6 +698,8 @@ function NavTreeView::onInspect(%this, %obj)
function NavTreeView::onSelect(%this, %obj)
{
NavInspector.inspect(%obj);
NavEditorGui.selectMesh(%obj);
}
function NavEditorGui::prepSelectionMode(%this)