[Bf-blender-cvs] [3aca3d8ad31] soc-2021-adaptive-cloth: adaptive_cloth: FilenameGen: increase number of leading zeros

ishbosamiya noreply at git.blender.org
Sun Aug 22 17:23:36 CEST 2021


Commit: 3aca3d8ad311d079ff3aecaf35248cdc36cf43ce
Author: ishbosamiya
Date:   Mon Aug 9 16:36:07 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB3aca3d8ad311d079ff3aecaf35248cdc36cf43ce

adaptive_cloth: FilenameGen: increase number of leading zeros

Now that many more operations take place during remeshing, it exceeds
1000, so need to update the number of leading zeros.

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

M	source/blender/blenkernel/BKE_cloth_remesh.hh

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

diff --git a/source/blender/blenkernel/BKE_cloth_remesh.hh b/source/blender/blenkernel/BKE_cloth_remesh.hh
index feec93f7381..062b3aa0209 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -208,7 +208,7 @@ class FilenameGen {
   std::string get_curr()
   {
     char number_str_c[16];
-    BLI_snprintf(number_str_c, 16, "%03lu", this->number);
+    BLI_snprintf(number_str_c, 16, "%05lu", this->number);
     std::string number_str(number_str_c);
     return this->prefix + "_" + number_str + this->suffix;
   }
@@ -216,7 +216,7 @@ class FilenameGen {
   std::string get_curr(const std::string pre_suffix)
   {
     char number_str_c[16];
-    BLI_snprintf(number_str_c, 16, "%03lu", this->number);
+    BLI_snprintf(number_str_c, 16, "%05lu", this->number);
     std::string number_str(number_str_c);
     return this->prefix + "_" + number_str + "_" + pre_suffix + this->suffix;
   }



More information about the Bf-blender-cvs mailing list