diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-10 16:42:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-13 21:03:06 +0300 |
commit | 15dd2899923093db6c070b4520e0678affe49d09 (patch) | |
tree | 31957f85dc9f4963f9f4d53b7ed7fe906e26422c /source/blender/blenkernel/BKE_modifier.h | |
parent | 09cc318fd679c0b4c3100efbd43985572efe5f49 (diff) |
Mesh: don't compute CD_ORCO layer when there are no deforming modifiers
This saves memory and evaluation time for simple static meshes with e.g. a
subdivision surface modifier. If no CD_ORCO layer exists then we assume the
actual vertex coordinates are equal to the original undeformed coordinates.
Diffstat (limited to 'source/blender/blenkernel/BKE_modifier.h')
-rw-r--r-- | source/blender/blenkernel/BKE_modifier.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h index 0909e73777a..30a366805b6 100644 --- a/source/blender/blenkernel/BKE_modifier.h +++ b/source/blender/blenkernel/BKE_modifier.h @@ -391,15 +391,15 @@ typedef struct CDMaskLink { struct CustomData_MeshMasks mask; } CDMaskLink; -/* Calculates and returns a linked list of CustomData_MeshMasks indicating the - * data required by each modifier in the stack pointed to by md for correct - * evaluation, assuming the data indicated by dataMask is required at the - * end of the stack. +/* Calculates and returns a linked list of CustomData_MeshMasks and modified + * final datamask, indicating the data required by each modifier in the stack + * pointed to by md for correct evaluation, assuming the data indicated by + * final_datamask is required at the end of the stack. */ struct CDMaskLink *modifiers_calcDataMasks(struct Scene *scene, struct Object *ob, struct ModifierData *md, - const struct CustomData_MeshMasks *dataMask, + struct CustomData_MeshMasks *final_datamask, int required_mode, ModifierData *previewmd, const struct CustomData_MeshMasks *previewmask); |