소스 검색

fix tree selection

marauder2k7 1 개월 전
부모
커밋
9d98d55b1e
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Engine/source/navigation/navMeshTools/navMeshSelectTool.h
  2. 2 0
      Templates/BaseGame/game/tools/navEditor/navEditor.tscript

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