diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 14:49:14 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 17:18:12 +0300 |
commit | 0796807720882731cdb70be144aa182e9b0b9ee5 (patch) | |
tree | 5063394eb04b828e5d7f18db3baa5e5753dea2a0 /source/blender/blenkernel/intern/pointcloud.c | |
parent | 13391038a5ce38835e1a7e9aa727f9c78f2e8dcd (diff) |
CleanUp: Introduce `eMeshBatchDirtyMode` enum
It used to be an `int mode`.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcloud.c')
-rw-r--r-- | source/blender/blenkernel/intern/pointcloud.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/pointcloud.c b/source/blender/blenkernel/intern/pointcloud.c index 02f318445ac..26f192d8625 100644 --- a/source/blender/blenkernel/intern/pointcloud.c +++ b/source/blender/blenkernel/intern/pointcloud.c @@ -39,10 +39,10 @@ #include "BKE_lib_query.h" #include "BKE_lib_remap.h" #include "BKE_main.h" +#include "BKE_mesh_types.h" #include "BKE_modifier.h" #include "BKE_object.h" #include "BKE_pointcloud.h" - #include "BLT_translation.h" #include "DEG_depsgraph_query.h" @@ -392,10 +392,11 @@ void BKE_pointcloud_data_update(struct Depsgraph *depsgraph, struct Scene *scene } /* Draw Cache */ -void (*BKE_pointcloud_batch_cache_dirty_tag_cb)(PointCloud *pointcloud, int mode) = NULL; +void (*BKE_pointcloud_batch_cache_dirty_tag_cb)(PointCloud *pointcloud, + eMeshBatchDirtyMode mode) = NULL; void (*BKE_pointcloud_batch_cache_free_cb)(PointCloud *pointcloud) = NULL; -void BKE_pointcloud_batch_cache_dirty_tag(PointCloud *pointcloud, int mode) +void BKE_pointcloud_batch_cache_dirty_tag(PointCloud *pointcloud, eMeshBatchDirtyMode mode) { if (pointcloud->batch_cache) { BKE_pointcloud_batch_cache_dirty_tag_cb(pointcloud, mode); |