Blender  V3.3
Classes
BLO_writefile.h File Reference

external writefile.c function prototypes. More...

Go to the source code of this file.

Classes

struct  BlendFileWriteParams
 

BLO Write File API

See also
BLO_read_from_file for file reading.
enum  eBLO_WritePathRemap { BLO_WRITE_PATH_REMAP_NONE = 0 , BLO_WRITE_PATH_REMAP_RELATIVE = 1 , BLO_WRITE_PATH_REMAP_RELATIVE_ALL = 2 , BLO_WRITE_PATH_REMAP_ABSOLUTE = 3 }
 
typedef enum eBLO_WritePathRemap eBLO_WritePathRemap
 
bool BLO_write_file (struct Main *mainvar, const char *filepath, int write_flags, const struct BlendFileWriteParams *params, struct ReportList *reports)
 
bool BLO_write_file_mem (struct Main *mainvar, struct MemFile *compare, struct MemFile *current, int write_flags)
 

Detailed Description

external writefile.c function prototypes.

Definition in file BLO_writefile.h.

Typedef Documentation

◆ eBLO_WritePathRemap

Adjust paths when saving (kept unless BlendFileWriteParams.use_save_as_copy is set).

Enumeration Type Documentation

◆ eBLO_WritePathRemap

Adjust paths when saving (kept unless BlendFileWriteParams.use_save_as_copy is set).

Enumerator
BLO_WRITE_PATH_REMAP_NONE 

No path manipulation.

BLO_WRITE_PATH_REMAP_RELATIVE 

Remap existing relative paths (default).

BLO_WRITE_PATH_REMAP_RELATIVE_ALL 

Remap paths making all paths relative to the new location.

BLO_WRITE_PATH_REMAP_ABSOLUTE 

Make all paths absolute.

Definition at line 29 of file BLO_writefile.h.

Function Documentation

◆ BLO_write_file()

bool BLO_write_file ( struct Main mainvar,
const char *  filepath,
int  write_flags,
const struct BlendFileWriteParams params,
struct ReportList reports 
)

◆ BLO_write_file_mem()

bool BLO_write_file_mem ( struct Main mainvar,
struct MemFile compare,
struct MemFile current,
int  write_flags 
)
Returns
Success.

Definition at line 1479 of file writefile.c.

References err, NULL, and write_file_handle().

Referenced by BKE_memfile_undo_encode().