Commit graph

39772 commits

Author SHA1 Message Date
Rémi Verschelde
7da392bcc5
Don't return reference on copy assignment operators
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this
can lead to confusing code and subtle bugs.

According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++
allows any arbitrary return type, so this is standard compliant.

This could be re-assessed if/when we have an actual need for a behavior more
akin to that of the C++ STL, for now this PR simply changes a handful of
cases which were inconsistent with the rest of the codebase (`void` return
type was already the most common case prior to this commit).
2021-11-30 16:26:29 +01:00
Yuri Sizov
98ad5cd3db Fix a crash in editor's script parent class check 2021-11-30 17:44:22 +03:00
kobewi
30df260810 Improve language lists in localization editor 2021-11-30 15:29:41 +01:00
Rémi Verschelde
2a702cff41
Merge pull request #55467 from akien-mga/remove-editor-splash-screen-platinum 2021-11-30 14:55:37 +01:00
Rémi Verschelde
c283fce698
Remove editor splash screen with sponsors logo
The Godot Project Leadership Committe has decided to update the sponsoring
tiers so that the Platinum Sponsorship no longer includes a logo on the
editor splash screen.

This lets us reclaim the editor splash screen space for community-related
content instead of sponsors (e.g. a different community-designed splash
screen for each stable branch?).

Also removes two Platinum Sponsors whose sponsorship has expired earlier this
year.
2021-11-30 12:47:25 +01:00
Rémi Verschelde
2d118bd8b8
Merge pull request #55466 from Faless/js/4.x_input_fix_touch 2021-11-30 12:20:00 +01:00
Fabio Alessandrelli
470496d8d4 [HTML5] Fix multi-touch input handling.
The code to populate the input data for WebAssembly was incorrectly
overriding values when multiple touches were present due to wrong
indexing.
2021-11-30 11:10:21 +01:00
Rémi Verschelde
75d1ae4dac
Merge pull request #55427 from zacryol/tab-container-clarify 2021-11-30 10:56:13 +01:00
Rémi Verschelde
2f7988cd2f
Merge pull request #55177 from Calinou/add-4.0-dev-changelog 2021-11-30 10:01:42 +01:00
zacryol
5c645d510f Clarify usage of TabContainer
Makes it more clear that TabBar is separate from TabContainer, and that the container draws the tabs itself.
2021-11-29 18:01:09 -07:00
Rémi Verschelde
cf67f18ce9
Merge pull request #55454 from ator-dev/block-hidden-tab-close-4.0
Prevent hidden tab close buttons from intercepting input [4.0]
2021-11-30 00:15:33 +01:00
Rémi Verschelde
03cfdf8cc7
Merge pull request #55451 from Calinou/scene-tree-dock-fix-icon-theme-change
Fix scene tree dock icon not switching colors on theme change
2021-11-29 23:48:20 +01:00
Gilles Roudière
aa74494ab9
Merge pull request #55445 from fazil47/master
Right-clicking with copied tiles cancels it
2021-11-29 21:33:55 +01:00
ator-dev
8c2b7ea537 Prevent hidden tab close buttons from intercepting input [4.0] 2021-11-29 20:25:42 +00:00
Fazil Babu
61c2d397d6 Right-clicking with copied tiles cancels it 2021-11-30 00:23:44 +05:30
Hugo Locurcio
9c6032b46a
Fix scene tree dock icon not switching colors on theme change
This fixes the "three vertical dots" button at the right of the
scene tree dock when switching from a dark theme to a light theme
or vice versa.
2021-11-29 19:42:06 +01:00
Rémi Verschelde
9d3875dde7
Merge pull request #55408 from madmiraal/fix-54517 2021-11-29 17:30:13 +01:00
Rémi Verschelde
76fb6f1927
Merge pull request #55443 from Calinou/doc-spritebase3d-modulate-material-override 2021-11-29 16:59:01 +01:00
Rémi Verschelde
9c116fcf0a
Merge pull request #55377 from RedHeadphone/patch-1 2021-11-29 16:24:14 +01:00
Hugo Locurcio
4868331897
Document using SpriteBase3D's modulate property with material override 2021-11-29 16:07:21 +01:00
Marcel Admiraal
272b3c3728 Enable sorting of operator methods in class documentation. 2021-11-29 14:51:44 +00:00
Rémi Verschelde
e4a7ee0da9
Merge pull request #55437 from KoBeWi/show_tooltips_only_when_node_is_not_paused_and_when_it's_paused_don't_show_master_edition 2021-11-29 15:40:54 +01:00
Rémi Verschelde
2771bced6b
Merge pull request #55341 from ator-dev/fix-line-deletion 2021-11-29 14:48:56 +01:00
Rémi Verschelde
cae5615a22
Merge pull request #55417 from ekumlin/issue-54856 2021-11-29 14:46:01 +01:00
Rémi Verschelde
d2ac4bb48e
Merge pull request #55052 from RPicster/master-particles-visibility-rect 2021-11-29 14:30:58 +01:00
Rémi Verschelde
a76be272b9
Merge pull request #55413 from Rubonnek/fix-animation-node-blend-tree-menu-master 2021-11-29 14:03:19 +01:00
kobewi
dc5f6ac4cf Don't show tooltips for paused controls 2021-11-29 13:23:28 +01:00
Rémi Verschelde
89a4ab6c11
Merge pull request #48717 from Faless/debugger/4.x_custom_res_fix 2021-11-29 13:13:13 +01:00
Rémi Verschelde
d6d20d0926
Merge pull request #55378 from Chaosus/fix_particles_builtins 2021-11-29 12:13:47 +01:00
Yuri Roubinsky
5b4d8545ed Fix INDEX built-in in a process function of particle shader 2021-11-29 12:54:24 +03:00
Yuri Roubinsky
6e80e97b0f Fix built-in(PI, TAU, E) assignment to a global constant in a shader 2021-11-29 10:32:36 +03:00
Raffaele Picca
37cfa56db3 Visibility rect only shown when a GPUParticle2D is selected to reduce visual clutter in scenes with a lot of Particle nodes. 2021-11-28 19:42:42 +01:00
Wilson E. Alvarez
697d9e3cbf
Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor 2021-11-28 09:08:34 -05:00
Red Headphone
8a6c6d5329 progress_offset now added to reference cross draw function 2021-11-28 17:59:00 +05:30
Rémi Verschelde
69a194f051
Merge pull request #55239 from zacryol/find-world-2d-description-fix
Fix description of Viewport `find_world_2d()` method.
2021-11-28 10:37:14 +01:00
zacryol
81c1d5197e Fix description of Viewport find_world_2d() method.
The doc now states that the method searches for a World2D among ancestor Viewports as well, differentiating it from the get_world_2d() getter.

