diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-08-02 10:46:32 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-08-02 10:46:32 +0300 |
commit | 670ced97589d3fc29feafb32e96d08541aa7b32e (patch) | |
tree | 552a0ea7a26c93ce79b942de9c5f9e3623148f14 /source/blender/io/gpencil/gpencil_io.h | |
parent | f263334529a56381adcebe8d55d829502db2c717 (diff) |
GPencil: Allow import several SVG at time
For SVG is very convenient to be able to import several SVG in one operation. Each SVG is imported as a new Grease Pencil object.
Also, now the SVG file name is used as Object name.
Important: As all SVG imported are converted to Grease Pencil object in the same location of the 3D cursor, the SVG imported are not moved and the result may require a manual fix of location. The same is applied for depth order, the files are imported in alphabetic order according to the File list.
Reviewed By: mendio, pepeland
Differential Revision: https://developer.blender.org/D14865
Diffstat (limited to 'source/blender/io/gpencil/gpencil_io.h')
-rw-r--r-- | source/blender/io/gpencil/gpencil_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/io/gpencil/gpencil_io.h b/source/blender/io/gpencil/gpencil_io.h index 215891e3e48..eb811fa2de8 100644 --- a/source/blender/io/gpencil/gpencil_io.h +++ b/source/blender/io/gpencil/gpencil_io.h @@ -35,6 +35,8 @@ typedef struct GpencilIOParams { /** Stroke sampling factor. */ float stroke_sample; int32_t resolution; + /** Filename to be used in new objects. */ + char filename[128]; } GpencilIOParams; /* GpencilIOParams->flag. */ |