Skip to content

Commit 93e86db

Browse files
committed
Fix domain warp fractal gain slider not functioning in UI, updated Emscripten
1 parent 8e296ac commit 93e86db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎WebPreviewApp/build.ps1‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
$scriptPath = $PSScriptRoot
2-
$emsdkVer = "3.1.44"
3-
$emsdkPath = Join-Path -Path $PSScriptRoot -ChildPath "emsdk"
2+
$emsdkVer = "3.1.52"
3+
$emsdkPath = Join-Path -Path $PSScriptRoot -ChildPath "emsdk" | Join-Path -ChildPath $emsdkVer
44

55
if (Test-Path -Path $emsdkPath -PathType Container) {
66
Write-Host "Found existing emsdk"
7-
./emsdk/emsdk_env.ps1
7+
& "$emsdkPath\emsdk_env.ps1"
88
} else {
99
Write-Host "Building emsdk"
1010
git clone --branch $emsdkVer "https://github.com/emscripten-core/emsdk.git" $emsdkPath
11-
./emsdk/emsdk.ps1 install $emsdkVer
12-
./emsdk/emsdk.ps1 activate $emsdkVer
11+
& "$emsdkPath\emsdk.ps1" install $emsdkVer
12+
& "$emsdkPath\emsdk.ps1" activate $emsdkVer
1313
}
1414

1515
emcc --version

‎WebPreviewApp/main.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class FastNoiseLitePreviewApp : public ImGui_Application
243243
fnlWarp.SetFractalLacunarity(fnlDomainWarpFractalLacunarity);
244244
texUpdate = true;
245245
}
246-
if (ImGui::DragFloat("Gain", &fnlFractalGain, 0.01f))
246+
if (ImGui::DragFloat("Gain", &fnlDomainWarpFractalGain, 0.01f))
247247
{
248248
fnlWarp.SetFractalGain(fnlDomainWarpFractalGain);
249249
texUpdate = true;

0 commit comments

Comments
 (0)