diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-12 19:12:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-12 19:14:56 +0300 |
commit | abe1a061f8aab5c9357ff92fd6b579a8a9553f0d (patch) | |
tree | 2d213dacbf5ef06c0efdb5b6d90546b28e84c334 /source/blender | |
parent | 651fe243e6dcb31e9838f5816eaa00206309f59c (diff) |
Docs: add doc-string for TransDataContainer
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index 24335b6b6b7..4b43592165b 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -429,6 +429,20 @@ typedef struct TransCustomDataContainer { } TransCustomDataContainer; #define TRANS_CUSTOM_DATA_ELEM_MAX (sizeof(TransCustomDataContainer) / sizeof(TransCustomData)) +/** + * Container for Transform Data + * + * Used to implement multi-object modes, so each object can have it's + * own data array as well as object matrix, local center etc. + * + * Anything that can't be shared between all objects + * and doesn't make sense to store for every vertex (in the #TransDataContainer.data). + * + * \note at some point this could be used to store non object containers + * although this only makes sense if each container has it's own matrices, + * otherwise all elements may as well be stored in one array (#TransDataContainer.data), + * as is already done for curve-objects, f-curves. etc. + */ typedef struct TransDataContainer { /** Transformed data (array). */ TransData *data; |