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
|
||||
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
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue