Skip to content

Commit 8120845

Browse files
authored
Merge pull request #1691 from JuliaRobotics/bug/dispatch_nosolverparams
NoSolverParams does not have attemptGradients
2 parents e49d1c4 + ca115a2 commit 8120845

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Serialization/services/DispatchPackedConversions.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ function reconstFactorData(
5050
certainhypo = packed.certainhypo,
5151
inflation = packed.inflation,
5252
userCache,
53-
_blockRecursion=!getSolverParams(dfg).attemptGradients,
53+
# Block recursion if NoSolverParams or if set to not attempt gradients.
54+
_blockRecursion=
55+
getSolverParams(dfg) isa NoSolverParams ||
56+
!getSolverParams(dfg).attemptGradients,
5457
)
5558
#
5659

0 commit comments

Comments
 (0)