Blender Git Loki
Git Commits -> Revision f2c0bbe
Revision f2c0bbe by Omar Emara (master) February 20, 2021, 16:05 (GMT) |
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 |
Commit Details:
Full Hash: f2c0bbed1ce5270eee1332a02da02c1819bb230c
Parent Commit: 5dced2a
Lines Changed: +270, -10
2 Added Paths:
/doc/python_api/examples/bpy.types.Depsgraph.7.py (+64, -0) (View)
/source/blender/blenkernel/intern/curve_convert.c (+81, -0) (View)
/source/blender/blenkernel/intern/curve_convert.c (+81, -0) (View)
8 Modified Paths:
/source/blender/blenkernel/BKE_curve.h (+12, -0) (Diff)
/source/blender/blenkernel/BKE_displist.h (+7, -0) (Diff)
/source/blender/blenkernel/BKE_object.h (+16, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+15, -9) (Diff)
/source/blender/blenkernel/intern/object.c (+20, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+8, -1) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+46, -0) (Diff)
/source/blender/blenkernel/BKE_displist.h (+7, -0) (Diff)
/source/blender/blenkernel/BKE_object.h (+16, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+15, -9) (Diff)
/source/blender/blenkernel/intern/object.c (+20, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+8, -1) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+46, -0) (Diff)