Commit graph

39957 commits

Author SHA1 Message Date
Rémi Verschelde
1c5a8894aa
Merge pull request #55516 from lawnjelly/path_2d_polyline_4 2021-12-01 21:19:30 +01:00
Raul Santos
a367378f9e Rename Vector parameters to be consistent
Renames parameters that were named differently across different
scripting languages or their documentation to use the same name
everywhere.
2021-12-01 21:14:46 +01:00
Andreas Raddau
2b7eab7c87 Fix editor crash when expanding/collapsing empty scene tree 2021-12-01 20:18:20 +01:00
Hugo Locurcio
73d596eba9
Automatically add root node when drag-and-dropping in 3D editor
This also uses correct capitalization scheme for 3D meshes that are
drag-and-dropped, like in the 2D editor.
2021-12-01 19:36:14 +01:00
Hugo Locurcio
675f5d01bf
Draw the filled part of the slider on float EditorSpinSliders
This makes it more obvious that the slider has a "filled" part
on the left, which improves visibility especially in wider inspectors
(such as the Project Settings and Editor Settings).
2021-12-01 19:09:51 +01:00
PouleyKetchoupp
02d40de30d Fix shape index in multiple physics queries with Bullet
Two main changes:

- Better handling of concave shapes to make sure the queries don't
return a triangle index instead of shape index.
Note: A concave shape within a compound shape will always return a shape
index of 0 because of Bullet limitations.

- Extra check for compound shapes in some queries to avoid undefined
behavior, because the shape index can have an uninitialized value with
convex shapes in some cases.
2021-12-01 11:03:41 -07:00
Yuri Sizov
397e56964d Sort and group theme properties in docs, improve formatting for theme and enums 2021-12-01 21:02:20 +03:00
Rémi Verschelde
b9d877e55f
Merge pull request #55515 from Chaosus/shader_fix_struct_name 2021-12-01 18:02:12 +01:00
lawnjelly
6db29583f2 Faster Path2D drawing with polyline
Changes the Path2D drawing to use POLYLINE instead of thick lines.
2021-12-01 15:23:27 +00:00
Rémi Verschelde
dc4b8f8487
Merge pull request #55502 from DeleteSystem32/mp3_fixes 2021-12-01 16:13:07 +01:00
Yuri Roubinsky
5ee73dc5a6 Fix shader crash when using existed constant name for struct 2021-12-01 18:11:45 +03:00
Yuri Roubinsky
fe6ff61130
Merge pull request #55510 from Chaosus/shader_fix_const_arrays 2021-12-01 17:32:00 +03:00
Yuri Roubinsky
a48c205191 Fix declaring array size twice in global shader constant 2021-12-01 16:44:25 +03:00
Vincent
2d0068d1cb Fix crash when loading an invalid mp3 file 2021-12-01 14:30:38 +01:00
Yuri Roubinsky
56f73a7e29
Merge pull request #55508 from Chaosus/shader_fix_semicolon 2021-12-01 14:12:59 +03:00
Yuri Roubinsky
5ba93619fa Allow using empty statements in the shader, added formatting warning 2021-12-01 11:52:25 +03:00
bruvzg
371010c5f9
HarfBuzz: Update to version 3.1.2 2021-12-01 09:37:48 +02:00
Aaron Franke
9687f6fca3
Warn when using an AABB or Rect2 with a negative size 2021-11-30 18:27:58 -06:00
kobewi
244c5ecc64 Misc improvements to various docs 2021-11-30 23:53:58 +01:00
Hugo Locurcio
89849a9ed9
Rename AStar.get_points() to AStar.get_point_ids() for clarity
The same has been done for AStar2D as well.
2021-11-30 22:14:39 +01:00
Aaron Franke
129911f61a
Improve Curve with const and real_t 2021-11-30 14:24:27 -06:00
Rémi Verschelde
e223a9c129
Merge pull request #55486 from nekomatata/physics-contacts-debug 2021-11-30 20:21:54 +01:00
Rémi Verschelde
ffc6395aca
Merge pull request #55485 from KoBeWi/is_there_something_this_tool_can't_do_lol 2021-11-30 20:18:41 +01:00
Rémi Verschelde
5643f5e616
Merge pull request #55490 from Chaosus/fix_shader_crash 2021-11-30 20:13:12 +01:00
Rémi Verschelde
7e0537bd79
Merge pull request #55301 from Chaosus/vs_fix_meshemitter_crash 2021-11-30 19:41:11 +01:00
Rémi Verschelde
bdd118e765
Merge pull request #55431 from Chaosus/shader_fix_constants 2021-11-30 19:40:52 +01:00
Yuri Roubinsky
be7c03779a Fix shader crash when assigning array to non-array in global constant 2021-11-30 21:28:55 +03:00
Rémi Verschelde
a5b1244ebe
Merge pull request #55469 from KoBeWi/ln 2021-11-30 19:12:31 +01:00
kobewi
dc472622cc Mention that Ctrl+Alt with select tool will scale 2021-11-30 17:36:39 +01:00
PouleyKetchoupp
1ce74c0273 Fix physics 2D/3D contact points rendering
Physics internal process was removed by mistake, it's needed for contact
points to be updated each frame.

Fixed some multimesh parameters to allow 3D contact points to be drawn,
although it's still not working well in 3D as only some of the contact
points are drawn, and some of them keep being drawn when the number
of visible instances drops to 0 instead of hiding them all.
2021-11-30 09:35:12 -07:00
Yuri Sizov
d567ce3582 Make default/project theme wait for modules before initializing 2021-11-30 19:09:29 +03:00
Rémi Verschelde
2f8cb1547c
Merge pull request #55477 from pycbouh/editor-crash-script-parent-check 2021-11-30 17:03:14 +01:00
Gilles Roudière
4fc0fb826a Change gdnative interface so that Godot object initialization should be triggered from the extension side 2021-11-30 16:55:48 +01:00
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