diff options
author | Jacques Lucke <jacques@blender.org> | 2022-02-25 15:22:42 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-02-25 15:22:42 +0300 |
commit | 6e11cfc56af4e1594972d134e4e0c5d256d1fcce (patch) | |
tree | a020bf157f20008b85a551ce94f3576acc0b4f47 /source/blender/makesdna/DNA_curves_types.h | |
parent | 1a853a9e90e9f1a8a5028bd1ce37785e1b2ce6d5 (diff) |
Curves: add surface object pointer
Ref T95776.
Differential Revision: https://developer.blender.org/D14182
Diffstat (limited to 'source/blender/makesdna/DNA_curves_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_curves_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_curves_types.h b/source/blender/makesdna/DNA_curves_types.h index c45de832e3c..98d2aa4b295 100644 --- a/source/blender/makesdna/DNA_curves_types.h +++ b/source/blender/makesdna/DNA_curves_types.h @@ -115,6 +115,15 @@ typedef struct Curves { short totcol; short _pad2[3]; + /** + * Used as base mesh when curves represent e.g. hair or fur. This surface is used in edit modes. + * When set, the curves will have attributes that indicate a position on this surface. This is + * used for deforming the curves when the surface is deformed dynamically. + * + * This is expected to be a mesh object. + */ + struct Object *surface; + /* Draw Cache. */ void *batch_cache; } Curves; |