set wire active flag

This commit is contained in:
Miodrag Milanovic 2019-10-12 10:35:52 +02:00
parent 3da7af9f02
commit a11cc8791b
2 changed files with 3 additions and 1 deletions

View File

@ -822,7 +822,7 @@ DecalXY Arch::getWireDecal(WireId wire) const
decalxy.decal.type = DecalId::TYPE_WIRE;
decalxy.decal.location = wire.location;
decalxy.decal.z = wire.index;
decalxy.decal.active = false;
decalxy.decal.active = getBoundWireNet(wire) != nullptr;
return decalxy;
}

View File

@ -660,6 +660,7 @@ struct Arch : BaseCtx
wire_to_net[wire] = net;
net->wires[wire].pip = PipId();
net->wires[wire].strength = strength;
refreshUiWire(wire);
}
void unbindWire(WireId wire)
@ -679,6 +680,7 @@ struct Arch : BaseCtx
net_wires.erase(it);
wire_to_net[wire] = nullptr;
refreshUiWire(wire);
}
bool checkWireAvail(WireId wire) const