svn merge ^/trunk/blender -r42927:42931
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 29d2f9392b2898eb2ec151cda4aa29499f5bd385..e528bb52bc980e0283092fe58233dbd722a77883 100644 (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;