Blender V4.3
BLO_writefile.hh File Reference

external writefile.cc 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 }
 
bool BLO_write_file (Main *mainvar, const char *filepath, int write_flags, const BlendFileWriteParams *params, ReportList *reports)
 
bool BLO_write_file_mem (Main *mainvar, MemFile *compare, MemFile *current, int write_flags)
 

Detailed Description

external writefile.cc function prototypes.

Definition in file BLO_writefile.hh.

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 26 of file BLO_writefile.hh.

Function Documentation

◆ BLO_write_file()

◆ BLO_write_file_mem()

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

Definition at line 1780 of file writefile.cc.

References write_file_handle().

Referenced by BKE_memfile_undo_encode().