Skip to content

Commit

Permalink
Merge pull request #52 from ifm/develop
Browse files Browse the repository at this point in the history
bug fixes
  • Loading branch information
cwiede authored Jan 5, 2023
2 parents e549ec0 + 758a51a commit 6c3aa1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nexxT/core/BaseGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,19 @@ def renameNode(self, oldName, newName):
self._nodes[newName] = of
for i, c in enumerate(self._connections):
c = self._connections[i]
oldConn = c
changed = False
if c[0] == oldName:
c = (newName, c[1], c[2], c[3])
changed = True
if c[2] == oldName:
c = (c[0], c[1], newName, c[3])
self._connections[i] = c
changed = True
if changed:
self._connections[i] = c
p = self._connectionProps[oldConn]
del self._connectionProps[oldConn]
self._connectionProps[c] = p
self.nodeRenamed.emit(oldName, newName)
self.dirtyChanged.emit()

Expand Down
4 changes: 4 additions & 0 deletions nexxT/tests/src/CameraGrabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ CameraGrabber::CameraGrabber(BaseFilterEnvironment *env)
{
devices.push_back(cameraDevice.description());
}
if(devices.size() == 0)
{
devices.push_back("dummy");
}
pc->defineProperty("device", devices[0], "the camera device", {{"enum", devices}});
}

Expand Down

0 comments on commit 6c3aa1c

Please sign in to comment.