diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-01 20:06:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-01 20:06:29 +0300 |
commit | 444d57d440459304a248ba75e1936b69be4d09dd (patch) | |
tree | a46df9fb2ac5e4a428f98202c50181f3958716cc /source/blender/blenkernel/BKE_curves.hh | |
parent | 89bf5d8ba98f4236f97777d14d3a6029f0471e42 (diff) |
Geometry Nodes: Port most curve primitives to new data-block
Create `Curves` directly, instead of using the conversion from
`CurveEval`. This means that the `tilt` and `radius` attributes
don't need to be allocated. The old behavior is kept by using the
right defaults in the conversion to `CurveEval` later on.
The Bezier segment primitive isn't ported yet, because functions
to provide easy access to built-in attributes used for Bezier curves
haven't been added yet.
Differential Revision: https://developer.blender.org/D14212
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_curves.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index 6fa7de49eb0..f3d9090d16b 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -158,4 +158,9 @@ class CurvesGeometry : public ::CurvesGeometry { Curves *curves_new_nomain(int point_size, int curves_size); +/** + * Create a new curves data-block containing a single curve with the given length and type. + */ +Curves *curves_new_nomain_single(int point_size, CurveType type); + } // namespace blender::bke |