Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_gpencil_import.c
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2020 Blender Foundation. All rights reserved. */ | * Copyright 2020 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup editor/io | * \ingroup editor/io | ||||
| */ | */ | ||||
| #ifdef WITH_IO_GPENCIL | |||||
| #include "BLI_path_util.h" | # include "BLI_path_util.h" | ||||
| #include "DNA_gpencil_types.h" | # include "DNA_gpencil_types.h" | ||||
| #include "DNA_space_types.h" | # include "DNA_space_types.h" | ||||
| #include "BKE_context.h" | # include "BKE_context.h" | ||||
| #include "BKE_gpencil.h" | # include "BKE_gpencil.h" | ||||
| #include "BKE_report.h" | # include "BKE_report.h" | ||||
| #include "BLT_translation.h" | # include "BLT_translation.h" | ||||
| #include "RNA_access.h" | # include "RNA_access.h" | ||||
| #include "RNA_define.h" | # include "RNA_define.h" | ||||
| #include "UI_interface.h" | # include "UI_interface.h" | ||||
| #include "UI_resources.h" | # include "UI_resources.h" | ||||
| #include "WM_api.h" | # include "WM_api.h" | ||||
| #include "WM_types.h" | # include "WM_types.h" | ||||
| #include "DEG_depsgraph.h" | # include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_query.h" | # include "DEG_depsgraph_query.h" | ||||
| #include "ED_gpencil.h" | # include "ED_gpencil.h" | ||||
| #include "io_gpencil.h" | # include "io_gpencil.h" | ||||
| #include "gpencil_io.h" | # include "gpencil_io.h" | ||||
| /* <-------- SVG single frame import. --------> */ | /* <-------- SVG single frame import. --------> */ | ||||
| static bool wm_gpencil_import_svg_common_check(bContext *UNUSED(C), wmOperator *op) | static bool wm_gpencil_import_svg_common_check(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| char filepath[FILE_MAX]; | char filepath[FILE_MAX]; | ||||
| RNA_string_get(op->ptr, "filepath", filepath); | RNA_string_get(op->ptr, "filepath", filepath); | ||||
| ▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | RNA_def_float(ot->srna, | ||||
| 10.0f, | 10.0f, | ||||
| 0.001f, | 0.001f, | ||||
| 100.0f, | 100.0f, | ||||
| "Scale", | "Scale", | ||||
| "Scale of the final strokes", | "Scale of the final strokes", | ||||
| 0.001f, | 0.001f, | ||||
| 100.0f); | 100.0f); | ||||
| } | } | ||||
| #endif /* WITH_IO_GPENCIL */ | |||||