mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 11:25:04 +01:00
fix adding constraints with user input
This commit is contained in:
parent
2381e1618d
commit
9d287065b5
1 changed files with 3 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ function visitParams(constraint, skipAux, callback) {
|
|||
if (constraint.visitParams) {
|
||||
constraint.visitParams(callback);
|
||||
} else {
|
||||
constraint.getSolveData().forEach(([, sParams]) => sParams.forEach(callback));
|
||||
constraint.getSolveData(FAKE_RESOLVER).forEach(([, sParams]) => sParams.forEach(callback));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -288,4 +288,6 @@ const GOT_NOTHING = {
|
|||
has: () => false
|
||||
};
|
||||
|
||||
const FAKE_RESOLVER = () => 0;
|
||||
|
||||
let COUNTER = 0;
|
||||
Loading…
Reference in a new issue