Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-05-19 20:02:53 +0300
committerHans Goudey <h.goudey@me.com>2021-05-19 20:02:53 +0300
commit192a3f1a05d00f1f10f32861c098b66f78cff3e4 (patch)
tree479224c98f48754e47dd2940cbb460af5a5eed4d /source/blender/blenkernel/intern/curve_eval.cc
parent330fecc9b7f69c11258ea926ce760e51b4f3dd78 (diff)
Cleanup: Use copy constructor for CurveEval
There is no need for a special "copy" method with a copy constructor, which will be necessary to explicitly copy attributes anyway.
Diffstat (limited to 'source/blender/blenkernel/intern/curve_eval.cc')
-rw-r--r--source/blender/blenkernel/intern/curve_eval.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/blenkernel/intern/curve_eval.cc b/source/blender/blenkernel/intern/curve_eval.cc
index 19bbd8178b7..1679f21516a 100644
--- a/source/blender/blenkernel/intern/curve_eval.cc
+++ b/source/blender/blenkernel/intern/curve_eval.cc
@@ -50,17 +50,6 @@ void CurveEval::remove_splines(blender::IndexMask mask)
}
}
-CurveEval *CurveEval::copy()
-{
- CurveEval *new_curve = new CurveEval();
-
- for (SplinePtr &spline : this->splines()) {
- new_curve->add_spline(spline->copy());
- }
-
- return new_curve;
-}
-
void CurveEval::translate(const float3 &translation)
{
for (SplinePtr &spline : this->splines()) {