Skip to content

Commit 012a9dc

Browse files
committed
pcroot: add support for random seed, #BUILD
1 parent 8f9f586 commit 012a9dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace PointCloudConverter
3232
{
3333
public partial class MainWindow : Window
3434
{
35-
static readonly string version = "18.12.2025";
35+
static readonly string version = "19.12.2025";
3636
static readonly string appname = "PointCloud Converter - " + version;
3737
static readonly string rootFolder = AppDomain.CurrentDomain.BaseDirectory;
3838

Writers/PCROOT.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ public void WriteToFiles(string fullpath, int cellX, int cellY, int cellZ, (int
849849
for (int i = 0; i < count; i++) order[i] = i;
850850

851851
int seed = HashKey(key.x, key.y, key.z) ^ count;
852+
if (self.importSettings.seed != -1) seed ^= self.importSettings.seed;
852853
var rnd = new Random(seed);
853854

854855
for (int i = count - 1; i > 0; i--)

0 commit comments

Comments
 (0)