- Adding new repositories now differentiates between "Online" & "Local" where adding a local repository doesn't prompt for a URL. - Support removing repositories and their files (uses confirmation defaulting to "Cancel" to avoid accidents). - Show an error icon next to repositories that have invalid settings, these repositories are now ignored until the settings are corrected, required fields are highlighted red when they're unset & required. - Rename "directory" to "custom_directory" since an automatic path is used when not set - created in the users scripts directory. - Use toggles for custom-directory & remote URL instead of relying on the value to be left an empty string for alternative behavior.
44 lines
840 B
C
44 lines
840 B
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup DNA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "DNA_asset_types.h"
|
|
|
|
/* Struct members on own line. */
|
|
/* clang-format off */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/** \name bUserAssetLibrary Struct
|
|
* \{ */
|
|
|
|
#define _DNA_DEFAULT_bUserAssetLibrary \
|
|
{ \
|
|
.import_method = ASSET_IMPORT_APPEND_REUSE, \
|
|
.flag = ASSET_LIBRARY_RELATIVE_PATH, \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/** \name bUserExtensionRepo Struct
|
|
* \{ */
|
|
|
|
#define _DNA_DEFAULT_bUserExtensionRepo \
|
|
{ \
|
|
.name = {'\0'}, \
|
|
.module = {'\0'}, \
|
|
.custom_dirpath = {'\0'}, \
|
|
.remote_path = {'\0'}, \
|
|
.flag = 0, \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* clang-format on */
|