diff options
author | Omar Emara <mail@OmarEmara.dev> | 2021-02-20 19:05:13 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2021-02-20 19:05:13 +0300 |
commit | f2c0bbed1ce5270eee1332a02da02c1819bb230c (patch) | |
tree | 3bc309ba191cc1a4c81d3daa6e1b57fa987ef6a1 /source/blender/blenkernel/CMakeLists.txt | |
parent | 5dced2a0636a7f3db73be09139cf8abd952612e7 (diff) |
Python: Add to_curve method to the object API
This patch adds a to_curve method to the Object ID. This method is
analogous to the to_mesh method. The method can operate on curve and
text objects. For text objects, the text is converted into a 3D Curve ID
and that curve is returned. For curve objects, if apply_modifiers is
true, the spline deform modifiers will be applied and a Curve ID with
the result will be returned, otherwise a copy of the curve will be
returned.
The goal of this addition is to allow the developer to access the splines
of text objects and to get the result of modifier applications which was
otherwise not possible.
Reviewed By: Brecht
Differential Revision: https://developer.blender.org/D10354
Diffstat (limited to 'source/blender/blenkernel/CMakeLists.txt')
-rw-r--r-- | source/blender/blenkernel/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt index f288bf9aabc..325744f4006 100644 --- a/source/blender/blenkernel/CMakeLists.txt +++ b/source/blender/blenkernel/CMakeLists.txt @@ -107,6 +107,7 @@ set(SRC intern/cryptomatte.cc intern/curve.c intern/curve_bevel.c + intern/curve_convert.c intern/curve_decimate.c intern/curve_deform.c intern/curveprofile.c |