Commit Graph

34301 Commits

Author SHA1 Message Date
5f098d6db6 Document that File.open_compressed() can only open files saved by Godot 2021-05-01 01:24:01 +02:00
4a7679e4dd Merge pull request #48242 from reduz/particle-trails
Implement Particle Trails
2021-04-30 23:52:15 +02:00
d12e0b6ef1 Merge pull request #48336 from bruvzg/fix_mixed_url_decode
Fix `url_decode` with mixed percent-encoding/Unicode strings.
2021-04-30 23:02:51 +02:00
1202117e8f Merge pull request #48335 from pycbouh/editor-control-theme-autocompletion
Fix autocompletion for `Control`'s `Theme` properties
2021-04-30 23:00:24 +02:00
90056460ad Implement Particle Trails
-Enable the trails and set the length in seconds
-Provide a mesh with a skeleton and a skin
-Or, alternatively use one of the built-in TubeTrailMesh/RibbonTrailMesh
-Works deterministically
-Fixed particle collisions (were broken)
-Not working in 2D yet (that will happen next)
2021-04-30 17:38:02 -03:00
b6a21f85a7 Fix url_decode with mixed percent-encoding/Unicode strings. Treat Unix drive names as UTF-8 encoded. 2021-04-30 21:22:39 +03:00
0ad03ba052 Merge pull request #48333 from MaxStgs/master
Add WebSocketMultiplayerPeer _incoming_packets check bound
2021-04-30 20:12:35 +02:00
980cf73bbc Fix autocompletion for Control's Theme properties 2021-04-30 20:47:01 +03:00
05ad08941b Add WebSocketMultiplayerPeer _incoming_packets check bound 2021-04-30 21:00:52 +05:00
87e8e71190 Merge pull request #34823 from qarmin/collision_mask_layer
Prevent setting too big or too small Collision Mask and Layer
2021-04-30 17:58:06 +02:00
efcb097674 Prevent setting too big or too small Collision Mask and Layer 2021-04-30 17:19:04 +02:00
66f696c2c1 Merge pull request #48305 from Calinou/doc-call-group-deferred
Document that `SceneTree.call_group()` is deferred
2021-04-30 12:08:46 +02:00
a91effc791 Merge pull request #48323 from naithar/fix/ios-virtual-keyboard-range
[iOS] Nonnegative start index for virtual keyboard range
2021-04-30 11:47:49 +02:00
275772818d [iOS] Nonnegative start index for virtual keyboard range 2021-04-30 11:44:32 +03:00
d578d82e57 Merge pull request #48319 from Faless/js/4.x_modern_emcc
[HTML5] Fix builds with recent emscripten versions
2021-04-30 08:42:32 +02:00
8e2c237008 [HTML5] Fix builds with recent emscripten versions
Library suffix should be `.a`, the `EXTRA_` in
`EXTRA_EXPORTED_RUNTIME_METHODS` is deprecated.
2021-04-30 08:01:26 +02:00
7516ff3805 Document that SceneTree.call_group() is deferred 2021-04-29 23:01:41 +02:00
f0e6a02108 Sync RasterizerDummy. 2021-04-29 16:46:10 +02:00
28f56e2cbf Merge pull request #48272 from Calinou/doc-standardmaterial3d-rim-unshaded
Document that clearcoat/rim lighting is not visible on unshaded materials
2021-04-29 13:36:40 +02:00
cab5064f20 doc: Sync classref with current source
And typo fix from https://github.com/godotengine/godot-docs/pull/4882.
2021-04-29 12:11:40 +02:00
aac354709d Merge pull request #48292 from akien-mga/stay-modern
Replace remaining uses of `NULL` with `nullptr`
2021-04-29 12:11:27 +02:00
5b16020846 Replace remaining uses of NULL with nullptr
Follow-up to #38736 (these uses were likely added after this PR was merged).
2021-04-29 11:53:27 +02:00
c11502711e Merge pull request #48277 from thebestnom/fix/generateDevTemplate
[Android] fix generateDevTemplate
2021-04-29 11:12:06 +02:00
418fe155f9 Merge pull request #48269 from akien-mga/remove-largetexture
Remove obsolete LargeTexture, it's no longer useful since 3.x
2021-04-29 09:45:06 +02:00
47bf216af9 [Android] fix generateDevTemplate 2021-04-28 21:59:42 +03:00
690c00d522 Merge pull request #48235 from Faless/feature/network-local-port-enet-salvaged
[Net] Implement NetworkedMultiplayerENet.get_local_port
2021-04-28 19:04:09 +02:00
126ea92a64 Document that clearcoat/rim lighting is not visible on unshaded materials 2021-04-28 17:38:44 +02:00
7e0a42a673 Merge pull request #46688 from QbieShay/fix-particle-rotate-y-4
Fixed rotate_y property of particle shaders
2021-04-28 17:09:17 +02:00
cd22a2be2f Implement NetworkedMultiplayerENet.get_local_port
Allows retrieving the local port to which the peer is bound.
2021-04-28 16:53:13 +02:00
9e9ac9f6ad Merge pull request #46476 from DarknessCatt/master
Add fill method to Arrays and PackedArrays
2021-04-28 16:52:31 +02:00
f505a26798 Merge pull request #47454 from vnen/gdscript-lambda 2021-04-28 16:44:59 +02:00
9ed0f0384c GDScript: Fix crash when base of an attribute is invalid
In attribute expressions (`a.b`) it's possible that the base has an
incorrect syntax and thus become a nullptr expression in the tree. This
commit add the check for this case to fail gracefully instead of
crashing.
2021-04-28 11:09:40 -03:00
c201b212c7 GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
4ea7363304 Merge pull request #48268 from dsnopek/issue-48178
Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later
2021-04-28 16:02:58 +02:00
3155368093 GDScript: Add lambdas to the type analyzer
- Lambdas are always callables (no specific signature match).
- Captures from the current context are evaluated.
2021-04-28 10:56:16 -03:00
c6e66a43b0 GDScript: Add lambda syntax parsing
Lambda syntax is the same as a the function syntax (using the same
`func` keyword) except that the name is optional and it can be embedded
anywhere an expression is expected. E.g.:

    func _ready():
        var my_lambda = func(x):
            print(x)
        my_lambda.call("hello")
