Skip to content

Commit 81dd2af

Browse files
committed
complete not completed models
1 parent a6b4dee commit 81dd2af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/Render.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ function render(model, sol,
276276
cache = true,
277277
kwargs...
278278
)
279+
ModelingToolkit.iscomplete(model) || (model = complete(model))
279280
if sol isa ODEProblem
280281
sol = FakeSol(model, sol)
281282
return render(model, sol, 0; x, y, z, lookat, up, show_axis, kwargs...)[1]
@@ -339,6 +340,7 @@ function render(model, sol, time::Real;
339340
kwargs...,
340341
)
341342

343+
ModelingToolkit.iscomplete(model) || (model = complete(model))
342344
slider = !(sol isa Union{ODEProblem, FakeSol})
343345

344346
if sol isa ODEProblem

0 commit comments

Comments
 (0)