Skip to content

Commit 3f3b00e

Browse files
committed
Fixed issue with buffer elements ignoring a custom solver iteration value
1 parent 9947039 commit 3f3b00e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

kk_bullet_constraints_builder.zip

0 Bytes
Binary file not shown.

kk_bullet_constraints_builder/builder_setc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def setConstraintSettings(objs, objsEGrp, emptyObjs, objsID, connectsPair, conne
728728
if CT == -1:
729729
cData = {}; cDatb = []; cIdx = consts[cInc]; cInc += 1
730730
if solvIter == 0: solvIter = max(1, int(props.solverIterations /10)) # If no custom Solver Iterations, an automatic value is generated
731-
setConstParams(cData,cDatb,cDef, loc=loc, ub=0, dc=1, ct='FIXED', so=props.passiveUseBreaking,si=solvIter)
731+
setConstParams(cData,cDatb,cDef, loc=loc, ub=0, dc=1, ct='FIXED', so=bool(solvIter),si=solvIter)
732732
constsData.append([cData, cDatb])
733733

734734
### 1x FIXED; Linear omni-directional + bending breaking threshold

0 commit comments

Comments
 (0)