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:
authorYimingWu <xp8110@outlook.com>2021-06-09 17:42:55 +0300
committerYimingWu <xp8110@outlook.com>2021-06-09 17:46:08 +0300
commitf546b0800b9121b24b1292f1ec602ed9964d1848 (patch)
treeffeb84136b2197b92512922db0fce455190af5d5 /source/blender/makesdna/DNA_gpencil_types.h
parent92ae3ff84ca90973efcb3372b1102ee2aaf7c14f (diff)
GPencil: Add custom normal entry to bGPDspoint.
Also modified existing utility functions to take care of the new surface normal interpolation and so on. Reviewed By: Antonio Vazquez (antoniov) Differential Revision: https://developer.blender.org/D11543
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index ea3c1ff7275..504a44da34b 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -97,9 +97,10 @@ typedef struct bGPDspoint {
/** Vertex Color RGBA (A=mix factor). */
float vert_color[4];
- /** Runtime data */
- char _pad2[4];
+ /** Generic custom vector for various use cases. */
+ float custom_vector[3];
+ /** Runtime data */
bGPDspoint_Runtime runtime;
} bGPDspoint;