Kim Kulling
19108dff6a
Fix linkage ( #6388 )
...
* Fix linkage when all importers aren't part of the build.
2025-11-16 20:05:50 +01: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
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
4ee7b9d98d
Use unique pointer to fix possible leak ( #6104 )
2025-04-15 21:51:05 +02:00
krishty
88959b2be7
Fix Whitespace ( #6063 )
...
* Fix Whitespace
No functional changes. This commit removes trailing spaces, undesired line breaks, and formatting screwups.
* Remove more useless line breaks in license (500 out of 630 license copies do NOT use double line breaks here)
---------
Co-authored-by: Krishty <krishty@krishty.com >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-03-26 00:12:55 +01:00
Kim Kulling
45898eee55
Refactorings: glTF cleanups ( #6028 )
2025-03-05 21:37:47 +01:00
David Campos Rodríguez
1e44036c36
Prefix MTL textures with the MTL directory path ( #5928 )
...
* Prefix MTL textures with the MTL directory path.
Path to textures defined in MTL files are relative to the MTL
file rather than to the OBJ, so we need to prefix them with the
MTL file directory path.
* Adding test issue 2355
* Trying to fix for Windows when file has Linux path
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-01-15 10:03:32 +01:00
Kim Kulling
5fa7b8ceb9
Bugfix/cosmetic code cleanup ( #5947 )
...
* Refactorings: Code cleanups
* More cosmetic changes
---------
Co-authored-by: Kim Kulling <kim.kulling@draeger.com >
2025-01-07 23:32:50 +01:00
Sebastian Schäfer
2090508c34
Fix parsing of comments at the end of lines for tokens with variable number of elements. ( #5890 ) ( #5891 )
...
* Fix parsing of comments at the end of lines for tokens with variable number of elements. (#5890 )
* Fixed Quality Gate issues.
Reduced nesting of the break statements.
---------
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2024-12-17 18:17:02 +01:00
Kim Kulling
5f100a0984
Obj: fix nullptr access. ( #5894 )
2024-11-25 19:58:58 +01:00
Julian Knodt
48bd7c3e22
Check that mMaterials not null before access ( #5874 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2024-11-20 23:26:07 +01:00
Kim Kulling
9723b3554b
Obj: Fix Sonarcube findings ( #5873 )
...
* Obj: Fix Sonarcube findings
2024-11-11 13:06:51 +01:00
Kim Kulling
35e4f1bf64
Kimkulling/fix double precision tests ( #5660 )
...
* Make color single precision
* Fix the unittests for double precision
* Fix merge issues
* Fix issues with Vertex + Color4
* Fix vertex operator, some tests are still red.
2024-07-12 14:37:49 +02:00
Matthias Möller
0b19b7d73b
fixes potential memory leak on malformed obj file ( #5645 )
2024-06-29 19:20:10 +02:00
Kim Kulling
75a10fedd0
Replace duplicated trim ( #5613 )
2024-06-11 16:30:49 +02:00
Kim Kulling
4584719362
Update ObjFileParser.cpp ( #5598 )
...
Ensure not checking empty strings
2024-05-26 18:39:14 +02:00
Julian Knodt
39ce0c0456
Respect merge identical vertices in ObjExporter ( #5521 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2024-04-02 18:31:19 +02:00
Laura Hermanns
727774f181
Fix compilation for MSVC14. ( #5490 )
...
- std::min/max were not defined in StackAllocator.inl; Also added explicit template arguments to break macro expansion if Windows.h is included prior and NOMINMAX macro is not present.
- Made static_assert statements compatible with C++11 in ProcessHelper.cpp.
- Removed unused string_view include in ObjFileParser.cpp.
2024-03-11 09:09:23 +01:00
Kim Kulling
01231d0e60
Add 2024 to copyright infos ( #5475 )
2024-02-23 22:30:05 +01:00
Kim Kulling
c08e3b4abb
Add bounds checks to the parsing utilities. ( #5421 )
...
* Add bounds checks to the parsing utilities.
* Fix merge conflicts in ACLoader.
* Fix loaders
* Fix unittest of AC-Loader.
* Remove dead code.
* Md5Parser fixes
* Fix md5-parsing
* Fix Merge conflict
* Fix merge conflicts.
* Md5: Fix warning: missing return statement.
2024-01-30 14:32:41 +01:00
copycd
8648c2af45
fix mesh-name error.
2023-11-15 13:04:10 +01:00
Kim Kulling
8cf2d6e588
Refactoring: Some cleanups
2023-11-12 21:09:33 +01:00
Kim Kulling
0b0ec713f6
Fix empty mesh handling
2023-11-10 15:36:40 +01:00
Kim Kulling
f24224fdc5
Merge branch 'master' into SupportOBJSpecifiedOnlyAPartOfVertexColors
2023-06-27 13:44:31 +02:00
Kim Kulling
b1181b1086
Merge branch 'master' into 4508318827937792
2023-06-25 21:20:02 +02:00
emaame
22c8d97b54
Support OBJ specified only a part of vertex colors
...
The omitted vertex colors are treated as (0, 0, 0, 1).
e.g
v 0.0 0.0 0.0
v 0.0 0.0 1.0 0.0 0.0 0.0
v 0.0 1.0 0.0
v 1.0 0.0 0.0 1.0 0.6 0.3
v 1.0 1.0 0.0
2023-06-17 16:31:04 +09:00
Alex
646d3591b6
Fix memory leak
2023-06-14 07:40:21 +02:00
Alex
496a4bf156
Fix unknown write in Assimp::ObjFileMtlImporter::getFloatValue
2023-06-14 07:40:21 +02:00
Alex
d3506c24e7
Update ObjFileParser.cpp
2023-06-02 18:57:53 +02:00
Kim Kulling
e30823fb1d
Merge branch 'master' into 5781186265350144
2023-06-01 16:40:46 +02:00
Alex
4cc70cb73c
Optimize
2023-05-31 14:10:57 +00:00
Alex
54f5d01190
Fix Heap-buffer-overflow WRITE in Assimp::ObjFileImporter::createVertexArray
2023-05-31 11:37:15 +00:00
Alex
c3e69b5b82
Fix Heap-buffer-overflow READ in Assimp::ObjFileParser::getFace
2023-05-31 08:01:41 +00:00
Jackie9527
cec41f6dd5
Fix warning related to unreachable-code-break.
...
Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com >
2023-04-19 22:18:34 +08:00
Kim Kulling
aee4df9be8
Fix possible dereferencing of invalid pointer.
...
- closes https://github.com/assimp/assimp/issues/4918
2023-04-17 15:40:29 +02:00
Krishty
3d3e856925
Trim Trailing Whitespace
2023-01-16 09:12:35 +01:00
Kim Kulling
c3d15a3f51
Fix minor review findings.
2022-12-16 09:03:40 +01:00
sashashura
917352dd8b
Fixes Heap-buffer-overflow READ 1 in Assimp::ObjFileParser::getFace
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49274
2022-12-11 01:54:57 +01:00
Aaron Gokaslan
ccfb175460
Apply various clang-tidy checks for smartprs and modern C++ types
2022-11-08 11:03:55 -05:00
Kim Kulling
99e515fbfd
Fix:Fix possible nullptr dereferencing + refactorings.
2022-10-29 17:08:26 +02:00
HiMemX
4c9d270a5e
-Vertex export fix
2022-09-07 23:10:31 +02:00
Aaron Gokaslan
e93fa6699a
Manually fix up 100 more instances where it should be defaulted
2022-08-25 12:20:13 -04:00
Aaron Gokaslan
6fa21dcc6e
Explicitly default all empty dtors
2022-08-25 11:32:59 -04:00
Aaron Gokaslan
b176061c41
Remove extra space in emplace insertions
2022-08-23 11:46:30 -04:00
Aaron Gokaslan
27edb43600
Apply modernize-use-emplace clang-tidy rule
2022-08-23 11:41:49 -04:00
Turo Lamminen
90d1464405
Remove set but unused variables
2022-08-17 11:42:32 +03:00
Kim Kulling
eac0876c9b
Refactoring: Use correct prefix for attributes in ObjImport.
2022-07-31 20:54:58 +02:00
Kim Kulling
dddfb74902
Fix another mem-leak
2022-07-31 13:37:42 +02:00
Kim Kulling
c349035cd1
Fix face memleak.
2022-07-31 12:10:43 +02:00
Kim Kulling
85f86ec076
Revert using face as pod type
2022-07-30 21:52:33 +02:00