Blender V4.3
file_utils.cc File Reference
#include "BLI_path_utils.hh"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BKE_blendfile.hh"
#include "ED_fileselect.hh"
#include "file_intern.hh"

Go to the source code of this file.

Functions

void file_tile_boundbox (const ARegion *region, FileLayout *layout, const int file, rcti *r_bounds)
 
void file_path_to_ui_path (const char *path, char *r_path, int r_path_maxncpy)
 

Function Documentation

◆ file_path_to_ui_path()

void file_path_to_ui_path ( const char * path,
char * r_path,
int r_path_maxncpy )

If path leads to a .blend, remove the trailing slash (if needed).

Definition at line 32 of file file_utils.cc.

References BKE_blendfile_extension_check(), BLI_path_slash_rstrip(), BLI_strncpy(), FILE_MAX_LIBEXTRA, and STRNCPY.

Referenced by file_draw_invalid_asset_library_hint().

◆ file_tile_boundbox()

void file_tile_boundbox ( const ARegion * region,
FileLayout * layout,
const int file,
rcti * r_bounds )