saving to legacy mesh format is now functional

This commit is contained in:
Campbell Barton
2011-12-27 13:44:15 +00:00
parent 38f8c897e7
commit 74b1a6465f
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;