Commit Graph

41842 Commits

Author SHA1 Message Date
George Marques
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
Rémi Verschelde
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
Rémi Verschelde
52b6088c1d
Merge pull request #58800 from rcorre/blender-nav
Disable blender-style transforms in freelook.
2022-03-06 10:19:41 +01:00
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
def893b3d4
Merge pull request #58805 from KoBeWi/meh_custom
Remove custom_* prefixes compatibility
2022-03-06 10:16:53 +01:00
Rémi Verschelde
b70a83a2b9
Merge pull request #58813 from KoBeWi/reset_minsize
Remove set_as_minsize()
2022-03-06 08:10:28 +01:00
Igor Kordiukiewicz
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
kobewi
7d44bb8f06 Remove set_as_minsize() 2022-03-06 00:57:42 +01:00
Rémi Verschelde
d37e8586be
Merge pull request #58788 from reduz/rename-streamtexture
Rename StreamTexture* to CompressedTexture*
2022-03-06 00:19:55 +01:00
Rémi Verschelde
9b4d4bbaea
Merge pull request #58803 from KoBeWi/a_bit_of_everything
Various code and documentation improvements
2022-03-06 00:17:39 +01:00
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
18446178e7
Merge pull request #58801 from KoBeWi/tabarrange
Change tabs_rearrange_group to property
2022-03-06 00:09:22 +01:00
kobewi
bc3aff9b46 Various code and documentation improvements 2022-03-05 22:00:35 +01:00
kobewi
c003ab43c3 Remove custom_* prefixes compatibility 2022-03-05 21:35:10 +01:00
bruvzg
e88522f5b5
[TextServer] Improve word breaking when there are multiple spaces between words. 2022-03-05 22:31:58 +02:00
kobewi
b3864db7e0 Change tabs_rearrange_group to property 2022-03-05 21:03:01 +01:00
Ryan Roden-Corrent
34b87772b4
Disable blender-style tranforms in freelook.
It's common to bind instant_scale to s, which conflicts with WASD
bindings in freelook mode.

