Browse Source

Don't assert that a similar cable exists in Engine::addCable() since Engine handles it fine. App code should enforce it.

tags/v2.5.0
Andrew Belt 7 months ago
parent
commit
3464eabb4d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/engine/Engine.cpp

+ 1
- 1
src/engine/Engine.cpp View File

@@ -923,7 +923,7 @@ void Engine::addCable_NoLock(Cable* cable) {
// Check that the cable is not already added
assert(cable2 != cable);
// Check that cable isn't similar to another cable
assert(!(cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId && cable2->outputModule == cable->outputModule && cable2->outputId == cable->outputId));
// assert(!(cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId && cable2->outputModule == cable->outputModule && cable2->outputId == cable->outputId));
// Check if input is already connected to a cable
if (cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId)
inputWasConnected = true;


Loading…
Cancel
Save