Blender
V5.3
source
blender
io
fbx
IO_fbx.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_path_utils.hh
"
12
13
#include "
DNA_ID.h
"
14
15
#include "
IO_orientation.hh
"
16
17
namespace
blender
{
18
19
struct
Mesh
;
20
struct
bContext
;
21
struct
ReportList
;
22
27
enum class
eFBXMtlNameCollisionMode
{
28
MakeUnique
= 0,
29
ReferenceExisting
= 1,
30
};
31
32
enum class
eFBXVertexColorMode
{
33
None = 0,
34
sRGB = 1,
35
Linear
= 2,
36
};
37
38
struct
FBXImportParams
{
39
char
filepath
[
FILE_MAX
] =
""
;
40
float
global_scale
= 1.0f;
41
eFBXMtlNameCollisionMode
mtl_name_collision_mode
=
eFBXMtlNameCollisionMode::MakeUnique
;
42
eFBXVertexColorMode
vertex_colors
=
eFBXVertexColorMode::sRGB
;
43
bool
validate_meshes
=
true
;
44
bool
use_custom_normals
=
true
;
45
bool
import_subdivision
=
false
;
46
bool
use_custom_props
=
true
;
47
bool
props_enum_as_string
=
true
;
48
bool
ignore_leaf_bones
=
false
;
49
50
bool
use_anim
=
true
;
51
float
anim_offset
= 1.0f;
52
53
ReportList
*
reports
=
nullptr
;
54
};
55
56
void
FBX_import
(
bContext
*
C
,
const
FBXImportParams
¶ms);
57
58
}
// namespace blender
BLI_path_utils.hh
FILE_MAX
#define FILE_MAX
Definition
BLI_path_utils.hh:696
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
IO_orientation.hh
C
#define C
Definition
RandGen.cpp:29
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::eFBXVertexColorMode
eFBXVertexColorMode
Definition
IO_fbx.hh:32
blender::eFBXVertexColorMode::sRGB
@ sRGB
Definition
IO_fbx.hh:34
blender::FBX_import
void FBX_import(bContext *C, const FBXImportParams ¶ms)
Definition
IO_fbx.cc:31
blender::MultiresSubdivideModeType::Linear
@ Linear
Definition
BKE_multires.hh:184
blender::eFBXMtlNameCollisionMode
eFBXMtlNameCollisionMode
Definition
IO_fbx.hh:27
blender::eFBXMtlNameCollisionMode::MakeUnique
@ MakeUnique
Definition
IO_fbx.hh:28
blender::eFBXMtlNameCollisionMode::ReferenceExisting
@ ReferenceExisting
Definition
IO_fbx.hh:29
blender::FBXImportParams
Definition
IO_fbx.hh:38
blender::FBXImportParams::mtl_name_collision_mode
eFBXMtlNameCollisionMode mtl_name_collision_mode
Definition
IO_fbx.hh:41
blender::FBXImportParams::ignore_leaf_bones
bool ignore_leaf_bones
Definition
IO_fbx.hh:48
blender::FBXImportParams::vertex_colors
eFBXVertexColorMode vertex_colors
Definition
IO_fbx.hh:42
blender::FBXImportParams::reports
ReportList * reports
Definition
IO_fbx.hh:53
blender::FBXImportParams::use_custom_props
bool use_custom_props
Definition
IO_fbx.hh:46
blender::FBXImportParams::props_enum_as_string
bool props_enum_as_string
Definition
IO_fbx.hh:47
blender::FBXImportParams::import_subdivision
bool import_subdivision
Definition
IO_fbx.hh:45
blender::FBXImportParams::filepath
char filepath[FILE_MAX]
Definition
IO_fbx.hh:39
blender::FBXImportParams::validate_meshes
bool validate_meshes
Definition
IO_fbx.hh:43
blender::FBXImportParams::global_scale
float global_scale
Definition
IO_fbx.hh:40
blender::FBXImportParams::use_custom_normals
bool use_custom_normals
Definition
IO_fbx.hh:44
blender::FBXImportParams::use_anim
bool use_anim
Definition
IO_fbx.hh:50
blender::FBXImportParams::anim_offset
float anim_offset
Definition
IO_fbx.hh:51
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::ReportList
Definition
BKE_report.hh:78
blender::bContext
Definition
blenkernel/intern/context.cc:65
Generated on
for Blender by
doxygen
1.18.0