copilot-swe-agent[bot]
1117aa7191
Add tinygltf_json.h: fast custom JSON parser with optional SIMD support
...
Co-authored-by: syoyo <18676+syoyo@users.noreply.github.com >
2026-03-17 15:49:46 +00:00
benyo-razer
fca5da1b37
Removing problematic using namespace in a header file
2026-03-02 12:21:07 +01:00
Nyall Dawson
1fac6234d9
Fix some 'use of auto that causes a copy' warnings
2025-10-31 08:44:42 +10:00
Nyall Dawson
bcd666fbd4
Fix some variable copied when could be moved warnings
2025-10-31 08:44:26 +10:00
Niels Eppenhof
7385235e29
Removed TINYGLTF_USE_CPP14 option since it is unused
2025-05-19 14:58:41 +02:00
Sammy Newhide
2ad433b68f
Revert 1b517f2 by adding default constructor for Accessor
2025-05-05 17:04:52 -07:00
Sammy Newhide
1b517f2b23
Remove explicit default constructor for Accessor
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-05 16:43:20 -07:00
Sammy Newhide
bd7255e095
Initialize Accessor::Sparse members to default values
2025-05-05 15:20:30 -07:00
ctrlaltf2
d530cd410b
Add bounds check to images loaded from bufferviews
2025-01-20 23:43:07 -05:00
Leonid
5e008af65d
Added NO_FS definition for std::ofstream usage
2024-12-30 03:12:20 +08:00
Daniel Borges
decfabd67e
Merge branch 'syoyo:release' into release
2024-08-08 10:25:11 +02:00
Thomas Gamper
fe3cfbe996
fixes #495
...
Fix issues that block custom image loaders and writers to deal with empty images
2024-07-23 11:45:54 +02:00
Daniel Borges
3b73caa8e8
fixed ParseAnimation loading animation's extensions into sampler instead of sample's extensions.
2024-07-19 12:34:16 +02:00
Thomas Gamper
fb58f88a4e
Properly clear the model before loading
2024-07-05 08:57:36 +02:00
danwillm
2e7ba45a6c
Make inverseBindMatrices optional
2024-07-01 18:31:00 +01:00
Syoyo Fujita
cf9767668a
bump minor version.
2024-06-28 21:30:43 +09:00
Thomas Gamper
38614763e9
fixes #487
...
Support image as_is flag in loading and saving
2024-06-28 12:17:38 +02:00
Thomas Gamper
3245906248
fixes #473
...
tiny_gltf.h - explicitly pass filesystem callbacks to image related functions
tester.cc - add respective test case, fix image uri test case
2024-06-25 15:12:30 +02:00
Sean Curtis
6482c08cf7
Remove asserts
2024-06-10 14:18:31 -07:00
Sean Curtis
e08df72575
Update typedefs of C-style function pointers to std::function
...
This allows for the callback to maintain their own state (without recourse
to globals).
In addition, added some incidental clean up:
- URICallback, passed by pointer, is now asserted to be non-null before
accessing.
- FSCallbacks are validated when they are set (in debug builds).
2024-06-06 07:45:01 -07:00
Syoyo Fujita
f03fe26579
Merge pull request #486 from pmcgvr/release
...
Fix stripping of slashes from paths
2024-05-24 02:49:22 +09:00
Patrick Mc Gartoll
1bdd404c04
Fix stripping of slashes from paths
2024-05-16 18:11:26 -07:00
Sandy
2191085580
msvc 32bit: Fix C4244 warning
...
On 32 bit msvc compilers with warnings on, there are C4244 warnings about from 'std::streamoff' to size_t to vector::size_type
2024-05-10 08:47:23 -04:00
jamesvert
e3f9a7d8b3
Resolve overload ambiguity in VS2015 (version 14.0)
2024-03-26 11:32:43 +00:00
jamesvert
f57d18ad74
Fix C4018 warnings in MSVC on WIN32
2024-03-26 11:06:16 +00:00
Syoyo Fujita
ed3d1ec2f5
Merge pull request #481 from jam3sward/fix-c4267-warnings-vs-win32
...
Fix C4267 warnings in Visual Studio on WIN32
2024-03-26 05:23:03 +09:00
James Ward
9b4e1eae9e
Fix C4267 warnings in Visual Studio on WIN32
2024-03-25 17:50:33 +00:00
Syoyo Fujita
cbc8e1bea6
Merge pull request #479 from The0Dev/fix_wopen_ronly
...
Added the pmode argument to _wopen to fix the access permission on MinGW
2024-03-26 02:36:27 +09:00
Thomas Gamper
b274b34972
tiny_gltf.h - register MSFT_lod with the model's used extensions
2024-03-25 17:00:41 +01:00
TheDev
22dfeab315
Added the pmode argument to _wopen to fix the access permission on MinGW
2024-03-25 18:21:20 +03:00
Thomas Gamper
f1bdf43e15
tiny_gltf.h - add/remove MSFT_extension as required
2024-02-05 16:50:46 +01:00
Thomas Gamper
a42263bdba
tiny_gltf.h - parse node and material lods
2024-02-05 15:42:49 +01:00
Syoyo Fujita
4fea26f6c8
Allow zero-sized BIN chunk. Fixes #440
2024-01-24 05:43:27 +09:00
rhiskey
8acf861db7
Update tiny_gltf.h
...
Removed `#undef`
and used the @syoyo method:
https://github.com/syoyo/tinygltf/pull/467#issuecomment-1838703699
2023-12-04 17:11:59 +03:00
rhiskey
03b3a31e02
Update tiny_gltf.h
...
Fixed `Windows.h` MINMAX error and reverted to original numeric limits of type `uint32_t`
2023-12-04 16:57:36 +03:00
rhiskey
30ec815748
Merge branch 'syoyo:release' into release
2023-12-04 16:55:16 +03:00
Syoyo Fujita
8387fdbd50
Fix possible nullptr dereferencing.
...
Add missing `return false`
2023-12-04 22:50:49 +09:00
rhiskey
1c6f6efafc
Update tiny_gltf.h
...
Fix max size of `header_and_json_size` limit.
In case of 4GB will check ` sizeof(uint64_t)` insted deprecated max
2023-12-04 14:21:06 +03:00
Thomas Gamper
3203e1985e
Fix #464
...
tinygltf.h - serialize empty scenes as empty json objects; tester.cc - ad respective test case, bring test cases in correct order, tag test case for light index with correct issue number and fix it to compare to deserialozed model
2023-11-23 15:14:46 +01:00
Thomas Gamper
afcfb57898
fix #457
...
tiny_gltf.h - access correct json object when serializing a light, this fixes an assert and causes us to serialze the light index properly; tester.cc - add respective testcase
2023-11-23 14:13:12 +01:00
Thomas Gamper
d4ea67cae1
fix #457
...
tiny_gltf.h - make sure to serialize null node as empty object; tester.cc - add respective test case
2023-11-23 11:59:18 +01:00
Thomas Gamper
1f42c963e6
fix #459
...
tiny_gltf.h - use member initialization
2023-11-22 15:59:13 +01:00
Thomas Gamper
fd6c7855e7
fix #459
...
tiny_gltf.h - properly initialise emissiveFactor; tests/tester.cc - add test case
2023-11-22 14:17:46 +01:00
haroonq
8098a9e8ed
Allow BufferView indices to be unspecified.
...
Allow BufferView indices for element array buffers to be unspecified to support some extensions.
Note that this is similar to how invalid array buffers are handled in order to support, for example, sparse morph targets.
2023-10-09 10:30:25 +00:00
Nyall Dawson
c35819f0b7
Fix incorrect component type shown in warning message
2023-09-12 08:46:14 +10:00
Syoyo Fujita
4b9cfc8c1e
Remove unused code. Fixes #454
2023-09-07 22:03:46 +09:00
Nyall Dawson
0067b4d941
Fix build with draco
2023-09-07 08:20:28 +10:00
Nyall Dawson
4d119d7268
Relax bin chunk end alignment check in permissive mode
2023-09-07 07:08:26 +10:00
Nyall Dawson
bbc1eaeecf
Fix msvc build -- STRICT is a msvc macro name
2023-09-07 06:28:37 +10:00
Nyall Dawson
5a7b8278cd
Fix warning when building without draco support
2023-09-03 09:04:56 +10:00