[Bf-blender-cvs] [a323ada7010] master: Fix wrong cast from uint to int

Germano Cavalcante noreply at git.blender.org
Fri Apr 29 15:20:17 CEST 2022


Commit: a323ada7010c95c9b8f9a5babb2886115ecc137c
Author: Germano Cavalcante
Date:   Fri Apr 29 10:19:41 2022 -0300
Branches: master
https://developer.blender.org/rBa323ada7010c95c9b8f9a5babb2886115ecc137c

Fix wrong cast from uint to int

Error in rB3d877c8a0d06

===================================================================

M	source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc

===================================================================

diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc
index c7d36098140..a0d82d95a4a 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc
@@ -222,7 +222,7 @@ static void extract_vert_idx_loose_geom_subdiv(const DRWSubdivCache *subdiv_cach
 
   GPUVertBuf *vbo = static_cast<GPUVertBuf *>(buffer);
   int32_t *vert_idx_data = (int32_t *)GPU_vertbuf_get_data(vbo);
-  int offset = subdiv_cache->num_subdiv_loops;
+  uint offset = subdiv_cache->num_subdiv_loops;
 
   blender::Span<DRWSubdivLooseEdge> loose_edges = draw_subdiv_cache_get_loose_edges(subdiv_cache);



More information about the Bf-blender-cvs mailing list