BOOLR
BOOLR copied to clipboard
Fix wire bugs
This pull request fixes problems connecting wires to wires
How to reproduce:
- connect input 1 to output 1
- connect input 0 to output 0
- connect wire connecting i/o 1 to i/o 0 (from top to bottom)
- activate inputs 0 and 1
- deactivate input 1
When deactivating Input#1 I would expect no wires to change value, but upper part of the circuit goes off, while the lower stays on:
But disabling Input#2 works as expected
Other fixed problems:
- If I try to add wire with opposite direction and disable both Input#1 and Input#2, then all wires will still be on due to loop powering of two wires of opposite direction
- Removing wires does not trigger update
- Undoing wires removal does not trigger update
- Removing selection and undoing does not display wire but adds it
- When multiple wires connected to one port only the last one is really connected, so when dragging the component/port earlier wires are not moving
- When multiple wire connected to one port and one of them goes off it will turn off the port no matter what other wires' value is
- When connecting wire to port that already has wire, than first wire will be connected to the second wire, not the port