Cleanup: line width
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index c553d4a6907d3d20ed42c8f1ccfb5f212f633f4d..96355c44f023b9b474f7974871e62b68d82e02fa 100644 (file)
@@ -2320,8 +2320,9 @@ static void WM_OT_open_mainfile(wmOperatorType *ot)
        ot->ui = wm_open_mainfile_ui;
        /* omit window poll so this can work in background mode */
 
-       WM_operator_properties_filesel(ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_OPENFILE,
-                                      WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
+       WM_operator_properties_filesel(
+               ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_OPENFILE,
+               WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
 
        RNA_def_boolean(ot->srna, "load_ui", true, "Load UI", "Load user interface setup in the .blend file");
        RNA_def_boolean(ot->srna, "use_scripts", true, "Trusted Source",
@@ -2775,9 +2776,9 @@ static void WM_OT_append(wmOperatorType *ot)
        ot->flag |= OPTYPE_UNDO;
 
        WM_operator_properties_filesel(
-               ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, FILE_LOADLIB, FILE_OPENFILE,
-               WM_FILESEL_FILEPATH | WM_FILESEL_DIRECTORY | WM_FILESEL_FILENAME | WM_FILESEL_FILES,
-               FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
+               ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, FILE_LOADLIB, FILE_OPENFILE,
+               WM_FILESEL_FILEPATH | WM_FILESEL_DIRECTORY | WM_FILESEL_FILENAME | WM_FILESEL_FILES,
+               FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
 
        wm_link_append_properties_common(ot, false);
        RNA_def_boolean(ot->srna, "set_fake", false, "Fake User", "Set Fake User for appended items (except Objects and Groups)");
@@ -2868,8 +2869,9 @@ static void WM_OT_recover_auto_save(wmOperatorType *ot)
        ot->exec = wm_recover_auto_save_exec;
        ot->invoke = wm_recover_auto_save_invoke;
 
-       WM_operator_properties_filesel(ot, FILE_TYPE_BLENDER, FILE_BLENDER, FILE_OPENFILE,
-                                      WM_FILESEL_FILEPATH, FILE_LONGDISPLAY, FILE_SORT_TIME);
+       WM_operator_properties_filesel(
+               ot, FILE_TYPE_BLENDER, FILE_BLENDER, FILE_OPENFILE,
+               WM_FILESEL_FILEPATH, FILE_LONGDISPLAY, FILE_SORT_TIME);
 }
 
 /* *************** save file as **************** */
@@ -3001,8 +3003,9 @@ static void WM_OT_save_as_mainfile(wmOperatorType *ot)
        ot->check = blend_save_check;
        /* omit window poll so this can work in background mode */
 
-       WM_operator_properties_filesel(ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_SAVE,
-                                      WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
+       WM_operator_properties_filesel(
+               ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_SAVE,
+               WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
        RNA_def_boolean(ot->srna, "compress", false, "Compress", "Write compressed .blend file");
        RNA_def_boolean(ot->srna, "relative_remap", true, "Remap Relative",
                        "Remap relative paths when saving in a different directory");
@@ -3068,8 +3071,9 @@ static void WM_OT_save_mainfile(wmOperatorType *ot)
        ot->check = blend_save_check;
        /* omit window poll so this can work in background mode */
        
-       WM_operator_properties_filesel(ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_SAVE,
-                                      WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
+       WM_operator_properties_filesel(
+               ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER, FILE_BLENDER, FILE_SAVE,
+               WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
        RNA_def_boolean(ot->srna, "compress", false, "Compress", "Write compressed .blend file");
        RNA_def_boolean(ot->srna, "relative_remap", false, "Remap Relative",
                        "Remap relative paths when saving in a different directory");