[Bf-blender-cvs] [621a63c587a] greasepencil-object: GPencil: Display list of files for SVG export

Antonio Vazquez noreply at git.blender.org
Fri Jul 31 19:47:18 CEST 2020


Commit: 621a63c587aa79eac03077b7d4132e760f93fddf
Author: Antonio Vazquez
Date:   Fri Jul 31 19:47:09 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB621a63c587aa79eac03077b7d4132e760f93fddf

GPencil: Display list of files for SVG export

===================================================================

M	source/blender/editors/io/io_gpencil.c
M	source/blender/editors/space_file/filelist.c

===================================================================

diff --git a/source/blender/editors/io/io_gpencil.c b/source/blender/editors/io/io_gpencil.c
index d1c7894eb68..7aecfea7d44 100644
--- a/source/blender/editors/io/io_gpencil.c
+++ b/source/blender/editors/io/io_gpencil.c
@@ -316,7 +316,7 @@ void WM_OT_gpencil_export(wmOperatorType *ot)
   ot->check = wm_gpencil_export_check;
 
   WM_operator_properties_filesel(ot,
-                                 FILE_TYPE_ARCHIVE | FILE_TYPE_OBJECT_IO,
+                                 FILE_TYPE_OBJECT_IO,
                                  FILE_BLENDER,
                                  FILE_SAVE,
                                  WM_FILESEL_FILEPATH | WM_FILESEL_SHOW_PROPS,
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 3ce80c11160..8b4e58c778c 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -2265,7 +2265,7 @@ int ED_path_extension_type(const char *path)
   if (BLI_path_extension_check(path, ".zip")) {
     return FILE_TYPE_ARCHIVE;
   }
-  if (BLI_path_extension_check_n(path, ".obj", ".3ds", ".fbx", ".glb", ".gltf", NULL)) {
+  if (BLI_path_extension_check_n(path, ".obj", ".3ds", ".fbx", ".glb", ".gltf", ".svg", NULL)) {
     return FILE_TYPE_OBJECT_IO;
   }
   if (BLI_path_extension_check_array(path, imb_ext_image)) {



More information about the Bf-blender-cvs mailing list