navMeshTool.cpp 810 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "platform/platform.h"
  2. #include "navigation/navMeshTool.h"
  3. #ifdef TORQUE_TOOLS
  4. #include "util/undo.h"
  5. #include "math/mMath.h"
  6. #include "math/mathUtils.h"
  7. IMPLEMENT_CONOBJECT(NavMeshTool);
  8. ConsoleDocClass(NavMeshTool,
  9. "@brief Base class for NavMesh Editor specific tools\n\n"
  10. "Editor use only.\n\n"
  11. "@internal"
  12. );
  13. void NavMeshTool::_submitUndo(UndoAction* action)
  14. {
  15. AssertFatal(action, "NavMeshTool::_submitUndo() - No undo action!");
  16. // Grab the mission editor undo manager.
  17. UndoManager* undoMan = NULL;
  18. if (!Sim::findObject("EUndoManager", undoMan))
  19. {
  20. Con::errorf("NavMeshTool::_submitUndo() - EUndoManager not found!");
  21. return;
  22. }
  23. undoMan->addAction(action);
  24. }
  25. NavMeshTool::NavMeshTool()
  26. : mNavMesh(NULL)
  27. {
  28. }
  29. NavMeshTool::~NavMeshTool()
  30. {
  31. }
  32. #endif