set wire active flag
This commit is contained in:
parent
3da7af9f02
commit
a11cc8791b
@ -822,7 +822,7 @@ DecalXY Arch::getWireDecal(WireId wire) const
|
|||||||
decalxy.decal.type = DecalId::TYPE_WIRE;
|
decalxy.decal.type = DecalId::TYPE_WIRE;
|
||||||
decalxy.decal.location = wire.location;
|
decalxy.decal.location = wire.location;
|
||||||
decalxy.decal.z = wire.index;
|
decalxy.decal.z = wire.index;
|
||||||
decalxy.decal.active = false;
|
decalxy.decal.active = getBoundWireNet(wire) != nullptr;
|
||||||
return decalxy;
|
return decalxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -660,6 +660,7 @@ struct Arch : BaseCtx
|
|||||||
wire_to_net[wire] = net;
|
wire_to_net[wire] = net;
|
||||||
net->wires[wire].pip = PipId();
|
net->wires[wire].pip = PipId();
|
||||||
net->wires[wire].strength = strength;
|
net->wires[wire].strength = strength;
|
||||||
|
refreshUiWire(wire);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unbindWire(WireId wire)
|
void unbindWire(WireId wire)
|
||||||
@ -679,6 +680,7 @@ struct Arch : BaseCtx
|
|||||||
|
|
||||||
net_wires.erase(it);
|
net_wires.erase(it);
|
||||||
wire_to_net[wire] = nullptr;
|
wire_to_net[wire] = nullptr;
|
||||||
|
refreshUiWire(wire);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkWireAvail(WireId wire) const
|
bool checkWireAvail(WireId wire) const
|
||||||
|
Loading…
Reference in New Issue
Block a user