Fix issue with click not being enable when an input was empty in nodes input panel.
This commit is contained in:
parent
e5d1b30cfd
commit
f1d74d8040
@ -248,6 +248,9 @@ public class NodesInputPanel extends JPanel
|
|||||||
}
|
}
|
||||||
else if (tracker != null) {
|
else if (tracker != null) {
|
||||||
tracker.setVisible(false);
|
tracker.setVisible(false);
|
||||||
|
if (getInputToFill() == null) {
|
||||||
|
nextInputToFill();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create array of nodes
|
// Create array of nodes
|
||||||
@ -399,7 +402,8 @@ public class NodesInputPanel extends JPanel
|
|||||||
for (JTextField input: nodeInputs) {
|
for (JTextField input: nodeInputs) {
|
||||||
MarkerOverlay tracker = markerTrackers.getOrDefault(input, null);
|
MarkerOverlay tracker = markerTrackers.getOrDefault(input, null);
|
||||||
if (tracker != null) {
|
if (tracker != null) {
|
||||||
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(), tracker.getColor());
|
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(),
|
||||||
|
tracker.getColor());
|
||||||
markerTrackers.put(input, newMarker);
|
markerTrackers.put(input, newMarker);
|
||||||
newMarker.setVisible(tracker.isVisible());
|
newMarker.setVisible(tracker.isVisible());
|
||||||
tracker.delete();
|
tracker.delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user