2021-04-28 10:56:16 -03:00
0e93a1df79 Remove obsolete LargeTexture, it's no longer useful since 3.x
It existed in early Godot releases to allow working around hardware limitations
on max texture sizes (e.g. hardware limits of 1024x1024 pixels).

Nowadays the max texture size supported natively by Godot is 16384x16384, and
even low end mobile hardware should support at least 4096x4096.

The LargeTexture implementation is basically just an array with offsets, sizes
and textures and should be easy to replicate with a custom Texture resource if
needed - solving most of its bugs on the way as the implementation removed here
has various unimplemented or incomplete methods.
2021-04-28 15:51:55 +02:00
b77925d246 Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later 2021-04-28 08:27:51 -05:00
f879a08a62 Merge pull request #37064 from GNSS-Stylist/Face3_area_calc_fix_clean
Fix area calculation of Face3
2021-04-28 12:03:39 +02:00
a165eed73b Fix area calculation of Face3
There seemed to be a bug in area calculation in Face3::get_area()-function. It returned the area of "imaginary" parallelogram instead of the triangle. Therefore the area returned was twice the real area. This manifested itself when using a hydro module for godot ( https://gitlab.com/ringtechsolutions/godot-tools/hydro/hydro ) causing the buoyancy to be two times the expected value.

"Reference": http://www.maths.usyd.edu.au/u/MOW/vectors/vectors-11/v-11-7.html
2021-04-28 11:09:41 +02:00
35a8693e6a Raycast: Fix use of removed copymem after #48239 2021-04-28 11:09:20 +02:00
305b2a15bf Merge pull request #48239 from akien-mga/goodbye-copymem
Core: Drop custom `copymem`/`zeromem` defines
2021-04-28 11:04:05 +02:00
7bca90769c Merge pull request #47595 from EricEzaM/PR/fix-lineedit-ctrl-backspace
Fixed issues with LineEdit Delete Word & Backspace Word.
2021-04-28 09:59:47 +02:00
5c5cfaabf2 Merge pull request #42607 from Dragoncraft89/type_checks
Raise error if Resource is of wrong type as function argument
2021-04-28 09:33:22 +02:00
de5387ab82 Fixed issues with LineEdit Delete Word & Backspace Word.
Backspace word was deleting all text before the cursor, and delete word was no updating until another action was performed on the LineEdit (in order to update it)
2021-04-28 17:15:28 +10:00
1c2766e240 Merge pull request #48245 from madmiraal/fix-24111
Update CSGMesh3D's documentation to explain how vertex normals are used
2021-04-27 23:04:59 +02:00
a2c419bdc9 Raise error if Resource is of wrong type as function argument 2021-04-27 21:24:08 +02:00
0582cefcbb Merge pull request #48241 from akien-mga/tabs-panel-style-unused
Tabs: Remove unused 'panel' stylebox from default theme
2021-04-27 19:33:40 +02:00
c2f6a73e4e Update CSGMesh3D's documentation to explain how vertex normals are used 2021-04-27 18:32:25 +01:00
95cfce661b Merge pull request #48050 from JFonS/occlusion_culling 2021-04-27 19:07:12 +02:00