[Bf-blender-cvs] [a14a1520240] master: PBVH: Fix crash with incorrect initialized span lengths.
Jeroen Bakker
noreply at git.blender.org
Tue Dec 13 10:19:56 CET 2022
Commit: a14a15202407b14b73188e1f0997bcad9c670ab5
Author: Jeroen Bakker
Date: Tue Dec 13 10:15:32 2022 +0100
Branches: master
https://developer.blender.org/rBa14a15202407b14b73188e1f0997bcad9c670ab5
PBVH: Fix crash with incorrect initialized span lengths.
PBVH doesn't store the loop size. We need to get that from the mesh.
We should perhaps also store the mloop len insize the PBVH.
===================================================================
M source/blender/blenkernel/intern/pbvh_pixels.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/pbvh_pixels.cc b/source/blender/blenkernel/intern/pbvh_pixels.cc
index bb7e912fd94..e21103c9f19 100644
--- a/source/blender/blenkernel/intern/pbvh_pixels.cc
+++ b/source/blender/blenkernel/intern/pbvh_pixels.cc
@@ -362,9 +362,9 @@ static void update_pixels(PBVH *pbvh, Mesh *mesh, Image *image, ImageUser *image
}
uv_islands::MeshData mesh_data({pbvh->looptri, pbvh->totprim},
- {pbvh->mloop, pbvh->totprim},
+ {pbvh->mloop, mesh->totloop},
pbvh->totvert,
- {ldata_uv, pbvh->totprim});
+ {ldata_uv, mesh->totloop});
uv_islands::UVIslands islands(mesh_data);
uv_islands::UVIslandsMask uv_masks;
More information about the Bf-blender-cvs
mailing list