saving to legacy mesh format is now functional
This commit is contained in:
@@ -1686,7 +1686,7 @@ static void write_meshs(WriteData *wd, ListBase *idbase)
|
||||
int save_for_old_blender= 0;
|
||||
|
||||
#ifdef USE_MESH_FORWARDS_COMAT
|
||||
/* TODO, add UI option to allow bmesh to save for pre-bmesh blender versions */
|
||||
save_for_old_blender = wd->use_mesh_compat; /* option to save with older mesh format */
|
||||
#endif
|
||||
|
||||
mesh= idbase->first;
|
||||
|
||||
@@ -1973,6 +1973,10 @@ static int wm_save_as_mainfile_exec(bContext *C, wmOperator *op)
|
||||
else fileflags &= ~G_FILE_COMPRESS;
|
||||
if(RNA_boolean_get(op->ptr, "relative_remap")) fileflags |= G_FILE_RELATIVE_REMAP;
|
||||
else fileflags &= ~G_FILE_RELATIVE_REMAP;
|
||||
#ifdef USE_MESH_FORWARDS_COMAT
|
||||
if(RNA_boolean_get(op->ptr, "use_mesh_compat")) fileflags |= G_FILE_MESH_COMPAT;
|
||||
else fileflags &= ~G_FILE_MESH_COMPAT;
|
||||
#endif
|
||||
|
||||
if ( WM_write_file(C, path, fileflags, op->reports, copy) != 0)
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
Reference in New Issue
Block a user