Skip to content

Commit 798e6e7

Browse files
committed
Fix inside flow variable thingy
1 parent 0f0fcf6 commit 798e6e7

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/systems/connectors.jl

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,13 @@ function generate_connection_set!(connectionsets, sys::AbstractSystem, namespace
251251
end
252252
end
253253

254-
if namespace !== nothing
255-
# Except for the top level, all connectors are eventually inside
256-
# connectors.
257-
T = ConnectionElement
258-
for s in subsys
259-
isconnector(s) || continue
260-
for v in states(s)
261-
Flow === get_connection_type(v) || continue
262-
push!(connectionsets, ConnectionSet([T(LazyNamespace(namespace, s), v, false)]))
263-
end
254+
# all connectors are eventually inside connectors.
255+
T = ConnectionElement
256+
for s in subsys
257+
isconnector(s) || continue
258+
for v in states(s)
259+
Flow === get_connection_type(v) || continue
260+
push!(connectionsets, ConnectionSet([T(LazyNamespace(namespace, s), v, false)]))
264261
end
265262
end
266263

0 commit comments

Comments
 (0)