diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-20 16:37:38 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-20 16:38:24 +0300 |
commit | ffd66ce7d54df3a950394fa157b77f38c09583e2 (patch) | |
tree | 094992e61abca069043fdaad3e6b1883ec636bc4 /source/blender/blenkernel | |
parent | a1bd25af729a35a88531c4b9e340e3c48be23884 (diff) |
Subdiv: Fix function naming
Not sure where displacement came from into there, maybe
file was based on displacement evaluator.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_ccg_mask.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_ccg_mask.c b/source/blender/blenkernel/intern/subdiv_ccg_mask.c index 72ff0cb0ece..e90d5df3774 100644 --- a/source/blender/blenkernel/intern/subdiv_ccg_mask.c +++ b/source/blender/blenkernel/intern/subdiv_ccg_mask.c @@ -126,8 +126,8 @@ static int count_num_ptex_faces(const Mesh *mesh) return num_ptex_faces; } -static void displacement_data_init_mapping(SubdivCCGMask *mask_evaluator, - const Mesh *mesh) +static void mask_data_init_mapping(SubdivCCGMask *mask_evaluator, + const Mesh *mesh) { GridPaintMaskData *data = mask_evaluator->user_data; const MPoly *mpoly = mesh->mpoly; @@ -156,17 +156,16 @@ static void displacement_data_init_mapping(SubdivCCGMask *mask_evaluator, } } -static void displacement_init_data(SubdivCCGMask *mask_evaluator, - const Mesh *mesh) +static void mask_init_data(SubdivCCGMask *mask_evaluator, const Mesh *mesh) { GridPaintMaskData *data = mask_evaluator->user_data; data->mpoly = mesh->mpoly; data->grid_paint_mask = CustomData_get_layer(&mesh->ldata, CD_GRID_PAINT_MASK); - displacement_data_init_mapping(mask_evaluator, mesh); + mask_data_init_mapping(mask_evaluator, mesh); } -static void displacement_init_functions(SubdivCCGMask *mask_evaluator) +static void mask_init_functions(SubdivCCGMask *mask_evaluator) { mask_evaluator->eval_mask = eval_mask; mask_evaluator->free = free_mask_data; @@ -184,7 +183,7 @@ bool BKE_subdiv_ccg_mask_init_from_paint( /* Allocate all required memory. */ mask_evaluator->user_data = MEM_callocN(sizeof(GridPaintMaskData), "mask from grid data"); - displacement_init_data(mask_evaluator, mesh); - displacement_init_functions(mask_evaluator); + mask_init_data(mask_evaluator, mesh); + mask_init_functions(mask_evaluator); return true; } |