Details
Details
- Reviewers
Walid Shouman (walid) - Maniphest Tasks
- T39441: Curve smooth ignores Cyclic
Diff Detail
Diff Detail
Event Timeline
| source/blender/editors/curve/editcurve.c | ||
|---|---|---|
| 2473–2474 |
| |
Comment Actions
- Removed ind_prev and ind_next out of dimensions' loop
- Check cyclic before executing its behavior
| source/blender/editors/curve/editcurve.c | ||
|---|---|---|
| 2504 | we could be a bit cryptic and make it for(bp = &nu->bp[bias], a = bias; a < nu->pntsu - bias; a++, bp++) should you make it cryptic, or leave it very simple like that? | |
Comment Actions
Why not make smoothing into a static function that takes prev & next points, and a factor to smooth by.
Then having 2 different for loops wont do much duplication.
Comment Actions
- Use static functions to smooth upon neighboring points for each of the BezTriple and BPoint curve points
| source/blender/editors/curve/editcurve.c | ||
|---|---|---|
| 2442 | ops, missed to change this one :/ | |
Comment Actions
Committed with some cleanup rB7ff123ce5c08953a31f5728922be9d56c4ed850c
| source/blender/editors/curve/editcurve.c | ||
|---|---|---|
| 2429 | Dont think this is needed - just BLI_assert(factor >= 0.0f && factor <= 1.0f) | |
| 2457 | again, just remove. | |