From 176d7bcc2eb47b9820861037f90a7fb26de8c9a0 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sun, 5 Jun 2022 12:04:42 +0200 Subject: Cleanup: Move remaining mesh draw code to C++ After this commit, all mesh data extraction and drawing code is in C++, including headers, making it possible to use improved types for future performance improvements and simplifications. The only non-trivial changes are in `draw_cache_impl_mesh.cc`, where use of certain features and macros in C necessitated larger changes. Differential Revision: https://developer.blender.org/D15088 --- source/blender/draw/intern/draw_cache_impl_curves.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/draw/intern/draw_cache_impl_curves.cc') diff --git a/source/blender/draw/intern/draw_cache_impl_curves.cc b/source/blender/draw/intern/draw_cache_impl_curves.cc index 68f210105b0..22b843650ca 100644 --- a/source/blender/draw/intern/draw_cache_impl_curves.cc +++ b/source/blender/draw/intern/draw_cache_impl_curves.cc @@ -512,7 +512,7 @@ static bool curves_ensure_attributes(const Curves &curves, ListBase gpu_attrs = GPU_material_attributes(gpu_material); LISTBASE_FOREACH (GPUMaterialAttribute *, gpu_attr, &gpu_attrs) { const char *name = gpu_attr->name; - int type = gpu_attr->type; + eCustomDataType type = static_cast(gpu_attr->type); int layer = -1; eAttrDomain domain; -- cgit v1.2.3