Rémi Verschelde
2e99d0b26f
glTF: Fix parsing image data with mimeType
undefined
...
The glTF 2.0 spec only makes `mimeType` mandatory for `bufferView` image data,
so the previous logic to handle URIs with base64-encoded images could fail if
`mimeType` is undefined.
The logic was documented and refactored to better handle the spec, notably:
- `uri` and `bufferView` are now mutually exclusive, and only the latter fails
if `mimeType` is undefined.
- `uri` with a file path will now respect the `mimeType` if defined, and thus
attempt loading the file with the specified format (even if its extension is
not the one expected for this format). So we can support bad extensions (PNG
data with `.jpg` extension) or custom ones (PNG data in `.img` file for
example).
- `uri` with base64 encoded data will infer MIME type from `data:image/png` or
`data:image/jpeg` if it was not documented in `mimeType` initially.
- `uri` with base64 encoded data, no `mimeType` and `application/octet-stream`
or `application/gltf-buffer` will fall back to trying both PNG and JPEG
loaders.
Fully fixes #33796 (and fixes up #42501 ).
2020-10-05 13:06:50 +02:00
David Sichma
7701889048
aabb change updates bounding box
...
spatial editor will now update the bounding box if aabb or transform
changes
2020-10-05 12:56:57 +02:00
Rémi Verschelde
3556bc48a1
Merge pull request #42439 from Xrayez/doc-gdscript-load-and-resloader-xref
...
Cross-reference GDScript `load` and `ResourceLoader.load` in classref
2020-10-04 20:48:07 +02:00
Rémi Verschelde
59e7a5a94f
Merge pull request #42561 from Faless/js/build_no_config
...
[HTML5] Scons now expects "emcc" to be in PATH.
2020-10-04 20:45:55 +02:00
Fabio Alessandrelli
7998745237
[HTML5] Scons now expects "emcc" to be in PATH.
...
No longer parse emscripten/emsdk config to detect emcc/node paths.
Use WhereIs to find "emcc" and "node", look for "node_modules" in "emcc"
path.
2020-10-04 14:26:44 +02:00
Rémi Verschelde
2033bacba4
Merge pull request #42550 from clayjohn/VULKAN-decal-srgb
...
Return proper texture view format for decals
2020-10-04 11:00:33 +02:00
Yuri Roubinsky
2374281f36
Merge pull request #42553 from Chaosus/vs_fix_typo
...
Fix typo in VisualShaderNodeSample3D::generate_code
2020-10-04 10:53:48 +03:00
Yuri Roubinsky
2d45f7ac87
Fix typo in VisualShaderNodeSample3D::generate_code
2020-10-04 10:34:58 +03:00
clayjohn
bde2f9b46b
Return proper texture view format for decals
2020-10-03 22:56:00 -07:00
Pablo Escobar
1300fc7307
Add METALLIC to light() built-ins
2020-10-04 04:16:16 +02:00
Rémi Verschelde
b5eea37fb0
Merge pull request #42518 from Duroxxigar/update-getter-and-setters
...
Updated getters and setters names for toplevel
2020-10-03 21:53:35 +02:00
Rémi Verschelde
70eb7fb226
Merge pull request #42539 from Chaosus/vs_fix_compute_textures
...
Fix default parameter in Texture visual shader nodes for sky/particles modes
2020-10-03 21:52:09 +02:00
Rémi Verschelde
ce51efc293
Merge pull request #42532 from madmiraal/fix-7920
...
Fix how Line2D obtains the other object's supports
2020-10-03 21:49:14 +02:00
Yuri Roubinsky
e3006d4064
Fix def parameter in Texture visual shader nodes for sky/particles modes
2020-10-03 22:20:45 +03:00
Rémi Verschelde
aa38a667d1
Merge pull request #42534 from Paulb23/color_region_crash_issue_42492
...
Switch from recursion to iterative for backfilling colour regions
2020-10-03 19:04:03 +02:00
Rémi Verschelde
fe3e475914
Merge pull request #42527 from aaronfranke/no-global-scr-class
...
Don't write global script class information if there is none
2020-10-03 18:34:09 +02:00
Rémi Verschelde
37a971965a
Merge pull request #42530 from madmiraal/fix-cut-and-paste-error
...
Remove reference to 3D shapes in RigidBody2D.xml contacts description.
2020-10-03 18:33:39 +02:00
Paulb23
ee4a1c99a7
Switch from recursion to iterative for backfilling colour regions
2020-10-03 14:58:55 +01:00
Marcel Admiraal
7e44682c03
Fix how Line2D obtains the other object's supports
...
Measure the distance from the line against the rotated object, not the
rotated line, when obtaining the object's supports against a line.
2020-10-03 12:59:34 +01:00
Marcel Admiraal
e7edbcedc9
Remove reference to 3D shapes in RigidBody2D.xml contacts description.
2020-10-03 10:38:52 +01:00
Aaron Franke
3163611f0c
Don't write global script class information if there is none
2020-10-03 04:36:07 -04:00
Duroxxigar
4834e14493
Updated getters and setters names for toplevel
2020-10-02 19:09:01 -04:00
Rémi Verschelde
9b1c9cef17
Merge pull request #42513 from madmiraal/fix-42494
...
Remove area or body from map before emitting signals.
2020-10-02 20:52:52 +02:00
Marcel Admiraal
2bb0427662
Remove area or body from map before emitting signals.
2020-10-02 17:03:09 +01:00
Rémi Verschelde
7879b0a6e5
Merge pull request #42511 from InfiniteAnts/update-ninepatchrect-class-reference
...
Updated NinePatchRect's patch margin descriptions
2020-10-02 17:32:45 +02:00
Michael Auderer
6d510453e5
initialize refocus_over_tile to false
...
Co-authored-by: Tomek <kobewi4e@gmail.com>
2020-10-02 10:42:12 -04:00
Anant Ahuja
00d9432f44
Updated NinePatchRect's patch margin descriptions
2020-10-02 09:41:00 -05:00
Rémi Verschelde
1ff3e60ee0
Merge pull request #42505 from Faless/js/4.0_audio_threads
...
[HTML5] Move audio processing to thread when threads are enabled.
2020-10-02 16:25:10 +02:00
Rémi Verschelde
0d07a935e9
Merge pull request #42503 from naithar/feature/ios-cleanup-arc
...
[4.0] [iOS] Switch to ARC. Refactoring and cleanup.
2020-10-02 15:18:03 +02:00
Fabio Alessandrelli
a618535628
[HTML5] Run Audio process in thread when available
...
This should fix some of the audio stuttering issues when the HTML5
export is compiled with threads support.
The API should be ported to AudioWorklet to (hopefully) be perfect.
That though, cannot be backported to 3.2 due to extra restriction of
AudioWorklet (which only runs in SecureContext, and needs a polyfill for
Safari).
2020-10-02 14:28:20 +02:00
Sergey Minakov
6ee74de9ee
iOS: Native video refactoring
...
Moved native video handling to separate view.
2020-10-02 15:05:01 +03:00
Sergey Minakov
3cd1cb53a0
iOS: Refactoring
...
Enabled ARC for iOS.
Weakify/Strongify macros for objc blocks.
Removed old version checks.
Specific types for ObjC++ modules to exclude unneeded bridging.
Separate DeviceMetrics class for device specific data.
Replaced old/deprecated functionality.
2020-10-02 15:04:51 +03:00
Fabio Alessandrelli
80b34ccee1
Add extra suffix for HTML5 thread builds.
2020-10-02 13:35:03 +02:00
Fabio Alessandrelli
5261e5df85
Add COOP/COEP headers to HTML5 "run" server.
...
This allow the page to be considered a SecureContext if the address is
localhost (127.0.0.1/::1) and let Firefox (and future Chrome versions)
enable extra features needed for the HTML5 threaded export.
2020-10-02 13:35:03 +02:00
Rémi Verschelde
e2e20ae41b
Merge pull request #42500 from madmiraal/fix-42462
...
Check entire basis column for zero size when unscaling Bullet basis.
2020-10-02 12:56:53 +02:00
Rémi Verschelde
2d6e7df5c2
Merge pull request #42501 from akien-mga/glTF-fix-parsing-base64-data
...
glTF: Fix parsing buffer data with application/gltf-buffer and image/* MIME types
2020-10-02 12:48:45 +02:00
Rémi Verschelde
34a50310ad
glTF: Fix parsing buffer data with application/gltf-buffer and image/* MIME types
...
See https://github.com/KhronosGroup/glTF/issues/944 for context on the
application/gltf-buffer MIME type.
The glTF 2.0 spec supports `image/jpeg` and `image/png` which can also be
base64-encoded in buffer URIs.
Fixes #33796 .
2020-10-02 12:23:10 +02:00
Marcel Admiraal
5278e07095
Check entire basis column for zero size when unscaling Bullet basis.
2020-10-02 10:30:08 +01:00
Rémi Verschelde
19f72beebb
Merge pull request #42451 from Duroxxigar/rename-toplevel
...
Renamed toplevel to be top_level
2020-10-02 10:57:23 +02:00
Rémi Verschelde
a1c27228ae
Merge pull request #42480 from ssw99/sprintf-function-bug-fix
...
Fix extra padding for numbers with signs
2020-10-02 10:26:15 +02:00
Rémi Verschelde
6189ff8608
Merge pull request #42493 from akien-mga/configuration-warnings-fixup
...
Better validate CollisionShape3D config. warning after #38743
2020-10-02 10:01:23 +02:00
Rémi Verschelde
7b18a7143b
Better validate CollisionShape3D config. warning after #38743
...
Relates to #42479 , though I don't think it would crash in the master version.
2020-10-02 09:41:55 +02:00
Rémi Verschelde
48afdfddb5
Merge pull request #42486 from aaronfranke/doc-demo-links
...
Link to demos from within the class reference
2020-10-02 09:16:23 +02:00
Yuri Roubinsky
76c308f47b
Merge pull request #42490 from Chaosus/vs_fix_func
...
Fix VisualShaderNode::set_output_port_connected
2020-10-02 09:24:36 +03:00
Yuri Roubinsky
dc713e149f
Fix VisualShaderNode::set_output_port_connected
2020-10-02 09:06:13 +03:00
Michael Auderer
70a4cd1afe
Reset TileMapEditor painting on application refocus
...
Treats application unfocus as a mouse release for
TOOL_PAINTING, by finishing the undo state and
resetting the tool. Also sets a flag to prevent extra
lines from being drawn when the application is refocused.
fixes #42398 , fixes #24970
2020-10-02 01:48:14 -04:00
Aaron Franke
439be614f4
Link to demos from within the class reference
2020-10-01 23:57:21 -04:00
Serhat
9f2cdfea82
Fixed padding bug of sprintf function
2020-10-02 00:25:42 +03:00
Rémi Verschelde
5e726d8d20
Merge pull request #42477 from bruvzg/macos_dpi
...
[4.0] Fix `screen_get_dpi` on macOS.
2020-10-01 23:03:09 +02:00
bruvzg
b0152dcac5
Fix screen_get_dpi
on macOS for non fractional display scales and restore documentation.
2020-10-01 22:52:20 +03:00