Sergey Minakov
275772818d
[iOS] Nonnegative start index for virtual keyboard range
2021-04-30 11:44:32 +03:00
Fabio Alessandrelli
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
Fabio Alessandrelli
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
PouleyKetchoupp
7352a4c0d9
Expose get_debug_mesh in Shape3D to scripting API
...
Can be useful for custom drawing of physics shapes without having to add
a collision object node to the tree.
2021-04-29 18:18:39 -07:00
Hugo Locurcio
7516ff3805
Document that SceneTree.call_group()
is deferred
2021-04-29 23:01:41 +02:00
Fabio Alessandrelli
f0e6a02108
Sync RasterizerDummy.
2021-04-29 16:46:10 +02:00
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
c11502711e
Merge pull request #48277 from thebestnom/fix/generateDevTemplate
...
[Android] fix generateDevTemplate
2021-04-29 11:12:06 +02:00
Rémi Verschelde
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
thebestnom
47bf216af9
[Android] fix generateDevTemplate
2021-04-28 21:59:42 +03:00
Rémi Verschelde
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
Tomasz Chabora
2035992a07
Calculate __focus_rect when TreeItem is focused
2021-04-28 18:09:19 +02:00
Hugo Locurcio
126ea92a64
Document that clearcoat/rim lighting is not visible on unshaded materials
2021-04-28 17:38:44 +02:00
Hugo Locurcio
be01025376
Make it possible to copy the Godot version identifier by clicking it
...
This closes #24317 .
2021-04-28 17:35:57 +02:00
Lightning_A
bb6bdcee1a
Add the ability to hide scrollcontainer's scrollbars
2021-04-28 09:28:31 -06:00
Rémi Verschelde
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
Fabio Alessandrelli
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
Rémi Verschelde
9e9ac9f6ad
Merge pull request #46476 from DarknessCatt/master
...
Add fill method to Arrays and PackedArrays
2021-04-28 16:52:31 +02:00
Rémi Verschelde
f505a26798
Merge pull request #47454 from vnen/gdscript-lambda
2021-04-28 16:44:59 +02:00
George Marques
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
George Marques
c201b212c7
GDScript: Implement lambdas compilation and runtime
2021-04-28 11:09:38 -03:00
Fabio Alessandrelli
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
George Marques
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
George Marques
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
Rémi Verschelde
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
David Snopek
b77925d246
Fixes #48178 : WebXR broken when built with Emscripten 2.0.13 or later
2021-04-28 08:27:51 -05:00
Rémi Verschelde
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
Pasi Nuutinmaki
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
Rémi Verschelde
35a8693e6a
Raycast: Fix use of removed copymem after #48239
2021-04-28 11:09:20 +02:00
Rémi Verschelde
305b2a15bf
Merge pull request #48239 from akien-mga/goodbye-copymem
...
Core: Drop custom `copymem`/`zeromem` defines
2021-04-28 11:04:05 +02:00
Rémi Verschelde
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
Rémi Verschelde
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
EricEzaM
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
Rémi Verschelde
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
Florian Kothmeier
a2c419bdc9
Raise error if Resource is of wrong type as function argument
2021-04-27 21:24:08 +02:00
Rémi Verschelde
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
Marcel Admiraal
c2f6a73e4e
Update CSGMesh3D's documentation to explain how vertex normals are used
2021-04-27 18:32:25 +01:00
Rémi Verschelde
95cfce661b
Merge pull request #48050 from JFonS/occlusion_culling
2021-04-27 19:07:12 +02:00
Rémi Verschelde
b999fbc4bd
Merge pull request #48228 from akien-mga/android-build-tools-30.0.3
...
Android: Upgrade buildTools from 30.0.1 to 30.0.3
2021-04-27 18:42:23 +02:00
Rémi Verschelde
cd8d321961
Tabs: Remove unused 'panel' stylebox from default theme
...
Cf. https://github.com/godotengine/godot/issues/37875#issuecomment-625297308 .
2021-04-27 17:36:53 +02:00
Rémi Verschelde
8247667a3e
Core: Drop custom copymem
/zeromem
defines
...
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639
.
There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
2021-04-27 16:26:27 +02:00
Rémi Verschelde
288f484d0a
Merge pull request #48231 from Chaosus/shader_fix_constant_func_initialization
...
Fixed shader handling of constant expressions in function call
2021-04-27 15:04:47 +02:00
Rémi Verschelde
72bd64c1d5
Merge pull request #47398 from Faless/feature/network-local-port-salvaged
2021-04-27 15:04:30 +02:00
Rémi Verschelde
2a1f3c4944
Merge pull request #48159 from Faless/js/4.x_pwa_export
...
[HTML5] Export as Progressive Web App
2021-04-27 14:57:53 +02:00
Fabio Alessandrelli
88c060b00d
[HTML5] Export as Progressive Web App.
...
Adds possibility to export as a progressive web app.
Allows customizing base icons, display mode, orientation and offline
page.
2021-04-27 14:44:31 +02:00
Rémi Verschelde
27548a3694
Merge pull request #48232 from HaSa1002/i-dont-need-your-error
2021-04-27 14:37:22 +02:00
Yuri Roubinsky
3c82f01134
Fix shader handle constant expressions in function call
2021-04-27 15:23:01 +03:00