diff --git a/P3D/Debug/DebugFileWatcher.vb b/P3D/Debug/DebugFileWatcher.vb index 21cbe4375..5d951020f 100644 --- a/P3D/Debug/DebugFileWatcher.vb +++ b/P3D/Debug/DebugFileWatcher.vb @@ -20,9 +20,11 @@ Public Class DebugFileWatcher For Each changedFile In _changedFiles Dim relativeFile = changedFile.Remove(0, projectPath.Length + 1) - Dim targetFile = Path.Combine(targetPath, relativeFile) - File.Copy(changedFile, targetFile, True) + If File.Exists(relativeFile) Then + Dim targetFile = Path.Combine(targetPath, relativeFile) + File.Copy(changedFile, targetFile, True) + End If Next ' clear the changed files afterwards diff --git a/P3D/World/SkyDome.vb b/P3D/World/SkyDome.vb index 300108275..644e7b179 100644 --- a/P3D/World/SkyDome.vb +++ b/P3D/World/SkyDome.vb @@ -85,6 +85,7 @@ Roll = Math.PI End If + Dim previousBlendState = Core.GraphicsDevice.BlendState Core.GraphicsDevice.BlendState = BlendState.NonPremultiplied For Each ModelMesh As ModelMesh In SkydomeModel.Meshes @@ -124,6 +125,9 @@ ModelMesh.Draw() Next + + Core.GraphicsDevice.BlendState = previousBlendState + End Sub Shared DaycycleTextureData() As Color = Nothing diff --git a/lib/build/Pokemon3D.exe b/lib/build/Pokemon3D.exe index 39758aeb6..0fdf68000 100644 Binary files a/lib/build/Pokemon3D.exe and b/lib/build/Pokemon3D.exe differ