[Bf-blender-cvs] [085b3afb1ec] temp-T97352-3d-texturing-seam-bleeding-b2: Formatting.
Jeroen Bakker
noreply at git.blender.org
Wed Jul 6 14:02:44 CEST 2022
Commit: 085b3afb1eca33be8add810e7ebc966ac938999b
Author: Jeroen Bakker
Date: Wed Jul 6 14:02:39 2022 +0200
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB085b3afb1eca33be8add810e7ebc966ac938999b
Formatting.
===================================================================
M source/blender/blenkernel/BKE_uv_islands.hh
===================================================================
diff --git a/source/blender/blenkernel/BKE_uv_islands.hh b/source/blender/blenkernel/BKE_uv_islands.hh
index 295f5f25a04..2cc1bdbeb23 100644
--- a/source/blender/blenkernel/BKE_uv_islands.hh
+++ b/source/blender/blenkernel/BKE_uv_islands.hh
@@ -648,9 +648,10 @@ struct UVIsland {
UVIsland()
{
- uv_vertices.reserve(100000);
- uv_edges.reserve(100000);
- uv_primitives.reserve(100000);
+ // TODO: Base on actual island primitives. or replace pointers with indices.
+ uv_vertices.reserve(1000000);
+ uv_edges.reserve(1000000);
+ uv_primitives.reserve(1000000);
}
UVPrimitive *add_primitive(MeshPrimitive &primitive)
@@ -699,14 +700,16 @@ struct UVIsland {
return result;
}
- UVEdge *lookup (const UVEdge&edge) {
- UVVertex * found_vertex = lookup(*edge.vertices[0]);
+ UVEdge *lookup(const UVEdge &edge)
+ {
+ UVVertex *found_vertex = lookup(*edge.vertices[0]);
if (found_vertex == nullptr) {
return nullptr;
}
- for (UVEdge*e: found_vertex->uv_edges) {
- UVVertex*other_vertex = e->get_other_uv_vertex(found_vertex->vertex);
- if (other_vertex->vertex == edge.vertices[1]->vertex && other_vertex->uv == edge.vertices[1]->uv) {
+ for (UVEdge *e : found_vertex->uv_edges) {
+ UVVertex *other_vertex = e->get_other_uv_vertex(found_vertex->vertex);
+ if (other_vertex->vertex == edge.vertices[1]->vertex &&
+ other_vertex->uv == edge.vertices[1]->uv) {
return e;
}
}
More information about the Bf-blender-cvs
mailing list