[Bf-blender-cvs] [5a83ff379fa] temp-T97352-3d-texturing-seam-bleeding-b2: Increase seam-fix default value to 8.

Jeroen Bakker noreply at git.blender.org
Mon Sep 26 13:36:27 CEST 2022


Commit: 5a83ff379fa38bc9e4ef5504fe730e8f556bdafb
Author: Jeroen Bakker
Date:   Mon Sep 26 13:36:05 2022 +0200
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB5a83ff379fa38bc9e4ef5504fe730e8f556bdafb

Increase seam-fix default value to 8.

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

M	source/blender/blenloader/intern/versioning_300.cc
M	source/blender/makesdna/DNA_image_defaults.h
M	source/blender/makesrna/intern/rna_image.c

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

diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc
index e401fd58afb..b0fb8066530 100644
--- a/source/blender/blenloader/intern/versioning_300.cc
+++ b/source/blender/blenloader/intern/versioning_300.cc
@@ -3502,7 +3502,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
     /* UVSeam fixing distance. */
     if (!DNA_struct_elem_find(fd->filesdna, "Image", "short", "seamfix_iter")) {
       LISTBASE_FOREACH (Image *, image, &bmain->images) {
-        image->seamfix_iter = 2;
+        image->seamfix_iter = 8;
       }
     }
   }
diff --git a/source/blender/makesdna/DNA_image_defaults.h b/source/blender/makesdna/DNA_image_defaults.h
index 83a9c249d5c..a68a1751d58 100644
--- a/source/blender/makesdna/DNA_image_defaults.h
+++ b/source/blender/makesdna/DNA_image_defaults.h
@@ -24,7 +24,7 @@
     .gpuframenr = INT_MAX, \
     .gpu_pass = SHRT_MAX, \
     .gpu_layer = SHRT_MAX, \
-    .seamfix_iter = 2, \
+    .seamfix_iter = 8, \
   }
 
 /** \} */
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index ecdbc08e295..1532a4c9554 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -1374,11 +1374,11 @@ static void rna_def_image(BlenderRNA *brna)
   RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_gpu_texture_update");
 
   prop = RNA_def_property(srna, "seamfix_iter", PROP_INT, PROP_NONE);
-  RNA_def_property_ui_text(prop,
-                           "Seam-fix",
-                           "Number of iterations to perform when extracting additional pixels "
-                           "during UV seam fixing. Each iteration will dilate the previous mask. "
-                           "Resolution of the mask is 256x256");
+  RNA_def_property_ui_text(
+      prop,
+      "Seam-fix",
+      "Number of dilate iterations when extracting masks for UV Islands. Higher "
+      "number would improve seam-fixes for mipmaps, but decreases performance");
   RNA_def_property_ui_range(prop, 1, 100, 1, 1);
 
   /* multiview */



More information about the Bf-blender-cvs mailing list