Kim Kulling
07f24a7e93
Update glTF2Exporter.cpp
2025-11-16 17:19:49 +01:00
Kim Kulling
122884557e
Update glTF2AssetWriter.h
2025-11-16 17:19:29 +01:00
Kim Kulling
18d84b5d20
Update glTFAsset.h
2025-11-16 17:18:45 +01:00
Kim Kulling
2b3dfb9164
Merge branch 'master' into bugfix/fix_linkage_no_importers_issue-5971
2025-11-16 17:07:58 +01:00
Kim Kulling
05a4fb57f1
Reorganize code top prevent security warning. ( #6395 )
...
* Reorganize code to prevent security warning.
2025-11-15 12:16:56 +01:00
Kim Kulling
1cc7f2ba74
Fix the doxygen documentation from public headers ( #6394 )
...
* Add documentation comments to DeboneProcess.h
2025-11-14 22:05:08 +01:00
Kim Kulling
e98ec7b2d3
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
2025-11-14 00:18:35 +01:00
Jerome St-Louis
0be7cdd6db
glTF2: Avoid lookups for generating IDs ( #6120 )
...
* glTF2: Reduce lookups for generating IDs
- closes https://github.com/assimp/assimp/issues/5661
2025-11-13 10:50:26 +01:00
Kim Kulling
9143651e2e
Remove commented out GLTF importer guard
2025-11-11 15:36:17 +01:00
Kim Kulling
bec3e1a089
Refactor glTFCommon namespace structure
...
Refactor namespace declarations for consistency.
2025-11-11 15:35:25 +01:00
Kim Kulling
0e6af01232
Remove unused preprocessor directives in glTF2Exporter
2025-11-11 15:33:42 +01:00
Kim Kulling
c54522f3c1
Merge branch 'master' into bugfix/fix_linkage_no_importers_issue-5971
2025-11-11 09:32:27 +01:00
Kim Kulling
34cda45471
Fix sonarcube stuff ( #6387 )
...
* Fix sonarcube stuff
2025-11-10 23:29:03 +01:00
Kim Kulling
5e084cd1e8
Fix linkage
2025-11-10 21:36:40 +01:00
Kim Kulling
a4b8943533
Refactor condition checks for empty vectors ( #6385 )
...
* Refactor based on SonarCube.
2025-11-07 16:07:39 +01:00
Jan Honsbrok
0996221017
fix: write textures to folder of PBRT file ( #6099 )
...
* fix: write textures to folder of PBRT file
2025-11-05 08:24:41 +01:00
Luca Della Vedova
672594c230
Revert "Refactoring: use using types ( #6266 )" ( #6324 )
...
* Revert "Refactoring: use using types (#6266 )"
2025-11-04 15:10:45 +01:00
Jan Grulich
0978918f71
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 <kimkulling@users.noreply.github.com >
2025-11-04 10:09:13 +01:00
sSsA01
8e35cb1a9f
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 <kimkulling@users.noreply.github.com >
2025-11-01 21:15:17 +01:00
Kim Kulling
e778c84cd6
MD5: Fix face index allocation in MD5Parser ( #6380 )
...
- Ensure face indices are properly allocated and resized.
- closes https://github.com/assimp/assimp/issues/6379
2025-10-24 10:15:01 +02:00
Kim Kulling
5f7c06a71e
COB: fix validation for ascii header ( #6376 )
...
* COB: fix validation for ascii header
2025-10-23 22:44:54 +02:00
Kim Kulling
7dcf6a8984
Collada: Fix overflow in CopyVertex ( #6374 )
...
* Fix overflow in CopyVertex
2025-10-19 23:13:59 +02:00
Kim Kulling
cc6ab1408f
Update texture output format in AssxmlFileWriter ( #6372 )
...
* Update texture output format in AssxmlFileWriter
2025-10-17 11:24:38 +02:00
Kim Kulling
f544f9c217
Bugfix/fix sonarcube findings ( #6369 )
...
* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <kim.kulling@draeger.com >
2025-10-14 00:01:50 +02:00
Kim Kulling
194da5b2fd
Update default material name handling ( #6366 )
...
* Replace strcpy by strncpy
2025-10-07 20:25:24 +02:00
Kim Kulling
f28a96121d
Change strcpy to strncpy for format hint safety ( #6365 )
2025-10-02 16:31:00 +02:00
Sami Liedes
1894bfb22c
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).
2025-09-28 20:30:59 +02:00
Steve M
b8133b04c7
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 <info@tellypresence.com >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-09-23 11:34:13 +02:00
Paul Bauriegel
709fe3c3d0
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 <kimkulling@users.noreply.github.com >
2025-09-22 11:20:24 +02:00
Matt Penny
489c8d565b
Restore merging of near-identical vertices for JoinIdenticalVertices ( #6278 )
...
* Restore merging of near-identical vertices for JoinIdenticalVertices
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-09-21 10:57:17 +02:00
Luca Della Vedova
0581ed5f11
Added tangent handedness to glTF export ( #6322 )
...
* Added tangent handedness to glTF export
2025-09-18 14:10:41 +02:00
Vitaly Ovchinnikov
69f8eb21fd
fix large glb reading by providing a proper helper for reading size_t type ( #6307 )
...
Co-authored-by: Vitaly Ovchinnikov <v@ovch.ru >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-09-09 14:27:17 +02:00
Kim Kulling
72b9939b9f
Add null check for aiNode in AddNode method ( #6348 )
...
- Added null check for node in AddNode function.
- closes https://github.com/assimp/assimp/issues/6347
2025-09-09 14:10:07 +02:00
Kim Kulling
8ef3838beb
FBX: Fix offset calculation by adding cursor check ( #6337 )
...
- closes https://github.com/assimp/assimp/issues/6336
2025-08-28 11:48:38 +02:00
Pranav P
f7bbf6dc15
Fix endiannes issues regarding floats on s390x ( #6276 ) ( #6277 )
...
* Fix endiannes issues regarding floats on s390x (#6276 )
* Fix CI Warnings
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-08-26 15:34:33 +02:00
Dongge Liu
4c42db1805
Fixed a heap-use-after-free in SortByPTypeProcess. ( #6326 )
...
The process incorrectly deleted original meshes from the scene when cleaning up after an error if those meshes had been added to its output list (outMeshes). The fix ensures proper ownership transfer by nullifying the original mesh pointer in the scene (pScene->mMeshes[i] = nullptr;) when the mesh is moved to outMeshes. This prevents the scene destructor from attempting to delete the mesh again later, while allowing the error cleanup path in SortByPTypeProcess to correctly delete all meshes it owns (both newly created and transferred originals).
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-08-21 09:31:15 +02:00
Dongge Liu
36b004e286
Fixed a heap-buffer-overflow in the Half-Life 1 MDL loader. ( #6321 )
...
The loader attempted to read the MDL header without verifying if the input buffer was large enough.
Added a check in MDLImporter::InternReadFile_HL1 to ensure the buffer size is sufficient before proceeding with loading.
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-08-18 09:29:45 +03:00
Kyungjoon Ko
6d7ea78792
Fix SEGV write in Assimp::SortByPTypeProcess::Execute ( #6318 )
...
* Fix OOB Write in Assimp::SortByPTypeProcess::Execute
2025-08-10 11:45:30 +03:00
sSsA01
8355e0c4bc
Fix to fail in the function fast_atoreal_move when the flag ASSIMP_DOUBLE_PRESICION is enabled ( #6250 )
...
* Refix export fbx PolygonVertexIndex
* Fix the function ColladaParser::ReadEffectColor when the flag ASSIMP_DOUBLE_PRESICION is enabled
* Fix the static function ReadLight in ColladaParser when the flag ASSIMP_DOUBLE_PRESICION is enabled
* Refactor of the call of the function fast_atoreal_move to the member of aiColor3D
* Fix the call of the function fast_atoreal_move when the flag ASSIMP_DOUBLE_PRESICION is enabled and and refactor
* Fix the call of the function fast_atoreal_move when the flag ASSIMP_DOUBLE_PRESICION is enabled
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-07-29 14:19:50 +02:00
DIGITAL IMAGE DESIGN
6fa9d09a97
AC: Support Double-Sided Faces ( #6252 )
...
* AC: Support Double-Sided Faces
The AC format marks double-sided SURF elements with the 0x20 flag, which Assimp ignored. This commit adds support for double-sided faces.
On encountering a double-sided face via the flag mentioned above, the front face is generated as usual but is then duplicated. The winding order of the duplicate is flipped to form a back face. Vertices are duplicated too so that back faces work correctly with normal vector generation and face smoothing.
* Add test file
* Simplify test case
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-07-29 13:09:30 +02:00
Kim Kulling
9f4e7c6d8d
Refactoring: use using types ( #6266 )
...
* Refactoring: use using types
---------
Co-authored-by: Kim Kulling <kim.kulling@draeger.com >
2025-07-28 17:00:45 +02:00
Kim Kulling
59bc03d931
X3D: Fix invalid vector::back usage ( #6283 )
...
* X3D: Fix invalid vector::back usage
2025-07-25 15:01:16 +02:00
Kim Kulling
a79dc358cf
Add windows clang to CI ( #5537 )
...
- Add windows clang build step
- Closes https://github.com/assimp/assimp/issues/5519
Co-authored-by: Kim Kulling <kim.kulling@draeger.com >
Co-authored-by: Kim Kulling <kullingk@LDED5178.corp.draeger.global >
2025-07-16 16:43:20 +02:00
sSsA01
4c61ca3af5
Refix export fbx PolygonVertexIndex ( #6240 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-06-27 11:30:04 +02:00
HandsomeXi
4b6cc8c28a
bugfix: Fixed the memory leak when texture transforming ( #6236 ) ( #6237 )
...
* bugfix: Fixed the memory leak when texture transforming (#6236 )
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-06-26 10:53:08 +02:00
Kim Kulling
d99f9bd2f7
Refactoring: Add nupptr-checks ( #6241 )
2025-06-26 00:09:02 +02:00
NSG
ad6e8e210a
Fix: export fbx wrong to_ktime in FBXExporter.cpp ( #6105 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-06-17 08:23:21 +02:00
Kim Kulling
fb375dd8c0
Prepare 6.0.2 ( #6231 )
2025-06-08 21:50:39 +02:00
sSsA01
a95addfc4a
Fix the function "aiGetMaterialColor" when the flag ASSIMP_DOUBLE_PRECISION is enabled. ( #6090 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-06-08 14:25:47 +02:00
Vinz Spring
357b5baabb
fix-CVE-2025-3158: closes #6023 Fixes CVE-2025-3158: Heap-based Buffer Overflow in Assimp::LWO::AnimResolver::UpdateAnimRangeSetup ( #6222 )
...
- changed loop-condition to reflect the fact that m must be smaller than n
Co-authored-by: Vinz Spring <vinzs@amazon.de >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-06-08 14:02:04 +02:00