and also find_world_3d()
2021-11-27 13:49:03 -07:00
Silc 'Tokage' Renew
d54919945f Fixed odd behavior when Skeleton3DEditor is re-generated 2021-11-28 04:03:15 +09:00
Rémi Verschelde
52b7d5fa34
Merge pull request #55333 from pablodp606/fix-offset-drag
Fix offset in CanvasItem drag movement
2021-11-27 09:16:16 +01:00
Nathan Franke
dd30253cdc
PackedByteArray, Array slice end exclusive, rename subarray to slice 2021-11-26 22:13:12 -06:00
Pablo Dobarro
cfacd9c057 Fix offset in Viewport drag movement
The initial offset was using the mouse position when the threshold
was reached instead of the initial click position. This was adding
the drag threshold distance as an extra offset to the final
transformation.

Now the offset is calculated from the initial click position.
2021-11-27 01:32:02 +01:00
Rémi Verschelde
e734a7a2d8
Merge pull request #55371 from TokageItLab/fixed-playbackdata-in-animationplayer
Fixed PlaybackData in AnimationPlayer
2021-11-27 01:14:30 +01:00
Silc 'Tokage' Renew
0569930280 Fixed PlaybackData in AnimationPlayer 2021-11-27 07:53:48 +09:00
Aaron Franke
7a096b216e
Remove default_env.tres from generating in new projects 2021-11-26 14:37:27 -06:00
Yuri Roubinsky
b43281c8ab
Merge pull request #55356 from Chaosus/shader_fix_particles_time 2021-11-26 19:53:18 +03:00
Yuri Roubinsky
0f1f002e74 Fix TIME using in custom functions of particle shader 2021-11-26 19:03:01 +03:00
Rémi Verschelde
80e292b3e0
Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspector 2021-11-26 16:01:37 +01:00
Ricardo Subtil
93396b3e51 Fix wrong comparison with default values 2021-11-26 14:04:13 +00:00
Yuri Roubinsky
93bb34cfb4 Prevent crash when passing empty array to MeshEmitter 2021-11-26 16:07:09 +03:00
Rémi Verschelde
8f0c6ce726
Merge pull request #55347 from Faless/js/4.x_scons_emcc_abspath 2021-11-26 13:41:16 +01:00
Fabio Alessandrelli
eaedc92c61 [HTML5] Use absolute path for JS lib/pre/externs.
Ensure better compatibility when emcc which may run some tools from
different paths (e.g. closure compiler).

This fixes externs include issues with modern emcc using the closure
compiler.
2021-11-26 12:44:51 +01:00