Skip to content

Commit 5226963

Browse files
committed
Merge remote-tracking branch 'b/main'
2 parents cf85c3d + 5bd572d commit 5226963

File tree

235 files changed

+44750
-1913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+44750
-1913
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ option(WITH_OPENCOLLADA "Enable OpenCollada Support (http://www.opencollada.org)
491491
option(WITH_IO_WAVEFRONT_OBJ "Enable Wavefront-OBJ 3D file format support (*.obj)" ON)
492492
option(WITH_IO_PLY "Enable PLY 3D file format support (*.ply)" ON)
493493
option(WITH_IO_STL "Enable STL 3D file format support (*.stl)" ON)
494+
option(WITH_IO_FBX "Enable FBX 3D file format support (*.fbx)" ON)
494495
option(WITH_IO_GREASE_PENCIL "Enable grease-pencil file format IO (*.svg, *.pdf)" ON)
495496

496497
# Csv support

build_files/cmake/config/blender_lite.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ set(WITH_IO_STL OFF CACHE BOOL "" FORCE)
3939
set(WITH_IO_CSV OFF CACHE BOOL "" FORCE)
4040
set(WITH_IO_WAVEFRONT_OBJ OFF CACHE BOOL "" FORCE)
4141
set(WITH_IO_GREASE_PENCIL OFF CACHE BOOL "" FORCE)
42+
set(WITH_IO_FBX OFF CACHE BOOL "" FORCE)
4243
set(WITH_JACK OFF CACHE BOOL "" FORCE)
4344
set(WITH_LIBMV OFF CACHE BOOL "" FORCE)
4445
set(WITH_LLVM OFF CACHE BOOL "" FORCE)

doc/python_api/sphinx_changelog_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def api_dump(args):
112112
dump_module = dump["bpy.types"] = {}
113113

114114
struct = rna_info.BuildRNAInfo()[0]
115-
for struct_id, struct_info in sorted(struct.items()):
115+
for _struct_id, struct_info in sorted(struct.items()):
116116

117117
struct_id_str = struct_info.identifier
118118

extern/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Libs that adhere to strict flags
66
add_subdirectory(curve_fit_nd)
77
add_subdirectory(fmtlib)
8+
if(WITH_IO_FBX)
9+
add_subdirectory(ufbx)
10+
endif()
811

912
# Otherwise we get warnings here that we cant fix in external projects
1013
remove_strict_flags()

extern/ufbx/CMakeLists.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2025 Blender Authors
2+
#
3+
# SPDX-License-Identifier: GPL-2.0-or-later
4+
5+
set(INC
6+
PUBLIC .
7+
)
8+
9+
set(INC_SYS
10+
)
11+
12+
set(SRC
13+
ufbx.c
14+
ufbx.h
15+
)
16+
17+
set(LIB
18+
)
19+
20+
add_definitions(
21+
# Turn off ufbx features that Blender does not use
22+
-DUFBX_NO_SUBDIVISION
23+
-DUFBX_NO_TESSELLATION
24+
-DUFBX_NO_GEOMETRY_CACHE
25+
-DUFBX_NO_SCENE_EVALUATION
26+
-DUFBX_NO_SKINNING_EVALUATION
27+
-DUFBX_NO_ANIMATION_BAKING
28+
-DUFBX_NO_TRIANGULATION
29+
-DUFBX_NO_INDEX_GENERATION
30+
-DUFBX_NO_FORMAT_OBJ
31+
)
32+
33+
blender_add_lib(extern_ufbx "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
34+
add_library(bf::extern::ufbx ALIAS extern_ufbx)

extern/ufbx/LICENSE

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
------------------------------------------------------------------------------
2+
This software is available under 2 licenses -- choose whichever you prefer.
3+
------------------------------------------------------------------------------
4+
ALTERNATIVE A - MIT License
5+
Copyright (c) 2020 Samuli Raivio
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10+
of the Software, and to permit persons to whom the Software is furnished to do
11+
so, subject to the following conditions:
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
SOFTWARE.
21+
------------------------------------------------------------------------------
22+
ALTERNATIVE B - Public Domain (www.unlicense.org)
23+
This is free and unencumbered software released into the public domain.
24+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
25+
software, either in source code form or as a compiled binary, for any purpose,
26+
commercial or non-commercial, and by any means.
27+
In jurisdictions that recognize copyright laws, the author or authors of this
28+
software dedicate any and all copyright interest in the software to the public
29+
domain. We make this dedication for the benefit of the public at large and to
30+
the detriment of our heirs and successors. We intend this dedication to be an
31+
overt act of relinquishment in perpetuity of all present and future rights to
32+
this software under copyright law.
33+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36+
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
37+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
38+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39+
----------------------------------------

extern/ufbx/README.blender

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Project: ufbx - Single source file FBX loader
2+
URL: https://github.com/ufbx/ufbx
3+
License: SPDX:MIT
4+
Copyright: "Copyright (c) 2020 Samuli Raivio"
5+
Upstream version: v0.18.1-dev (42860b7, 2025-04-11)
6+
Local modifications:
7+
* None

0 commit comments

Comments
 (0)