add/make visible weakly matched presets

This commit is contained in:
Max Grossman
2018-12-14 15:42:25 -05:00
parent f627f1e659
commit d87b1822f7
3 changed files with 18 additions and 6 deletions
+3
View File
@@ -218,6 +218,8 @@ export function uiEntityEditor(context) {
// A "weak" preset doesn't set any tags. (e.g. "Address")
// Don't replace a weak preset with a fallback preset (e.g. "Point")
if (!(weakPreset && match.isFallback())) {
match.visible(true);
context.presets().choose(match);
entityEditor.preset(match);
}
entityEditor.modified(_base !== graph);
@@ -250,6 +252,7 @@ export function uiEntityEditor(context) {
context.overwrite(actionChangeTags(_entityID, tags), annotation);
} else {
context.perform(actionChangeTags(_entityID, tags), annotation);
// context.presets().choose(context.presets().match(context.graph))
_coalesceChanges = !!onInput;
}
}