Skip to content

Feature/pjoe fix fbx export - #6405

Merged
kimkulling merged 50 commits into
masterfrom
feature/pjoe_fix-fbx-export
Dec 1, 2025
Merged

kimkulling merged 50 commits into
masterfrom
feature/pjoe_fix-fbx-export

Conversation

@kimkulling

@kimkulling kimkulling commented Dec 1, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced FBX export to properly resolve texture file paths, including adding missing file extensions when needed.
    • Reduced redundant texture processing during export.
    • Improved reliability of texture references in exported FBX files.

✏️ Tip: You can customize this high-level summary in your review settings.

pjoe and others added 30 commits August 27, 2025 09:06
- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>
- Added null check for node in AddNode function.
- closes #6347
… type (#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment
apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
* Fixed itch.io spelling from itchi.io
original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>
* Added tangent handedness to glTF export
…6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>
* Add BOM skip and fix mtl parsing
* Remove old code
* Fix #5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>
* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).
* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>
* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>
* Update texture output format in AssxmlFileWriter
* COB: fix validation for ascii header
- Ensure face indices are properly allocated and resized.
- closes #6379
* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio
…consistency of members of mesh after process (#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>
Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes #6358

Co-authored-by: Kim Kulling <[email protected]>
kimkulling and others added 15 commits December 1, 2025 09:21
* Create pyproject.toml
* glTF2: Reduce lookups for generating IDs
- closes #5661
* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop
* Add documentation comments to DeboneProcess.h
* Reorganize code to prevent security warning.
* Fix linkage when all importers aren't part of the build.
…nces. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>
* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md
* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp
* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>
@coderabbitai

coderabbitai Bot commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Introduced texture path resolution tracking via a new map (tpath_by_image) in FBXExporter to normalize image filenames by appending format extensions when missing, ensuring consistent path references and eliminating duplicates during FBX export.

Changes

Cohort / File(s) Summary
Texture Path Resolution Enhancement
code/AssetLib/FBX/FBXExporter.cpp
Added tpath_by_image map to track resolved texture file paths. When embedding textures with missing extensions, appends format hint extension to create normalized path. Updated Video/Texture and Texture node FileName/RelativeFilename fields to use resolved paths from map, with fallback warning for unmapped paths.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Focus areas:
    • Map initialization and population logic to ensure all texture paths are correctly tracked
    • Extension-appending logic for filenames lacking extensions
    • Conditional branching for resolved vs. original path usage
    • Warning fallback mechanism and its conditions
    • Verify map lookups align with all texture processing paths (Video/Texture and Texture nodes)

Poem

🐰 A map to bind the textures true,
Extensions found where paths were few,
No duplicates shall sneak about,
FBX exports gain their clout! 🎨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title check ❓ Inconclusive The title 'Feature/pjoe fix fbx export' is vague and uses a branch-naming convention rather than a descriptive commit message format, making it unclear what specific FBX export issue is being addressed. Revise the title to be more descriptive and specific about the fix, such as 'Fix FBX texture path resolution to handle missing file extensions' or similar that clearly describes the main change.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/pjoe_fix-fbx-export

Comment @coderabbitai help to get the list of available commands and usage tips.

@kimkulling kimkulling self-assigned this Dec 1, 2025
@kimkulling kimkulling added Bug Global flag to mark a deviation from expected behaviour FBX Bugs related to the FBX format Export Bugs / Feature requests related to export. labels Dec 1, 2025
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2025

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
code/AssetLib/FBX/FBXExporter.cpp (1)

1738-1770: Unsafe use of tp_elem when texture path is not in tpath_by_image

You correctly fall back to texture_path in tfile_path when the lookup fails, but the subsequent AddChild calls still use tp_elem->second directly. When tp_elem == tpath_by_image.end(), this is undefined behavior and will likely crash. Also, tfile_path is currently unused.

Use tfile_path consistently for the Texture node paths:

-            auto tp_elem = tpath_by_image.find(texture_path);
-            std::string tfile_path = texture_path;
-            if (tp_elem != tpath_by_image.end()) {
-                tfile_path = tp_elem->second;
-            } else {
-                std::stringstream err;
-                err << "Texture path not found for texure " << texture_path;
-                err << " on material " << i;
-                ASSIMP_LOG_WARN(err.str());
-            }
+            auto tp_elem = tpath_by_image.find(texture_path);
+            std::string tfile_path = texture_path;
+            if (tp_elem != tpath_by_image.end()) {
+                tfile_path = tp_elem->second;
+            } else {
+                std::stringstream err;
+                err << "Texture path not found for texture " << texture_path;
+                err << " on material " << i;
+                ASSIMP_LOG_WARN(err.str());
+            }
@@
-            // can't easily determine which texture path will be correct,
-            // so just store what we have in every field.
-            // these being incorrect is a common problem with FBX anyway.
-            tnode.AddChild("FileName", tp_elem->second);
-            tnode.AddChild("RelativeFilename", tp_elem->second);
+            // can't easily determine which texture path will be correct,
+            // so just store what we have in every field.
+            // these being incorrect is a common problem with FBX anyway.
+            tnode.AddChild("FileName", tfile_path);
+            tnode.AddChild("RelativeFilename", tfile_path);

This preserves the intended behavior (prefer normalized path, fall back to original) without risking iterator misuse.

🧹 Nitpick comments (1)
code/AssetLib/FBX/FBXExporter.cpp (1)

1585-1585: Optional: adopt a transparent comparator for tpath_by_image

Static analysis suggests using a transparent comparator for associative string containers. If the project targets C++14 or later and you ever want heterogeneous lookups (e.g. with std::string_view or const char*), you can declare:

-    std::map<std::string, std::string> tpath_by_image;
+    std::map<std::string, std::string, std::less<>> tpath_by_image;

This is non‑functional today (all current lookups use std::string), but it future‑proofs the container and addresses the Sonar warning. Please confirm that the lowest supported C++ standard in this project allows std::less<> before applying.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 11272f1 and 6e7dc31.

📒 Files selected for processing (1)
  • code/AssetLib/FBX/FBXExporter.cpp (4 hunks)
🧰 Additional context used
🪛 GitHub Check: SonarCloud Code Analysis
code/AssetLib/FBX/FBXExporter.cpp

[warning] 1585-1585: Use the transparent comparator "std::less<>" with this associative string container.

See more on https://sonarcloud.io/project/issues?id=assimp_assimp&issues=AZrZDsfUbb9QTLSeQJ_0&open=AZrZDsfUbb9QTLSeQJ_0&pullRequest=6405


[failure] 1608-1608: Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=assimp_assimp&issues=AZrZDsfUbb9QTLSeQJ_z&open=AZrZDsfUbb9QTLSeQJ_z&pullRequest=6405

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: adress-sanitizer
  • GitHub Check: undefined-behavior-sanitizer
  • GitHub Check: ubuntu-latest-g++-build-and-test
  • GitHub Check: windows-hunter-latest-cl.exe-build-and-test
  • GitHub Check: ubuntu-latest-clang++-build-and-test
  • GitHub Check: macos-latest-clang++-build-and-test
  • GitHub Check: windows-latest-clang.exe-build-and-test
  • GitHub Check: windows-latest-cl.exe-build-and-test
  • GitHub Check: Fuzzing
  • GitHub Check: Analyze (csharp)
  • GitHub Check: Analyze (c-cpp)

Comment on lines +1605 to +1611
// If newPath doesn't end in an extension, add extension from embedded_texture->achFormatHint
std::string np = newPath.str();
size_t dot_pos = np.find_last_of('.');
if (dot_pos == std::string::npos || dot_pos < np.find_last_of("/\\")) {
// No extension found, add one
newPath << "." << embedded_texture->achFormatHint;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Extension detection can misidentify existing extensions and duplicate them

For filenames without a directory (e.g. foo.png), np.find_last_of("/\\") returns npos, so dot_pos < np.find_last_of("/\\") is always true when a dot exists. This causes valid extensions to be treated as missing and results in paths like foo.png.png. It also appends an extension even when achFormatHint is empty.

Consider tightening the logic to check the last dot relative to the last slash explicitly and gate on a non‑empty format hint:

-            if (embedded_texture->mFilename.length > 0) {
-                newPath << embedded_texture->mFilename.C_Str();
-                // If newPath doesn't end in an extension, add extension from embedded_texture->achFormatHint
-                std::string np = newPath.str();
-                size_t dot_pos = np.find_last_of('.');
-                if (dot_pos == std::string::npos || dot_pos < np.find_last_of("/\\")) {
-                    // No extension found, add one
-                    newPath << "." << embedded_texture->achFormatHint;
-                }
+            if (embedded_texture->mFilename.length > 0) {
+                newPath << embedded_texture->mFilename.C_Str();
+                // If newPath doesn't end in an extension, add extension from embedded_texture->achFormatHint
+                const std::string np       = newPath.str();
+                const size_t      lastSlash = np.find_last_of("/\\");
+                const size_t      dot_pos   = np.find_last_of('.');
+                const bool hasExtAfterSlash =
+                    (dot_pos != std::string::npos) &&
+                    (lastSlash == std::string::npos || dot_pos > lastSlash);
+                if (!hasExtAfterSlash && embedded_texture->achFormatHint[0] != '\0') {
+                    newPath << "." << embedded_texture->achFormatHint;
+                }
             }

This preserves existing extensions while still filling in missing ones. If you also need to satisfy the Sonar nesting rule, you can move this block into a small helper function.

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 GitHub Check: SonarCloud Code Analysis

[failure] 1608-1608: Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=assimp_assimp&issues=AZrZDsfUbb9QTLSeQJ_z&open=AZrZDsfUbb9QTLSeQJ_z&pullRequest=6405

🤖 Prompt for AI Agents
In code/AssetLib/FBX/FBXExporter.cpp around lines 1605 to 1611, the
extension-detection logic misclassifies existing extensions because it compares
dot_pos against np.find_last_of("/\\") which can return npos; change to compute
size_t last_slash = np.find_last_of("/\\"); then only treat the dot as absent
when dot_pos == std::string::npos || dot_pos < last_slash (using the stored
last_slash value) and, crucially, only append "." +
embedded_texture->achFormatHint when achFormatHint is non-empty; optionally
extract this block into a small helper to satisfy nesting rules.

@kimkulling
kimkulling merged commit ac0cfc8 into master Dec 1, 2025
@kimkulling
kimkulling deleted the feature/pjoe_fix-fbx-export branch December 1, 2025 13:17
kimkulling added a commit that referenced this pull request Jul 1, 2026
* fix: texture paths issues with fbx export

* Update LICENSE (#6327)

* FBX: Fix offset calculation by adding cursor check (#6337)

- closes #6336

* [CMake] -l (#6329)

- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>

* Add null check for aiNode in AddNode method (#6348)

- Added null check for node in AddNode function.
- closes #6347

* fix large glb reading by providing a proper helper for reading size_t type (#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Updated doc/Preamble.txt & SECURITY.md (#6338)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README! Fixed discord link as well (#6351)

* Better README!

* PyAssimp: Re-add 'aiProcess_Triangulate' (#6335)

apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fixed Build.md (#6354)

* Fixed itch.io spelling from itchi.io

* Fix hasTangentsAndBitangents method in AiMesh.java (#6345)

original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>

* Added tangent handedness to glTF export (#6322)

* Added tangent handedness to glTF export

* Restore merging of near-identical vertices for JoinIdenticalVertices (#6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>

* Add BOM skip and fix mtl parsing (#6253)

* Add BOM skip and fix mtl parsing
* Remove old code
* Fix #5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>

* Clone meshlab/tinyusdz repos in default location (#6239)

* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fix an invalid offsetof warning-as-error (#6359)

The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).

* Add unit test for subdivision modifier on Blender importer (#5345)

* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>

* Change strcpy to strncpy for format hint safety (#6365)

* Update default material name handling (#6366)

* Replace strcpy by strncpy

* Bugfix/fix sonarcube findings (#6369)

* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>

* Update texture output format in AssxmlFileWriter (#6372)

* Update texture output format in AssxmlFileWriter

* Collada: Fix overflow in CopyVertex (#6374)

* Fix overflow in CopyVertex

* COB: fix validation for ascii header (#6376)

* COB: fix validation for ascii header

* MD5: Fix face index allocation in MD5Parser (#6380)

- Ensure face indices are properly allocated and resized.
- closes #6379

* Removed unnecessary copy constructor declaration in aiVector3t (#6384)

* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t

* Bump actions/upload-artifact from 4 to 5 (#6383)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/download-artifact from 5 to 6 (#6382)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Made the README more tidy & fix Build.md (#6371)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio

* Fix out-of-range access cause of aiProcess_GenNormals : array size inconsistency of members of mesh after process (#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>

* Fix Heap-buffer-overflow in Q3DImporter::InternReadFile (#6370)

Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes #6358

Co-authored-by: Kim Kulling <[email protected]>

* Revert "Refactoring: use using types (#6266)" (#6324)

* Revert "Refactoring: use using types (#6266)"

* fix: write textures to folder of PBRT file (#6099)

* fix: write textures to folder of PBRT file

* Refactor condition checks for empty vectors (#6385)

* Refactor based on SonarCube.

* Fix sonarcube stuff (#6387)

* Fix sonarcube stuff

* Update contact email for reporting vulnerabilities (#6389)

* [PyAssimp] Create `pyproject.toml` (#6378)

* Create pyproject.toml

* glTF2: Avoid lookups for generating IDs (#6120)

* glTF2: Reduce lookups for generating IDs
- closes #5661

* Refactor string checks and variable declarations (#6392)

* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop

* Fix the doxygen documentation from public headers (#6394)

* Add documentation comments to DeboneProcess.h

* Added static cast for conversion from uLong to unsigned int for compiler error (#6393)

Co-authored-by: Kim Kulling <[email protected]>

* Reorganize code top prevent security warning. (#6395)

* Reorganize code to prevent security warning.

* Fix linkage (#6388)

* Fix linkage when all importers aren't part of the build.

* Update LineSplitter.h (#6396)

* Added missing scene extras properties for glTF2Importer (#6397)

* WiP. Passing USD prims along with render nodes to look for USD references. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/checkout from 5 to 6 (#6401)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Update Readme.md (#6402)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py (#6403)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp

* Fixed DXFHelper using float instead of ai_real (#6404)

* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Pelle Johnsen <[email protected]>
Co-authored-by: AbdulRehman <[email protected]>
Co-authored-by: Steven French <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: umläute <[email protected]>
Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: fifth_light <[email protected]>
Co-authored-by: Luca Della Vedova <[email protected]>
Co-authored-by: Matt Penny <[email protected]>
Co-authored-by: Paul Bauriegel <[email protected]>
Co-authored-by: Steve M <[email protected]>
Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Sami Liedes <[email protected]>
Co-authored-by: Alexandre Avenel <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Co-authored-by: EddieBreeg <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sSsA01 <[email protected]>
Co-authored-by: Jan Grulich <[email protected]>
Co-authored-by: Jan Honsbrok <[email protected]>
Co-authored-by: thedestroyer4312 <[email protected]>
Co-authored-by: Jerome St-Louis <[email protected]>
Co-authored-by: John Curley <[email protected]>
Co-authored-by: Orleonn <[email protected]>
Co-authored-by: Gene Walters <[email protected]>
Co-authored-by: JakobPer <[email protected]>
tkluge-fender pushed a commit to cclsoftware/assimp that referenced this pull request Jul 28, 2026
* fix: texture paths issues with fbx export

* Update LICENSE (assimp#6327)

* FBX: Fix offset calculation by adding cursor check (assimp#6337)

- closes assimp#6336

* [CMake] -l (assimp#6329)

- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>

* Add null check for aiNode in AddNode method (assimp#6348)

- Added null check for node in AddNode function.
- closes assimp#6347

* fix large glb reading by providing a proper helper for reading size_t type (assimp#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Updated doc/Preamble.txt & SECURITY.md (assimp#6338)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README! Fixed discord link as well (assimp#6351)

* Better README!

* PyAssimp: Re-add 'aiProcess_Triangulate' (assimp#6335)

apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fixed Build.md (assimp#6354)

* Fixed itch.io spelling from itchi.io

* Fix hasTangentsAndBitangents method in AiMesh.java (assimp#6345)

original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>

* Added tangent handedness to glTF export (assimp#6322)

* Added tangent handedness to glTF export

* Restore merging of near-identical vertices for JoinIdenticalVertices (assimp#6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>

* Add BOM skip and fix mtl parsing (assimp#6253)

* Add BOM skip and fix mtl parsing
* Remove old code
* Fix assimp#5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>

* Clone meshlab/tinyusdz repos in default location (assimp#6239)

* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fix an invalid offsetof warning-as-error (assimp#6359)

The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).

* Add unit test for subdivision modifier on Blender importer (assimp#5345)

* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>

* Change strcpy to strncpy for format hint safety (assimp#6365)

* Update default material name handling (assimp#6366)

* Replace strcpy by strncpy

* Bugfix/fix sonarcube findings (assimp#6369)

* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>

* Update texture output format in AssxmlFileWriter (assimp#6372)

* Update texture output format in AssxmlFileWriter

* Collada: Fix overflow in CopyVertex (assimp#6374)

* Fix overflow in CopyVertex

* COB: fix validation for ascii header (assimp#6376)

* COB: fix validation for ascii header

* MD5: Fix face index allocation in MD5Parser (assimp#6380)

- Ensure face indices are properly allocated and resized.
- closes assimp#6379

* Removed unnecessary copy constructor declaration in aiVector3t (assimp#6384)

* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t

* Bump actions/upload-artifact from 4 to 5 (assimp#6383)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/download-artifact from 5 to 6 (assimp#6382)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Made the README more tidy & fix Build.md (assimp#6371)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio

* Fix out-of-range access cause of aiProcess_GenNormals : array size inconsistency of members of mesh after process (assimp#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>

* Fix Heap-buffer-overflow in Q3DImporter::InternReadFile (assimp#6370)

Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes assimp#6358

Co-authored-by: Kim Kulling <[email protected]>

* Revert "Refactoring: use using types (assimp#6266)" (assimp#6324)

* Revert "Refactoring: use using types (assimp#6266)"

* fix: write textures to folder of PBRT file (assimp#6099)

* fix: write textures to folder of PBRT file

* Refactor condition checks for empty vectors (assimp#6385)

* Refactor based on SonarCube.

* Fix sonarcube stuff (assimp#6387)

* Fix sonarcube stuff

* Update contact email for reporting vulnerabilities (assimp#6389)

* [PyAssimp] Create `pyproject.toml` (assimp#6378)

* Create pyproject.toml

* glTF2: Avoid lookups for generating IDs (assimp#6120)

* glTF2: Reduce lookups for generating IDs
- closes assimp#5661

* Refactor string checks and variable declarations (assimp#6392)

* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop

* Fix the doxygen documentation from public headers (assimp#6394)

* Add documentation comments to DeboneProcess.h

* Added static cast for conversion from uLong to unsigned int for compiler error (assimp#6393)

Co-authored-by: Kim Kulling <[email protected]>

* Reorganize code top prevent security warning. (assimp#6395)

* Reorganize code to prevent security warning.

* Fix linkage (assimp#6388)

* Fix linkage when all importers aren't part of the build.

* Update LineSplitter.h (assimp#6396)

* Added missing scene extras properties for glTF2Importer (assimp#6397)

* WiP. Passing USD prims along with render nodes to look for USD references. Save reference path to metaData['ref'] (assimp#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/checkout from 5 to 6 (assimp#6401)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Update Readme.md (assimp#6402)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py (assimp#6403)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp

* Fixed DXFHelper using float instead of ai_real (assimp#6404)

* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Pelle Johnsen <[email protected]>
Co-authored-by: AbdulRehman <[email protected]>
Co-authored-by: Steven French <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: umläute <[email protected]>
Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: fifth_light <[email protected]>
Co-authored-by: Luca Della Vedova <[email protected]>
Co-authored-by: Matt Penny <[email protected]>
Co-authored-by: Paul Bauriegel <[email protected]>
Co-authored-by: Steve M <[email protected]>
Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Sami Liedes <[email protected]>
Co-authored-by: Alexandre Avenel <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Co-authored-by: EddieBreeg <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sSsA01 <[email protected]>
Co-authored-by: Jan Grulich <[email protected]>
Co-authored-by: Jan Honsbrok <[email protected]>
Co-authored-by: thedestroyer4312 <[email protected]>
Co-authored-by: Jerome St-Louis <[email protected]>
Co-authored-by: John Curley <[email protected]>
Co-authored-by: Orleonn <[email protected]>
Co-authored-by: Gene Walters <[email protected]>
Co-authored-by: JakobPer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Global flag to mark a deviation from expected behaviour Export Bugs / Feature requests related to export. FBX Bugs related to the FBX format

Projects

Development

Successfully merging this pull request may close these issues.