mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-16 08:09:53 +00:00
Fixed bad macro
This commit is contained in:
@@ -979,7 +979,7 @@ void Sample_TempObstacles::drawSettingsUI()
|
||||
void Sample_TempObstacles::drawToolsUI()
|
||||
{
|
||||
const SampleToolType currentTool = !tool ? SampleToolType::NONE : tool->type();
|
||||
#define TOOL(tool, toolType) if (ImGui::RadioButton(toolNames[static_cast<int>(tool), currentTool == tool)) { setTool(new toolType{}); }
|
||||
#define TOOL(toolType, toolClass) if (ImGui::RadioButton(toolNames[static_cast<int>(SampleToolType::toolType)], currentTool == SampleToolType::toolType)) { setTool(new toolClass{}); }
|
||||
TOOL(NAVMESH_TESTER, NavMeshTesterTool)
|
||||
TOOL(TILE_HIGHLIGHT, TempObstacleHighlightTool)
|
||||
TOOL(TEMP_OBSTACLE, TempObstacleCreateTool)
|
||||
|
||||
Reference in New Issue
Block a user