Only show podset markers when selected

This commit is contained in:
SiboVG 2022-07-16 13:18:10 +02:00
parent a89f1171cc
commit 9c5d1e9e26

View File

@ -381,6 +381,21 @@ public class RocketFigure extends AbstractScaleFigure {
for(Entry<RocketComponent, ArrayList<InstanceContext>> entry: config.getActiveInstances().entrySet() ) {
final RocketComponent comp = entry.getKey();
// Only draw podsets when they are selected
if (comp instanceof PodSet) {
boolean selected = false;
// Check if component is in the selection
for (int j = 0; j < selection.length; j++) {
if (comp == selection[j]) {
selected = true;
break;
}
}
if (!selected) continue;
}
final ArrayList<InstanceContext> contextList = entry.getValue();
for(InstanceContext context: contextList ) {