Manager: allow setup to finish without Blender #104306
@ -274,14 +274,15 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
|
||||
|
||||
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
||||
|
||||
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Cause == nil ||
|
||||
setupAssistantCfg.BlenderExecutable.Input == nil ||
|
||||
setupAssistantCfg.BlenderExecutable.IsUsable == nil ||
|
||||
setupAssistantCfg.BlenderExecutable.Path == nil
|
||||
isConfigInvalid := setupAssistantCfg.StorageLocation == "" ||
|
||||
setupAssistantCfg.BlenderExecutable.IsUsable == nil
|
||||
|
||||
if setupAssistantCfg.BlenderExecutable.Source != "default" && isConfigIncomplete {
|
||||
logger.Warn().Msg("setup assistant: configuration is incomplete, unable to accept")
|
||||
return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete")
|
||||
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Path == nil ||
|
||||
setupAssistantCfg.BlenderExecutable.Input == nil
|
||||
|
||||
if isConfigInvalid || setupAssistantCfg.BlenderExecutable.Source != "default" && isConfigIncomplete {
|
||||
logger.Warn().Msg("setup assistant: configuration is invalid or incomplete, unable to accept")
|
||||
return sendAPIError(e, http.StatusBadRequest, "configuration is invalid or incomplete")
|
||||
}
|
||||
|
||||
conf := f.config.Get()
|
||||
|
Loading…
Reference in New Issue
Block a user