mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Include relation members when forcing relations visible in all cases, not just selection (re: 6eeaf94076)
This commit is contained in:
+1
-12
@@ -233,18 +233,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
mode.enter = function() {
|
||||
if (!checkSelectedIDs()) return;
|
||||
|
||||
var forceVisibleIDs = selectedIDs.slice();
|
||||
|
||||
selectedIDs.forEach(function(id) {
|
||||
var entity = context.entity(id);
|
||||
if (entity.type === 'relation') {
|
||||
forceVisibleIDs = forceVisibleIDs.concat(entity.members.map(function(member) {
|
||||
return member.id;
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
context.features().forceVisible(forceVisibleIDs);
|
||||
context.features().forceVisible(selectedIDs);
|
||||
|
||||
var operations = Object.values(Operations)
|
||||
.map(function(o) { return o(selectedIDs, context); })
|
||||
|
||||
Reference in New Issue
Block a user