Skip to content

Commit

Permalink
3211: allow shortcuts creating point entities with no selection (Tren…
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwa authored May 12, 2020
1 parent b9e0d39 commit df278bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/View/Actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ namespace TrenchBroom {
result.push_back(makeAction(
IO::Path("Entities/" + definition->name() + "/Create"),
QObject::tr("Create %1").arg(QString::fromStdString(definition->name())),
ActionContext::AnyView | ActionContext::NodeSelection | ActionContext::AnyTool,
ActionContext::Any,
[definition](ActionExecutionContext& context) {
context.view()->createEntity(definition);
},
Expand Down

0 comments on commit df278bc

Please sign in to comment.