From 632849b509258e4a714ad98b318abcadb19f28d4 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 7 Jun 2020 20:42:42 -0400 Subject: [PATCH] Show the inspector instead of the preset list when selecting an untagged vertex with a parent relation --- modules/ui/inspector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui/inspector.js b/modules/ui/inspector.js index c23332067..4362d09a0 100644 --- a/modules/ui/inspector.js +++ b/modules/ui/inspector.js @@ -71,6 +71,9 @@ export function uiInspector(context) { // all existing features except vertices should default to inspector if (entity.geometry(context.graph()) !== 'vertex') return false; + // show vertex relations if any + if (context.graph().parentRelations(entity).length) return false; + // show vertex issues if there are any if (context.validator().getEntityIssues(entityID).length) return false;