diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-11-01 22:15:48 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-11-01 22:15:48 +0300 |
commit | adc007d4e788643f825397feec076912a3fe2180 (patch) | |
tree | 636cf1644e1f6d5754efd06a6e125c0aee946575 | |
parent | c6232390d389f831eb02c8f2277a419406361cb3 (diff) |
sculpt-dev: Rename BLI_arc_spline.hh to BLI_even_spline.hhsculpt-dev
Contracting "arc length parameterized" to "arc" is ambigous
(could mean a circle spline). Instead use "even", short for
"evenly spaced."
-rw-r--r-- | source/blender/blenlib/BLI_even_spline.hh (renamed from source/blender/blenlib/BLI_arc_spline.hh) | 5 | ||||
-rw-r--r-- | source/blender/blenlib/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.cc | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/blenlib/BLI_arc_spline.hh b/source/blender/blenlib/BLI_even_spline.hh index 00cdc5be8e1..4b80df0202c 100644 --- a/source/blender/blenlib/BLI_arc_spline.hh +++ b/source/blender/blenlib/BLI_even_spline.hh @@ -613,11 +613,6 @@ template<typename Float, int axes = 2> class BezierSpline { Vector dva = lastdv; Vector a = lastp; - // Vector dva = derivative(s); - // Vector dvb = derivative(s + ds); - // Vector a = evaluate(s); - // Vector b = evaluate(s + ds); - Vector vec1 = a - p; Vector vec2 = b - p; diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index 25776cd69a2..671687e756b 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -313,7 +313,7 @@ set(SRC BLI_sort.h BLI_sort.hh BLI_sort_utils.h - BLI_arc_spline.hh + BLI_even_spline.hh BLI_span.hh BLI_stack.h BLI_stack.hh diff --git a/source/blender/editors/sculpt_paint/paint_stroke.cc b/source/blender/editors/sculpt_paint/paint_stroke.cc index 388140903ce..31a8443d3dd 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.cc +++ b/source/blender/editors/sculpt_paint/paint_stroke.cc @@ -7,7 +7,7 @@ #include "MEM_guardedalloc.h" -#include "BLI_arc_spline.hh" +#include "BLI_even_spline.hh" #include "BLI_listbase.h" #include "BLI_math.h" #include "BLI_rand.h" @@ -58,7 +58,7 @@ using blender::float3; static void paint_stroke_add_sample( const Paint *paint, PaintStroke *stroke, float x, float y, float pressure); -//#define DRAW_DEBUG_VIS +#define DRAW_DEBUG_VIS static int paint_stroke_max_points(const Paint *paint, PaintStroke *stroke) { |