Navigation Menu

Skip to content

Commit

Permalink
#6095: Make Detail and Make Structural disabled without selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mott committed Sep 7, 2022
1 parent 197b34b commit db43447
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions radiantcore/selection/algorithm/General.cpp
Expand Up @@ -1025,13 +1025,17 @@ void registerCommands()
GlobalCommandSystem().addCommand("CreateCurveNURBS", createCurveNURBS);
GlobalCommandSystem().addCommand("CreateCurveCatmullRom", createCurveCatmullRom);

GlobalCommandSystem().addCommand("FloorSelection", floorSelection);
GlobalCommandSystem().addCommand("BrushSetDetailFlag", brushSetDetailFlag, { cmd::ARGTYPE_STRING });
GlobalCommandSystem().addStatement("BrushMakeDetail", "BrushSetDetailFlag detail", false);
GlobalCommandSystem().addStatement("BrushMakeStructural", "BrushSetDetailFlag structural", false);

GlobalCommandSystem().addCommand(scene::SELECT_NODE_BY_INDEX_CMD, scene::selectNodeByIndexCmd,
{ cmd::ARGTYPE_INT, cmd::ARGTYPE_INT });
GlobalCommandSystem().addCommand("FloorSelection", floorSelection);
GlobalCommandSystem().addWithCheck("BrushSetDetailFlag", brushSetDetailFlag,
[] { return selection::pred::haveBrush(); },
{cmd::ARGTYPE_STRING});
GlobalCommandSystem().addStatement("BrushMakeDetail", "BrushSetDetailFlag detail",
false);
GlobalCommandSystem().addStatement("BrushMakeStructural", "BrushSetDetailFlag structural",
false);

GlobalCommandSystem().addCommand(scene::SELECT_NODE_BY_INDEX_CMD, scene::selectNodeByIndexCmd,
{cmd::ARGTYPE_INT, cmd::ARGTYPE_INT});
}

} // namespace algorithm
Expand Down

0 comments on commit db43447

Please sign in to comment.