fix file watcher crashing
This commit is contained in:
parent
a9929d5711
commit
5895b54eac
|
@ -20,9 +20,11 @@ Public Class DebugFileWatcher
|
||||||
|
|
||||||
For Each changedFile In _changedFiles
|
For Each changedFile In _changedFiles
|
||||||
Dim relativeFile = changedFile.Remove(0, projectPath.Length + 1)
|
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
|
Next
|
||||||
|
|
||||||
' clear the changed files afterwards
|
' clear the changed files afterwards
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
Roll = Math.PI
|
Roll = Math.PI
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim previousBlendState = Core.GraphicsDevice.BlendState
|
||||||
Core.GraphicsDevice.BlendState = BlendState.NonPremultiplied
|
Core.GraphicsDevice.BlendState = BlendState.NonPremultiplied
|
||||||
|
|
||||||
For Each ModelMesh As ModelMesh In SkydomeModel.Meshes
|
For Each ModelMesh As ModelMesh In SkydomeModel.Meshes
|
||||||
|
@ -124,6 +125,9 @@
|
||||||
|
|
||||||
ModelMesh.Draw()
|
ModelMesh.Draw()
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
Core.GraphicsDevice.BlendState = previousBlendState
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Shared DaycycleTextureData() As Color = Nothing
|
Shared DaycycleTextureData() As Color = Nothing
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue