Commit Graph

41879 Commits

Author SHA1 Message Date
f488a841c7 Merge pull request #58779 from techiepriyansh/forward-mobile-ambient-accum 2022-03-07 16:46:33 +01:00
1421ce6780 Merge pull request #58862 from godotengine/revert-57934-js/4.x_fetch_creds 2022-03-07 14:32:47 +01:00
95e6db09d0 Merge pull request #58859 from godotengine/revert-57972-fix_has_setting4 2022-03-07 14:32:25 +01:00
2a67b09b94 Merge pull request #58858 from lawnjelly/safe_vectors4 2022-03-07 14:01:18 +01:00
63df46c238 Revert "[HTML5] Fetch API now passes credentials." 2022-03-07 12:52:26 +01:00
78bf9926f8 Revert "Fix ProjectSettings has_setting() when used on a overriden setting with feature tags" 2022-03-07 12:33:07 +01:00
0565676893 Protection for array operator for Vector2 / 3 in DEV builds
A previous PR had changed the array operator to give unbounded access. This could cause crashes where old code depended on this previous safe behaviour.

This PR adds DEV_ASSERT macros for out of bound access to DEV builds, allowing us to quickly identify bugs in calling code, without affecting performance in release or release_debug editor builds.
2022-03-07 11:15:45 +00:00
6c3170e875 Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saver 2022-03-07 12:05:35 +01:00
8c3d8b12ed Merge pull request #58853 from V-Sekai/default-arg-values 2022-03-07 10:40:42 +01:00
d0c614ba74 Merge pull request #58761 from techiepriyansh/fix-multiple-instances 2022-03-07 10:40:19 +01:00
f9d4f08090 Fix ResourceSaver::save method exposition flag parameter
enh: Add FLAG_NONE to SaverFlags in ResourceSaver to fix api inconsistency
fix: flags parameter of ResourceSaver::save is now uint32_t to allow flag composition in scripts
2022-03-07 10:39:51 +01:00
a51f724b8b Merge pull request #57812 from piiertho/bugfix/add-none-enum-global-constants 2022-03-07 10:23:25 +01:00
c20860a1f4 Merge pull request #58854 from Chaosus/vs_varying_fix 2022-03-07 12:14:24 +03:00
2eaadb1b52 Restore building web platform by enclosing resolve_function_signature. 2022-03-07 00:35:11 -08:00
a41fb2fa3c bugfix: bind core enums' none values 2022-03-07 09:16:25 +01:00
53cf5eff9a Merge pull request #58847 from KoBeWi/editor_settings_mess 2022-03-07 08:38:15 +01:00
1177bd635f Merge pull request #58208 from MythTitans/fix-sphere-and-cylinder-shapes-normals-seam 2022-03-07 08:37:29 +01:00
87c7fe69f2 Fix _update_varyings call in visual shader 2022-03-07 10:26:09 +03:00
eb8ce0ce68 Merge pull request #58750 from Chaosus/vs_varyings
Add varying support to visual shaders
2022-03-07 07:41:11 +01:00
bb5d71f6cc Merge pull request #58719 from Chaosus/vs_builtins
Adds few more input/output built-ins to visual shader
2022-03-07 07:39:51 +01:00
ffd64505c5 Merge pull request #58832 from reduz/uniform-set-cache
Add a UniformSet cache
2022-03-07 07:19:58 +01:00
1fbd498307 Merge pull request #58842 from IgorKordiukiewicz/save-as-scene-visual-feedback
Added visual feedback when drag and dropping from scene tree to filesystem
2022-03-06 23:25:39 +01:00
78ad01cae7 Merge pull request #58839 from KoBeWi/access_creator
Improve some DirAccess usage
2022-03-06 22:45:07 +01:00
47f1c4f900 Merge pull request #58827 from XPhyro/cs-deconstruct
Implement `Deconstruct` methods for C# vectors
2022-03-06 22:36:45 +01:00
9e3fd726d9 Merge pull request #58835 from vnen/gdscript-check-override-signature
GDScript: Check if method signature matches the parent
2022-03-06 22:31:25 +01:00
2057ea2883 Remove duplicate editor settings definitions 2022-03-06 22:05:49 +01:00
2ed334f95f Added visual feedback when drag and dropping from scene tree to file system 2022-03-06 21:36:15 +01:00
92615be68c Merge pull request #58834 from lawnjelly/bvh_fix_area_area4
[4.x] BVH - Fix area-area collision regression
2022-03-06 17:08:53 +01:00
1ebcb58e69 GDScript: Check if method signature matches the parent
To guarantee polymorphism, a method signature must be compatible with
the parent. This checks if:

