Shadow storage variable with builder variable
All checks were successful
/ test (pull_request) Successful in 2m24s
All checks were successful
/ test (pull_request) Successful in 2m24s
This commit is contained in:
parent
4654bf06bf
commit
955220c0bc
1 changed files with 4 additions and 4 deletions
|
@ -422,16 +422,16 @@ impl Assembly {
|
|||
|
||||
// set up the constraint problem
|
||||
let problem = self.elements.with_untracked(|elts| {
|
||||
let mut problem_to_be = ConstraintProblem::new(elts.len());
|
||||
let mut problem = ConstraintProblem::new(elts.len());
|
||||
for (_, elt) in elts {
|
||||
elt.pose(&mut problem_to_be, elts);
|
||||
elt.pose(&mut problem, elts);
|
||||
}
|
||||
self.regulators.with_untracked(|regs| {
|
||||
for (_, reg) in regs {
|
||||
reg.pose(&mut problem_to_be, elts);
|
||||
reg.pose(&mut problem, elts);
|
||||
}
|
||||
});
|
||||
problem_to_be
|
||||
problem
|
||||
});
|
||||
|
||||
/* DEBUG */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue