mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix generation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user