Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_obj.c
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup editor/io | * \ingroup editor/io | ||||
| */ | */ | ||||
| #ifdef WITH_IO_WAVEFRONT_OBJ | |||||
| #include "DNA_space_types.h" | # include "DNA_space_types.h" | ||||
| #include "BKE_context.h" | # include "BKE_context.h" | ||||
| #include "BKE_main.h" | # include "BKE_main.h" | ||||
| #include "BKE_report.h" | # include "BKE_report.h" | ||||
| #include "BLI_path_util.h" | # include "BLI_path_util.h" | ||||
| #include "BLI_string.h" | # include "BLI_string.h" | ||||
| #include "BLI_utildefines.h" | # include "BLI_utildefines.h" | ||||
| #include "BLT_translation.h" | # include "BLT_translation.h" | ||||
| #include "ED_outliner.h" | # include "ED_outliner.h" | ||||
| #include "MEM_guardedalloc.h" | # include "MEM_guardedalloc.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 "IO_orientation.h" | # include "IO_orientation.h" | ||||
| #include "IO_path_util_types.h" | # include "IO_path_util_types.h" | ||||
| #include "IO_wavefront_obj.h" | # include "IO_wavefront_obj.h" | ||||
| #include "io_obj.h" | # include "io_obj.h" | ||||
| static const EnumPropertyItem io_obj_export_evaluation_mode[] = { | static const EnumPropertyItem io_obj_export_evaluation_mode[] = { | ||||
| {DAG_EVAL_RENDER, "DAG_EVAL_RENDER", 0, "Render", "Export objects as they appear in render"}, | {DAG_EVAL_RENDER, "DAG_EVAL_RENDER", 0, "Render", "Export objects as they appear in render"}, | ||||
| {DAG_EVAL_VIEWPORT, | {DAG_EVAL_VIEWPORT, | ||||
| "DAG_EVAL_VIEWPORT", | "DAG_EVAL_VIEWPORT", | ||||
| 0, | 0, | ||||
| "Viewport", | "Viewport", | ||||
| "Export objects as they appear in the viewport"}, | "Export objects as they appear in the viewport"}, | ||||
| ▲ Show 20 Lines • Show All 421 Lines • ▼ Show 20 Lines | RNA_def_boolean(ot->srna, | ||||
| false, | false, | ||||
| "Validate Meshes", | "Validate Meshes", | ||||
| "Check imported mesh objects for invalid data (slow)"); | "Check imported mesh objects for invalid data (slow)"); | ||||
| /* Only show .obj or .mtl files by default. */ | /* Only show .obj or .mtl files by default. */ | ||||
| prop = RNA_def_string(ot->srna, "filter_glob", "*.obj;*.mtl", 0, "Extension Filter", ""); | prop = RNA_def_string(ot->srna, "filter_glob", "*.obj;*.mtl", 0, "Extension Filter", ""); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| } | } | ||||
| #endif /* WITH_IO_WAVEFRONT_OBJ */ | |||||