Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-02-25 15:22:42 +0300
committerJacques Lucke <jacques@blender.org>2022-02-25 15:22:42 +0300
commit6e11cfc56af4e1594972d134e4e0c5d256d1fcce (patch)
treea020bf157f20008b85a551ce94f3576acc0b4f47 /source/blender/makesdna/DNA_curves_types.h
parent1a853a9e90e9f1a8a5028bd1ce37785e1b2ce6d5 (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.h9
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;