Blender
V4.5
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
struct
Mesh
;
18
struct
bContext
;
19
struct
ReportList
;
20
21
enum class
eFBXVertexColorMode
{
22
None
= 0,
23
sRGB
= 1,
24
Linear
= 2,
25
};
26
27
struct
FBXImportParams
{
28
char
filepath
[
FILE_MAX
] =
""
;
29
float
global_scale
= 1.0f;
30
eFBXVertexColorMode
vertex_colors
=
eFBXVertexColorMode::sRGB
;
31
bool
validate_meshes
=
true
;
32
bool
use_custom_normals
=
true
;
33
bool
import_subdivision
=
false
;
34
bool
use_custom_props
=
true
;
35
bool
props_enum_as_string
=
true
;
36
bool
ignore_leaf_bones
=
false
;
37
38
bool
use_anim
=
true
;
39
float
anim_offset
= 1.0f;
40
41
ReportList
*
reports
=
nullptr
;
42
};
43
44
void
FBX_import
(
bContext
*
C
,
const
FBXImportParams
&
params
);
BLI_path_utils.hh
FILE_MAX
#define FILE_MAX
Definition
BLI_path_utils.hh:666
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
eFBXVertexColorMode
eFBXVertexColorMode
Definition
IO_fbx.hh:21
eFBXVertexColorMode::Linear
@ Linear
Definition
IO_fbx.hh:24
eFBXVertexColorMode::None
@ None
Definition
IO_fbx.hh:22
eFBXVertexColorMode::sRGB
@ sRGB
Definition
IO_fbx.hh:23
FBX_import
void FBX_import(bContext *C, const FBXImportParams ¶ms)
Definition
IO_fbx.cc:29
IO_orientation.hh
C
#define C
Definition
RandGen.cpp:29
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition
interface_widgets.cc:1056
FBXImportParams
Definition
IO_fbx.hh:27
FBXImportParams::use_anim
bool use_anim
Definition
IO_fbx.hh:38
FBXImportParams::vertex_colors
eFBXVertexColorMode vertex_colors
Definition
IO_fbx.hh:30
FBXImportParams::validate_meshes
bool validate_meshes
Definition
IO_fbx.hh:31
FBXImportParams::import_subdivision
bool import_subdivision
Definition
IO_fbx.hh:33
FBXImportParams::filepath
char filepath[FILE_MAX]
Definition
IO_fbx.hh:28
FBXImportParams::global_scale
float global_scale
Definition
IO_fbx.hh:29
FBXImportParams::use_custom_props
bool use_custom_props
Definition
IO_fbx.hh:34
FBXImportParams::props_enum_as_string
bool props_enum_as_string
Definition
IO_fbx.hh:35
FBXImportParams::anim_offset
float anim_offset
Definition
IO_fbx.hh:39
FBXImportParams::use_custom_normals
bool use_custom_normals
Definition
IO_fbx.hh:32
FBXImportParams::reports
ReportList * reports
Definition
IO_fbx.hh:41
FBXImportParams::ignore_leaf_bones
bool ignore_leaf_bones
Definition
IO_fbx.hh:36
Mesh
Definition
DNA_mesh_types.h:59
ReportList
Definition
DNA_windowmanager_types.h:119
bContext
Definition
blenkernel/intern/context.cc:58
Generated on
for Blender by
doxygen
1.15.0