Curves: initial surface collision for curves sculpt mode #104469

Merged
Jacques Lucke merged 29 commits from JacquesLucke/blender:temp-curves-surface-collision into main 2023-02-11 13:46:39 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit f3bf7b4cd1 - Show all commits

View File

@ -348,7 +348,7 @@ void ConstraintSolver::solve_curve_constraints(CurvesGeometry &curves,
switch (params_.solver_type) {
/* The sequential solver only moves the 2nd point of each segment. */
case SolverType::Sequential:
return (int)points.size();
return params_.use_root_constraints ? 1 : 0;
/* The PBD solver moves both points, except for the pinned root. */
case SolverType::PositionBasedDynamics:
return params_.use_root_constraints ? 1 : 0;