[Bf-blender-cvs] [4f6f445120b] master: Cleanup: Make spline settings copy function public

Hans Goudey noreply at git.blender.org
Mon Aug 2 20:21:29 CEST 2021


Commit: 4f6f445120bb534a36e2ee5ddd89be6793a4c35d
Author: Hans Goudey
Date:   Mon Aug 2 14:21:19 2021 -0400
Branches: master
https://developer.blender.org/rB4f6f445120bb534a36e2ee5ddd89be6793a4c35d

Cleanup: Make spline settings copy function public

It will be useful in the spline type conversion node. Theoretically it
could become protected again if that conversion moves out of a node,
which might be a nice improvement after an initial version.

===================================================================

M	source/blender/blenkernel/BKE_spline.hh

===================================================================

diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh
index 53485ecbd6b..fc145f1ddf1 100644
--- a/source/blender/blenkernel/BKE_spline.hh
+++ b/source/blender/blenkernel/BKE_spline.hh
@@ -109,6 +109,7 @@ class Spline {
   SplinePtr copy() const;
   SplinePtr copy_only_settings() const;
   SplinePtr copy_without_attributes() const;
+  static void copy_base_settings(const Spline &src, Spline &dst);
 
   Spline::Type type() const;
 
@@ -209,8 +210,6 @@ class Spline {
   virtual void correct_end_tangents() const = 0;
   virtual void copy_settings(Spline &dst) const = 0;
   virtual void copy_data(Spline &dst) const = 0;
-
-  static void copy_base_settings(const Spline &src, Spline &dst);
 };
 
 /**



More information about the Bf-blender-cvs mailing list