Skip to content

Commit

Permalink
#6145: Add a command remapping from FocusCameraOnSelection to ToggleS…
Browse files Browse the repository at this point in the history
…electionFocus

Move the old FocusCameraOnSelection out of the way by renaming it to FocusCameraViewOnSelection
  • Loading branch information
codereader committed Nov 12, 2022
1 parent 285c685 commit 9603682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions install/input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,8 @@
<commandRemapping oldname="TextureTool" newname="ToggleTextureTool" />
<commandRemapping oldname="GameConnectionDialogToggle" newname="ToggleGameConnectionPanel" />
<commandRemapping oldname="ViewTextures" newname="ToggleTextureBrowser" />
<!-- DR 3.6.0: Re-bind the old FocusCameraOnSelection shortcut to ToggleSelectionFocus -->
<!-- FocusCameraOnSelection is now called FocusCameraViewOnSelection -->
<commandRemapping oldname="FocusCameraOnSelection" newname="ToggleSelectionFocus" />
</commandRemappings>
</input>
2 changes: 1 addition & 1 deletion radiantcore/map/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Path> <ExportFormat> [<ExportOrigin>] [<OriginEntityName>] [<CustomOrigin>] [<SkipCaulk>] [<ReplaceSelectionWithModel>] [<ExportLightsAsObjects>]
GlobalCommandSystem().addCommand("ExportSelectedAsModel", algorithm::exportSelectedAsModelCmd,
{ cmd::ARGTYPE_STRING, // path
Expand Down

0 comments on commit 9603682

Please sign in to comment.