Fix generation

This commit is contained in:
Stash Dev
2019-05-04 12:18:52 -07:00
committed by StashAppDev
parent b866185179
commit 7a18c54c6e
4 changed files with 5 additions and 3 deletions

View File

@@ -95,6 +95,11 @@ func (s *singleton) Generate(sprites bool, previews bool, markers bool, transcod
for _, scene := range scenes {
wg.Add(delta)
// Clear the tmp directory for each scene
if sprites || previews || markers {
instance.Paths.Generated.EmptyTmpDir()
}
if sprites {
task := GenerateSpriteTask{Scene: scene}
go task.Start(&wg)