Explorar el Código

fix tree selection

marauder2k7 hace 1 mes
padre
commit
9d98d55b1e

+ 1 - 0
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;
 

+ 2 - 0
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)