Fixes #58502.
2022-03-05 15:00:11 -05:00
jmb462
ca2b7c59c0 Fix disabled tab can be enabled via rearranging inside TabContainer 2022-03-05 20:26:56 +01:00
reduz
ccd4cdfd8b Rename StreamTexture* to CompressedTexture*
* Its not and will not be used for streaming.
* Streaming will be implemented in 4.1 and it will work different.
* It makes more sense to be called CompressedTexture since it imports and compresses texture files.
2022-03-05 16:43:38 +01:00
Rémi Verschelde
ff65d33e8c
Merge pull request #58785 from timothyqiu/ani-dup-nam
Fix animation resource name after duplication in editor
2022-03-05 16:13:27 +01:00
Haoyu Qiu
8dc12135cd Fix animation resource name after duplication 2022-03-05 21:00:34 +08:00
kobewi
3203a2b4bb Fix color pickers closing in editor settings 2022-03-05 13:25:32 +01:00
Rémi Verschelde
cdd63fa872
Merge pull request #53839 from EricEzaM/editor-settings-changed-settings
Added ability to get list of editor settings changed when saving editor settings. Optimised settings changed notification.
2022-03-05 12:54:38 +01:00
Eric M
daceae79e8 Made use of EditorSettings 'settings changed' to optimise settings changed notifications. 2022-03-05 19:26:40 +10:00
Eric M
a0ef294ba5 Added ability to retrieve array of changed settings changed when it is saved. 2022-03-05 19:26:40 +10:00
Rémi Verschelde
0b08c4d3d4
Merge pull request #58773 from timothyqiu/file-dialog-filter-i18n
Make name of editor file dialog filters translatable
2022-03-05 09:21:03 +01:00
Haoyu Qiu
86c76dca12 Make name of editor file dialog filters translatable 2022-03-05 12:32:38 +08:00
Rémi Verschelde
c9d0523302
Merge pull request #58770 from YeldhamDev/some_crumbles_left
Replace some bits of code left to work with the new `TabContainer`
2022-03-04 23:39:25 +01:00
Rémi Verschelde
27377170d2
Merge pull request #58727 from fire-forge/EditorSpinSlider_label_color
Make EditorSpinSlider label color a theme property
2022-03-04 23:38:55 +01:00
Rémi Verschelde
c55c825f6a
Merge pull request #58753 from YeldhamDev/tab_name_regression
Fix renaming `TabContainer` children not updating tab names when outside the tree
2022-03-04 23:30:32 +01:00
Rémi Verschelde
0d1e3893d9
Merge pull request #57630 from lawnjelly/bvh4_templated_checks
[4.x] BVH - Sync BVH with 3.x
2022-03-04 23:29:38 +01:00
Michael Alexsander
917dac78e7 Replace some bits of code left to work with the new TabContainer 2022-03-04 19:16:33 -03:00
FireForge
6a4d3859cf Make EditorSpinSlider label color a theme property 2022-03-04 15:27:50 -06:00
Michael Alexsander
ebf630441f Fix renaming TabContainer children not updating tab names when outside the tree 2022-03-04 18:26:08 -03:00
Rémi Verschelde
71835906dd
Merge pull request #58758 from timothyqiu/audio-effect-icon
Update audio effect icon when theme changes
2022-03-04 21:36:16 +01:00
Rémi Verschelde
38771eb032
Merge pull request #58759 from raulsntos/icon_color-editor-theme
Add `icon_normal_color` to Button in editor theme
2022-03-04 21:34:40 +01:00
Rémi Verschelde
c787f59931
Merge pull request #58734 from Calinou/tweak-render-timestamp-names
Tweak render timestamp names for explicitness and consistency
2022-03-04 20:43:08 +01:00
Raul Santos
0d7b4663be
Add icon_normal_color to Button in editor theme 2022-03-04 18:59:43 +01:00
Haoyu Qiu
20ed798e59 Update audio effect icon when theme changes 2022-03-05 01:55:48 +08:00
strank
7d48afa96d Add test cases for accessing parent elements from child class 2022-03-04 12:41:20 -05:00
Rémi Verschelde
f356c8ac4b
Merge pull request #58755 from akien-mga/gcc-silence-Wstringop-overflow-false-positive 2022-03-04 18:09:47 +01:00
Rémi Verschelde
4514de4384
Merge pull request #58754 from akien-mga/gles3-maybe-uninitialized 2022-03-04 18:09:31 +01:00
Rémi Verschelde
9c6b6ffe13
Merge pull request #58717 from CrezyDud/master 2022-03-04 18:04:19 +01:00
Rémi Verschelde
0453e7e115
Merge pull request #58752 from akien-mga/webrtc-fix-put_packet-error 2022-03-04 17:58:40 +01:00
Rémi Verschelde
79bbe57244
Merge pull request #56830 from strank/parent-signals 2022-03-04 17:29:49 +01:00
Rémi Verschelde
b2e19b2499 Animation: Silence false positive -Wstringop-overflow warning
And disable debug code which was wrongly left enabled.
2022-03-04 17:10:22 +01:00
Rémi Verschelde
44e82f7073 GLES3: Fix -Wmaybe-uninitialized warning for MipMaps::Size 2022-03-04 17:09:53 +01:00
Rémi Verschelde
1769f80547 WebRTC: Fix potential nullptr dereference in error message
This was evidently a typo. Didn't get a crash but GCC 12 raised a
`-Warray-bounds` warning:

```
In file included from ./core/io/stream_peer.h:34,
                 from ./core/io/packet_peer.h:34,
                 from ./core/multiplayer/multiplayer_peer.h:34,
                 from modules/webrtc/webrtc_multiplayer_peer.h:34,
                 from modules/webrtc/webrtc_multiplayer_peer.cpp:31:
In member function 'T* Ref<T>::operator->() [with T = WebRTCMultiplayerPeer::ConnectedPeer]',
    inlined from 'virtual Error WebRTCMultiplayerPeer::put_packet(const uint8_t*, int)' at modules/webrtc/webrtc_multiplayer_peer.cpp:376:4:
./core/object/ref_counted.h:101:24: error: array subscript 0 is outside array bounds of 'Ref<WebRTCMultiplayerPeer::ConnectedPeer> [0]' [-Werror=array-bounds]
  101 |                 return reference;
      |                        ^~~~~~~~~
```
2022-03-04 16:02:40 +01:00