mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
fix tree selection
This commit is contained in:
parent
888e72ad28
commit
9d98d55b1e
2 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ public:
|
||||||
NavMeshSelectTool();
|
NavMeshSelectTool();
|
||||||
virtual ~NavMeshSelectTool() {}
|
virtual ~NavMeshSelectTool() {}
|
||||||
|
|
||||||
|
void setActiveNavMesh(NavMesh* nav_mesh) { mNavMesh = nav_mesh; mSelMesh = nav_mesh; }
|
||||||
void onActivated(const Gui3DMouseEvent& evt) override;
|
void onActivated(const Gui3DMouseEvent& evt) override;
|
||||||
void onDeactivated() override;
|
void onDeactivated() override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -698,6 +698,8 @@ function NavTreeView::onInspect(%this, %obj)
|
||||||
function NavTreeView::onSelect(%this, %obj)
|
function NavTreeView::onSelect(%this, %obj)
|
||||||
{
|
{
|
||||||
NavInspector.inspect(%obj);
|
NavInspector.inspect(%obj);
|
||||||
|
|
||||||
|
NavEditorGui.selectMesh(%obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
function NavEditorGui::prepSelectionMode(%this)
|
function NavEditorGui::prepSelectionMode(%this)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue