28 return sort_data->
inverted ? -val : val;
133static int compare_name(
void *user_data,
const void *a1,
const void *a2)
147static int compare_date(
void *user_data,
const void *a1,
const void *a2)
171static int compare_size(
void *user_data,
const void *a1,
const void *a2)
183 size1 = entry1->
st.st_size;
184 size2 = entry2->
st.st_size;
227 const char *sufix1, *sufix2;
229 if (!(sufix1 = strstr(entry1->
relpath,
".blend.gz"))) {
230 sufix1 = strrchr(entry1->
relpath,
'.');
232 if (!(sufix2 = strstr(entry2->
relpath,
".blend.gz"))) {
233 sufix2 = strrchr(entry2->
relpath,
'.');
259 if (asset1 && !asset2) {
262 if (!asset1 && asset2) {
265 if (!asset1 && !asset2) {
284 if (catalog1 && !catalog2) {
287 else if (!catalog1 && catalog2) {
290 else if (catalog1 && catalog2) {
309 int (*sort_cb)(
void *,
const void *,
const void *) =
nullptr;
311 switch (filelist->
sort) {
346 if ((filelist->
sort !=
sort) || (was_invert_sort != invert_sort)) {
Main runtime representation of an asset.
#define FILENAME_IS_CURRENT(_n)
#define FILENAME_IS_PARENT(_n)
void sort(btMatrix3x3 &U, btVector3 &sigma, btMatrix3x3 &V, int t)
Helper function of 3X3 SVD for sorting singular values.
const char * c_str() const
AssetCatalog * find_catalog(CatalogID catalog_id) const
AssetCatalogService & catalog_service() const
StringRefNull name() const
AssetLibrary & owner_asset_library() const
AssetMetaData & get_metadata() const
constexpr const char * c_str() const
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
int char char int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
unsigned __int64 uint64_t
static int compare_asset_catalog(void *user_data, const void *a1, const void *a2)
void filelist_tag_needs_filtering(FileList *filelist)
int char char int int int BLI_strcasecmp_natural(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
@ FILE_SORT_ASSET_CATALOG
static int compare_apply_inverted(int val, const FileSortData *sort_data)
void filelist_setsorting(FileList *filelist, short sort, bool invert_sort)
static int compare_name(void *user_data, const void *a1, const void *a2)
static int compare_date(void *user_data, const void *a1, const void *a2)
void void void BLI_listbase_sort_r(ListBase *listbase, int(*cmp)(void *, const void *, const void *), void *thunk) ATTR_NONNULL(1
static int compare_extension(void *user_data, const void *a1, const void *a2)
void filelist_sort(FileList *filelist)
static int compare_size(void *user_data, const void *a1, const void *a2)
static int compare_tiebreaker(const FileListInternEntry *entry1, const FileListInternEntry *entry2)
@ FILE_TYPE_BLENDER_BACKUP
static int compare_direntry_generic(const FileListInternEntry *entry1, const FileListInternEntry *entry2)
eFileSel_File_Types typeflag
struct blender::FileListInternEntry::@000065073311321332173152260127375002005026343052 local_data
asset_system::AssetRepresentation * get_asset() const
ListBaseT< FileListInternEntry > entries
FileListIntern filelist_intern