1. Return type is the same.
2. The subclass method takes at least the same amount of parameters.
3. The matching parameters have the same type.
4. If the subclass takes more parameters, all of the extra ones have a
default value.
5. If the superclass has default values, so must have the subclass.

There's a few test cases to ensure this holds up.
2022-03-06 11:16:20 -03:00
f199d2c33c [4.x] BVH - Fix area-area collision regression
Minimal approach to fixing regression whereby static areas where not detect dynamic areas.
2022-03-06 14:03:19 +00:00
73fdb22668 Improve some DirAccess usage 2022-03-06 15:01:13 +01:00
d5b8a25195 fix same project opening mutliple times from project manager 2022-03-06 18:24:06 +05:30
b0ca03b0a2 Add a UniformSet cache
* Changed syntax usage for RD::Uniform to create faster with a single RID
* Converted render pass setup to use this in clustered renderer to test.

This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase.
2022-03-06 13:03:33 +01:00
272b355954 Merge pull request #58757 from strank/parent-signals
Add test cases for accessing parent elements from child class
2022-03-06 10:20:59 +01:00
52b6088c1d Merge pull request #58800 from rcorre/blender-nav
Disable blender-style transforms in freelook.
2022-03-06 10:19:41 +01:00
e3231c3ee7 Merge pull request #58783 from KoBeWi/change_in_peace
Fix color pickers closing in editor settings
2022-03-06 10:18:31 +01:00
5dd0b02f60 Merge pull request #58821 from IgorKordiukiewicz/extend-script-popup-without-script
Fixed issue where Extend Script option would show up even without script attached to the node
2022-03-06 10:17:31 +01:00
def893b3d4 Merge pull request #58805 from KoBeWi/meh_custom
Remove custom_* prefixes compatibility
2022-03-06 10:16:53 +01:00
20d72e462b Implement Deconstruct methods for C# vectors
See https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct#user-defined-types
2022-03-06 11:16:30 +03:00
b70a83a2b9 Merge pull request #58813 from KoBeWi/reset_minsize
Remove set_as_minsize()
2022-03-06 08:10:28 +01:00
dc361d3201 Fixed issue where Extend Script option would show up even without script attached to the node 2022-03-06 03:19:03 +01:00
7d44bb8f06 Remove set_as_minsize() 2022-03-06 00:57:42 +01:00
d37e8586be Merge pull request #58788 from reduz/rename-streamtexture
Rename StreamTexture* to CompressedTexture*
2022-03-06 00:19:55 +01:00
9b4d4bbaea Merge pull request #58803 from KoBeWi/a_bit_of_everything
Various code and documentation improvements
2022-03-06 00:17:39 +01:00
2d96b4c989 Merge pull request #58806 from bruvzg/ts_multispace_word_brk
[TextServer] Improve word breaking when there are multiple spaces between words.
2022-03-06 00:16:09 +01:00
dfddebb460 Merge pull request #58799 from jmb462/fix-tab-disabled
Fix disabled tab can be enabled via rearranging inside TabContainer
2022-03-06 00:14:13 +01:00
18446178e7 Merge pull request #58801 from KoBeWi/tabarrange
Change tabs_rearrange_group to property
2022-03-06 00:09:22 +01:00
bc3aff9b46 Various code and documentation improvements 2022-03-05 22:00:35 +01:00
c003ab43c3 Remove custom_* prefixes compatibility 2022-03-05 21:35:10 +01:00
e88522f5b5 [TextServer] Improve word breaking when there are multiple spaces between words. 2022-03-05 22:31:58 +02:00