From 9603682f520be51d8b452ebb69c648d9d3bd1299 Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 12 Nov 2022 08:52:16 +0100 Subject: [PATCH] #6145: Add a command remapping from FocusCameraOnSelection to ToggleSelectionFocus Move the old FocusCameraOnSelection out of the way by renaming it to FocusCameraViewOnSelection --- install/input.xml | 3 +++ radiantcore/map/Map.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install/input.xml b/install/input.xml index b2c754ebd..a8a2f5ce5 100644 --- a/install/input.xml +++ b/install/input.xml @@ -231,5 +231,8 @@ + + + diff --git a/radiantcore/map/Map.cpp b/radiantcore/map/Map.cpp index 0e9145a98..a536caae8 100644 --- a/radiantcore/map/Map.cpp +++ b/radiantcore/map/Map.cpp @@ -1014,7 +1014,7 @@ void Map::registerCommands() GlobalCommandSystem().addCommand("ExportMap", std::bind(&Map::exportMap, this, std::placeholders::_1)); GlobalCommandSystem().addCommand("SaveSelected", Map::exportSelection); GlobalCommandSystem().addCommand("FocusViews", std::bind(&Map::focusViewCmd, this, std::placeholders::_1), { cmd::ARGTYPE_VECTOR3, cmd::ARGTYPE_VECTOR3 }); - GlobalCommandSystem().addCommand("FocusCameraOnSelection", std::bind(&Map::focusCameraOnSelectionCmd, this, std::placeholders::_1)); + GlobalCommandSystem().addCommand("FocusCameraViewOnSelection", std::bind(&Map::focusCameraOnSelectionCmd, this, std::placeholders::_1)); // ExportSelectedAsModel [] [] [] [] [] [] GlobalCommandSystem().addCommand("ExportSelectedAsModel", algorithm::exportSelectedAsModelCmd, { cmd::ARGTYPE_STRING, // path