Script to test import operators, so a single command can execute an operator on all...
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 1b602b167c72b6d1d78fe2d5f77cc15d7a1669a9..43c4551d0dcbdbcbf7691c9242da5309924cf8aa 100644 (file)
@@ -1786,8 +1786,8 @@ static void WM_OT_save_as_mainfile(wmOperatorType *ot)
        ot->invoke= wm_save_as_mainfile_invoke;
        ot->exec= wm_save_as_mainfile_exec;
        ot->check= blend_save_check;
-       ot->poll= WM_operator_winactive;
-       
+       /* ommit window poll so this can work in background mode */
+
        WM_operator_properties_filesel(ot, FOLDERFILE|BLENDERFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH);
        RNA_def_boolean(ot->srna, "compress", 0, "Compress", "Write compressed .blend file");
        RNA_def_boolean(ot->srna, "relative_remap", 1, "Remap Relative", "Remap relative paths when saving in a different directory");