Manager: allow setup to finish without Blender #104306
@ -265,11 +265,12 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
|
||||
|
||||
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
||||
|
||||
isConfigIncomplete := setupAssistantCfg.StorageLocation == "" ||
|
||||
!setupAssistantCfg.BlenderExecutable.IsUsable ||
|
||||
setupAssistantCfg.BlenderExecutable.Path == ""
|
||||
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Path == "" ||
|
||||
setupAssistantCfg.BlenderExecutable.Input == ""
|
||||
|
||||
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")
|
||||
return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user