Syoyo Fujita
8387fdbd50
Fix possible nullptr dereferencing.
...
Add missing `return false`
2023-12-04 22:50:49 +09:00
rhiskey
32198f757f
Update stb_image_write.h
...
Securing printing output via `sprintf_s` instead `sprintf`.
2023-12-04 14:22:14 +03: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
Syoyo Fujita
d32f1fb2fb
Merge pull request #465 from ptc-tgamper/bug/issue464
...
Fix Empty scenes are wrongly serialized as null Issue #464
2023-11-23 23:28:39 +09: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
Syoyo Fujita
211f86e3f5
Merge pull request #463 from ptc-tgamper/bug/issue458
...
Fix Light reference in the node issue #457
2023-11-23 22:19:05 +09: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
Syoyo Fujita
b6e2398e1d
Merge pull request #462 from ptc-tgamper/bug/issue457
...
Fix Empty nodes are wrongly serialized as null Issue #457
2023-11-23 21:52:47 +09: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
Syoyo Fujita
f32475c952
Merge pull request #460 from ptc-tgamper/bug/issue459
...
Fix Default constructed Material has wrong emissiveFactor #459
2023-11-23 02:21:28 +09: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
Syoyo Fujita
5e8a7fd602
Merge pull request #456 from haroonq/patch-1
...
Allow BufferView indices to be unspecified.
v2.8.18
2023-10-10 21:24:51 +09: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
Syoyo Fujita
e0b393c695
Merge pull request #455 from nyalldawson/fix_message
...
Fix incorrect component type shown in warning message
v2.8.17
2023-09-12 20:28:35 +09: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
v2.8.16
2023-09-07 22:03:46 +09:00
Syoyo Fujita
c40c9c223e
Merge pull request #453 from nyalldawson/fix_draco
...
Fix build with draco
2023-09-07 21:35:55 +09:00
Nyall Dawson
0067b4d941
Fix build with draco
2023-09-07 08:20:28 +10:00
Syoyo Fujita
35735bb686
Merge pull request #452 from nyalldawson/permissive_align
...
Relax bin chunk end alignment check in permissive mode
2023-09-07 06:46:11 +09:00
Nyall Dawson
4d119d7268
Relax bin chunk end alignment check in permissive mode
2023-09-07 07:08:26 +10:00
Syoyo Fujita
fe6a18269f
Merge pull request #450 from nyalldawson/fix_win
...
Fix msvc build -- STRICT is a msvc macro name
2023-09-07 05:59:12 +09:00
Nyall Dawson
bbc1eaeecf
Fix msvc build -- STRICT is a msvc macro name
2023-09-07 06:28:37 +10:00
Syoyo Fujita
62cc92566e
Merge pull request #451 from nyalldawson/mingw
...
Add mingw msys2 workflow
2023-09-06 20:55:14 +09:00
Nyall Dawson
b2aca1ecef
Add mingw msys2 workflow
2023-09-06 08:26:34 +10:00
Nyall Dawson
5a7b8278cd
Fix warning when building without draco support
2023-09-03 09:04:56 +10:00
Syoyo Fujita
3d445cc65d
Merge pull request #449 from emimvi/consistent_byteOffset
...
Always use size_t for byte offsets
2023-09-03 02:20:35 +09:00
Syoyo Fujita
51530ee500
Merge pull request #447 from nyalldawson/draco_fix
...
Handle the situation where the recorded component type does not match the required type for the actual number of stored points
2023-09-03 02:17:12 +09:00
emimvi
759976e087
Consistently use size_t for all byteOffset's
2023-09-02 09:39:53 +02:00
Nyall Dawson
6e3d666cf3
When in permissive mode, handle the situation where the
...
recorded component type does not match the required type
for the actual number of stored points
This situation arises when decoding certain malformed files, most
notably it's seen in glb tiles from Google Earth's 3d tileset.
It's a port of the workaround used by Cesium native here:
d9172461e2/CesiumGltfReader/src/decodeDraco.cpp (L101)
2023-09-02 10:16:04 +10:00
emimvi
bf7120f8a0
Serialize byteOffset as size_t, avoiding cast
...
Fixes silently writing an overflowed int in the output file.
2023-09-02 00:11:41 +02:00
Syoyo Fujita
acf1e8a2b1
Merge pull request #445 from nyalldawson/permissive
...
Be tolerant when encountering emissiveFactor with array length 4
v2.8.15
2023-09-01 23:10:29 +09:00
Nyall Dawson
8c85d5e387
Add method to set parsing strictness
2023-08-28 12:56:09 +10:00
Nyall Dawson
02e8b8da1e
Raise a warning when encountering emissiveFactor with array length
...
of 4 instead of aborting the model loading
2023-08-28 12:46:44 +10:00
Syoyo Fujita
ddc76f7724
Merge pull request #446 from nyalldawson/fix_error
...
Fix misleading error message
2023-08-24 22:11:50 +09:00
Nyall Dawson
8e9aadf569
Fix misleading error message
...
Avoids a confusing "Must have 4 bytes or more bytes, but got 4."
error.
2023-08-24 11:48:09 +10:00
Syoyo Fujita
0eaa23fbfc
Merge pull request #442 from turanszkij/release-1
...
added project link to readme
2023-08-07 18:32:30 +09:00
Turánszki János
2a5dc852cc
added project link to readme
2023-08-07 06:59:35 +02:00
Syoyo Fujita
f51243da48
Merge pull request #433 from dyollb/modernize
...
Modernize
v2.8.14
2023-07-11 19:43:53 +09:00
Syoyo Fujita
a080377e6f
Merge pull request #436 from dimitri-tdg/bugfix_extensions_primitive
...
Fix issue when serializing extensions of a primitive
2023-07-10 23:30:40 +09:00
KUDELSKI Dimitri
69d75573f5
Fix issue when serializing extensions of a primitive
2023-07-10 15:13:09 +02:00
Syoyo Fujita
aaf631c984
Merge pull request #435 from RE-Kovalev/release
...
MinGW _wfopen_s fix
2023-07-05 18:41:22 +09:00
R.E. Kovalev
112e3537ff
MinGW _wfopen_s fix
2023-07-05 09:11:57 +03:00
Bryn Lloyd
cb6a707014
cppcoreguidelines-prefer-member-initializer
2023-06-21 22:30:14 +02:00
Bryn Lloyd
3e98ac4564
modernize-use-equals-default
2023-06-21 22:15:49 +02:00
Bryn Lloyd
c704d73bd0
readability-redundant-string-init
2023-06-21 18:42:24 +02:00
Bryn Lloyd
a64f4b4442
modernize-use-default-member-init
2023-06-21 18:40:18 +02:00
Bryn Lloyd
85b4322ade
minor cleanup of cmakelists
2023-06-21 18:26:43 +02:00
Syoyo Fujita
7a570c88d9
Initialize light
and emitter
members. Fixes #431
...
Include `light` and `emitter` comparison in Node::operator==()
v2.8.13
2023-06-19 21:52:13 +09:00
Syoyo Fujita
e12e0a9392
Merge pull request #429 from AdamFull/release
...
KHR_audio parsing support (ASCII only)
v2.8.12
2023-06-13 21:40:45 +09:00