summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-28GDScript: Fix crash when base of an attribute is invalidGeorge Marques
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-28GDScript: Implement lambdas compilation and runtimeGeorge Marques
2021-04-28GDScript: Add lambdas to the type analyzerGeorge Marques
- Lambdas are always callables (no specific signature match). - Captures from the current context are evaluated.
2021-04-28GDScript: Add lambda syntax parsingGeorge Marques
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-28Merge pull request #37064 from GNSS-Stylist/Face3_area_calc_fix_cleanRémi Verschelde
Fix area calculation of Face3
2021-04-28Fix area calculation of Face3Pasi Nuutinmaki
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-28Raycast: Fix use of removed copymem after #48239Rémi Verschelde
2021-04-28Merge pull request #48239 from akien-mga/goodbye-copymemRémi Verschelde
Core: Drop custom `copymem`/`zeromem` defines
2021-04-28Merge pull request #47595 from EricEzaM/PR/fix-lineedit-ctrl-backspaceRémi Verschelde
Fixed issues with LineEdit Delete Word & Backspace Word.
2021-04-28Merge pull request #42607 from Dragoncraft89/type_checksRémi Verschelde
Raise error if Resource is of wrong type as function argument
2021-04-28Fixed issues with LineEdit Delete Word & Backspace Word.EricEzaM
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-27Merge pull request #48245 from madmiraal/fix-24111Rémi Verschelde
Update CSGMesh3D's documentation to explain how vertex normals are used
2021-04-27Raise error if Resource is of wrong type as function argumentFlorian Kothmeier
2021-04-27Merge pull request #48241 from akien-mga/tabs-panel-style-unusedRémi Verschelde
Tabs: Remove unused 'panel' stylebox from default theme
2021-04-27Update CSGMesh3D's documentation to explain how vertex normals are usedMarcel Admiraal
2021-04-27Merge pull request #48050 from JFonS/occlusion_cullingRémi Verschelde
2021-04-27Merge pull request #48228 from akien-mga/android-build-tools-30.0.3Rémi Verschelde
Android: Upgrade buildTools from 30.0.1 to 30.0.3
2021-04-27Tabs: Remove unused 'panel' stylebox from default themeRémi Verschelde
Cf. https://github.com/godotengine/godot/issues/37875#issuecomment-625297308.
2021-04-27Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde
We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. 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-27Merge pull request #48231 from Chaosus/shader_fix_constant_func_initializationRémi Verschelde
Fixed shader handling of constant expressions in function call
2021-04-27Merge pull request #47398 from Faless/feature/network-local-port-salvagedRémi Verschelde
2021-04-27Merge pull request #48159 from Faless/js/4.x_pwa_exportRémi Verschelde
[HTML5] Export as Progressive Web App
2021-04-27[HTML5] Export as Progressive Web App.Fabio Alessandrelli
Adds possibility to export as a progressive web app. Allows customizing base icons, display mode, orientation and offline page.
2021-04-27Merge pull request #48232 from HaSa1002/i-dont-need-your-errorRémi Verschelde
2021-04-27Fix shader handle constant expressions in function callYuri Roubinsky
2021-04-27Fix CSG Path Polygon cache being removed after connectJohannes Witt
fixes #30229
2021-04-27Merge pull request #48203 from Faless/net/4.x_socket_poll_timeoutRémi Verschelde
[Net] Fix socket poll timeout on Windows.
2021-04-27Merge pull request #48210 from akien-mga/linux-static_cpp-32-bitRémi Verschelde
Linux: Remove use_static_cpp override on x86_32
2021-04-27Merge pull request #47960 from smix8/issue_47334_navagent2d_target_reachedRémi Verschelde
2021-04-27Merge pull request #48229 from smix8/issue_47334_navagent3d_target_reachedRémi Verschelde
Fix NavigationAgent3D not emitting "target_reached" Signal
2021-04-27Merge pull request #47974 from Faless/js/4.x_ssl_debug_newRémi Verschelde
[HTML5] HTTP server now supports optional SSL
2021-04-27Fix NavigationAgent3D not emitting "target_reached" Signalsmix8
Fix NavigationAgent3D not emitting "target_reached" Signal when reaching pathfinding target.
2021-04-27[HTML5] HTTP server uses optional SSL.Fabio Alessandrelli
Generates a key/cert snakeoil pair or use a custom SSL cert/key. This is of course false security, and potentially detrimental for it. But, so long, those are the requirements browser vendors agreed on to use things like the Gamepad API, and more advanced topics like wasm threads. You don't need this if you run on localhost (at least!), but you do need this (or a much safer nginx proxy) to try those things on your local network (e.g. when debugging a phone, networking, etc).
2021-04-27Merge pull request #47386 from Faless/js/4.x_http_server_refactorFabio Alessandrelli
[HTML5] Make debug server more maintainable, better icon export.
2021-04-27[HTML5] Optional icon generation, use export name for it.Fabio Alessandrelli
We used to only generate the favicon if it was specified in the user project settings, now it's optional, will export it to `NAME.icon.png`, (falling back to the default project icon if none is set in project settings), and the `<link>` tag is added using the `$HEAD_INCLUDE` instead of being hardcoded in the template.
2021-04-27put distance check to target into functionsmix8
put distance check to target into function
2021-04-27[HTML5] Debug HttpServer now runs in `web` cache subdir.Fabio Alessandrelli
Serving all files in that folder and using a known list of mime types. Makes it easy to add more exported files, while still playing safe.
2021-04-27Merge pull request #47826 from Chaosus/vs_fix_default_input_overridingRémi Verschelde
Prevents default values of VSNodeCustom from overriding by a script
2021-04-27Merge pull request #38349 from asheraryam/convex-decompose-masterRémi Verschelde
Create GDScript bindings for creating multiple-convex collision bodies [4.0]
2021-04-27Merge pull request #48219 from m4gr3d/move_ovr_manifest_configs_to_pluginRémi Verschelde
Remove deprecated xr features properties
2021-04-27Merge pull request #48187 from brakhane/remove-dupe-commentsRémi Verschelde
Remove duplicate comments
2021-04-27Expose creating multiple-convex-collision static bodies to GDScriptasheraryam
2021-04-26Merge pull request #48185 from Calinou/codestyle-no-autoRémi Verschelde
Remove uses of `auto` for better readability and online code reviews
2021-04-26Remove deprecated xr features properties. These properties are now provided ↵Fredia Huya-Kouadio
directly by the plugin.
2021-04-26Android: Upgrade buildTools from 30.0.1 to 30.0.3Rémi Verschelde
It seems 30.0.1 had issues with compatibility with JDK 8 and 11, which appear to be solved in 30.0.3 as per godotengine/godot-docs#4796.
2021-04-26Remove uses of `auto` for better readability and online code reviewsHugo Locurcio
The current code style guidelines forbid the use of `auto`. Some uses of `auto` are still present, such as in UWP code (which can't be currently tested) and macros (where removing `auto` isn't easy).
2021-04-26Linux: Remove use_static_cpp override on x86_32Rémi Verschelde
After further testing it seems to work fine now when building binaries with GCC 5 on Ubuntu 16.04 (previously we were using GCC 9 on Ubuntu 14.04). Follow-up to #45629.
2021-04-26Merge pull request #48172 from madmiraal/fix-empty-csgshape-errorRémi Verschelde
Fix new `CSGMesh` errors
2021-04-26Merge pull request #48162 from mrushyendra/fix_audioserver_crashRémi Verschelde
Fix AudioServer Crash when no buses present
2021-04-26[Net] Fix socket poll timeout on Windows.Fabio Alessandrelli
Now correctly computes the timeout value in milliseconds.