[Bf-blender-cvs] [1b966b4f8e2] temp-T97352-3d-texturing-seam-bleeding-b2: Fix SVG_DEBUG.
Jeroen Bakker
noreply at git.blender.org
Tue Jul 12 11:00:39 CEST 2022
Commit: 1b966b4f8e2b777bd02c08e5be8e10d17ea95ae1
Author: Jeroen Bakker
Date: Tue Jul 12 11:01:06 2022 +0200
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB1b966b4f8e2b777bd02c08e5be8e10d17ea95ae1
Fix SVG_DEBUG.
===================================================================
M source/blender/blenkernel/intern/uv_islands.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/uv_islands.cc b/source/blender/blenkernel/intern/uv_islands.cc
index 583ff1d9ae8..a29156fbf69 100644
--- a/source/blender/blenkernel/intern/uv_islands.cc
+++ b/source/blender/blenkernel/intern/uv_islands.cc
@@ -886,18 +886,30 @@ void svg(std::ostream &ss, const UVIsland &island, int step)
ss << " </g>\n";
/* Mark Border corners that can be extended. */
- for (const UVBorder &border : island.borders) {
- ss << " <g fill=\"green\">\n";
- for (const UVBorderEdge &edge : border.edges) {
- if (edge.flags.extendable) {
- const UVVertex *uv_vertex = edge.get_uv_vertex(0);
- ss << "<circle cx=\"" << svg_x(*uv_vertex) << "\"";
- ss << " cy=\"" << svg_y(*uv_vertex) << "\"";
+ ss << " <g fill=\"green\">\n";
+ for (const VectorList<UVVertex>::UsedVector &uv_vertices : island.uv_vertices) {
+ for (const UVVertex &uv_vertex : uv_vertices) {
+ if (uv_vertex.flags.is_border && !uv_vertex.flags.is_extended) {
+ ss << "<circle cx=\"" << svg_x(uv_vertex) << "\"";
+ ss << " cy=\"" << svg_y(uv_vertex) << "\"";
ss << " r=\"3\" />\n";
}
}
- ss << " </g>\n";
}
+ ss << " </g>\n";
+
+ /* Mark Border corners that can be extended. */
+ ss << " <g fill=\"orange\">\n";
+ for (const VectorList<UVVertex>::UsedVector &uv_vertices : island.uv_vertices) {
+ for (const UVVertex &uv_vertex : uv_vertices) {
+ if (uv_vertex.flags.is_border && uv_vertex.flags.is_extended) {
+ ss << "<circle cx=\"" << svg_x(uv_vertex) << "\"";
+ ss << " cy=\"" << svg_y(uv_vertex) << "\"";
+ ss << " r=\"3\" />\n";
+ }
+ }
+ }
+ ss << " </g>\n";
ss << " </g>\n";
More information about the Bf-blender-cvs
mailing list