fix file watcher crashing

This commit is contained in:
nilllzz 2018-02-26 00:24:35 +01:00
parent a9929d5711
commit 5895b54eac
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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

Binary file not shown.