Manager: allow setup to finish without Blender #104306
@ -265,9 +265,11 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
|
|||||||
|
|
||||||
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
||||||
|
|
||||||
if setupAssistantCfg.StorageLocation == "" ||
|
isConfigIncomplete := setupAssistantCfg.StorageLocation == "" ||
|
||||||
!setupAssistantCfg.BlenderExecutable.IsUsable ||
|
!setupAssistantCfg.BlenderExecutable.IsUsable ||
|
||||||
setupAssistantCfg.BlenderExecutable.Path == "" {
|
setupAssistantCfg.BlenderExecutable.Path == ""
|
||||||
|
|
||||||
|
if 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")
|
||||||
}
|
}
|
||||||
@ -277,7 +279,7 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
|
|||||||
|
|
||||||
var executable string
|
var executable string
|
||||||
switch setupAssistantCfg.BlenderExecutable.Source {
|
switch setupAssistantCfg.BlenderExecutable.Source {
|
||||||
case api.BlenderPathSourceFileAssociation:
|
case api.BlenderPathSourceFileAssociation, api.BlenderPathSourceDefault:
|
||||||
// The Worker will try to use the file association when the command is set
|
// The Worker will try to use the file association when the command is set
|
||||||
// to the string "blender".
|
// to the string "blender".
|
||||||
executable = "blender"
|
executable = "blender"
|
||||||
|
@ -355,11 +355,11 @@ export default {
|
|||||||
},
|
},
|
||||||
blenderFromDefaultSource() {
|
blenderFromDefaultSource() {
|
||||||
return {
|
return {
|
||||||
input: 'blender',
|
input: '',
|
||||||
path: 'blender',
|
path: '',
|
||||||
source: 'default',
|
source: 'default',
|
||||||
is_usable: true,
|
is_usable: true,
|
||||||
cause: 'blender',
|
cause: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
setupConfirmIsClickable() {
|
setupConfirmIsClickable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user