GUI: prevent connection to self
This commit is contained in:
parent
0fd0206cc3
commit
5a48c85c14
|
@ -354,7 +354,7 @@ void FurnaceGUI::drawMixer() {
|
||||||
if (portDragActive) {
|
if (portDragActive) {
|
||||||
if (ImGui::IsMouseReleased(ImGuiMouseButton_Left)) {
|
if (ImGui::IsMouseReleased(ImGuiMouseButton_Left)) {
|
||||||
portDragActive=false;
|
portDragActive=false;
|
||||||
if (hoveredPortSet!=0x1fff && hoveredSubPort>=0) {
|
if (hoveredPortSet!=0x1fff && hoveredSubPort>=0 && selectedPortSet!=hoveredPortSet) {
|
||||||
unsigned int src=(selectedPortSet<<4)|selectedSubPort;
|
unsigned int src=(selectedPortSet<<4)|selectedSubPort;
|
||||||
unsigned int dest=(hoveredPortSet<<4)|hoveredSubPort;
|
unsigned int dest=(hoveredPortSet<<4)|hoveredSubPort;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue