Manager: allow setup to finish without Blender #104306

Manually merged
Sybren A. Stüvel merged 34 commits from abelli/flamenco:issue100195 into main 2024-09-09 11:22:42 +02:00
Showing only changes of commit 09b95037a6 - Show all commits

View File

@ -265,11 +265,12 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
logger = logger.With().Interface("config", setupAssistantCfg).Logger() logger = logger.With().Interface("config", setupAssistantCfg).Logger()
isConfigIncomplete := setupAssistantCfg.StorageLocation == "" || isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Path == "" ||
!setupAssistantCfg.BlenderExecutable.IsUsable || setupAssistantCfg.BlenderExecutable.Input == ""
setupAssistantCfg.BlenderExecutable.Path == ""
if isConfigIncomplete && setupAssistantCfg.BlenderExecutable.Source != "default" { if setupAssistantCfg.StorageLocation == "" ||
!setupAssistantCfg.BlenderExecutable.IsUsable ||
isConfigIncomplete && setupAssistantCfg.BlenderExecutable.Source != "default" {
logger.Warn().Msg("setup assistant: configuration is incomplete, unable to accept") logger.Warn().Msg("setup assistant: configuration is incomplete, unable to accept")
return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete") return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete")
} }