Haoyu Qiu
e4e4e475f8
Make --doctool
locale aware
...
* Adds `indent(str)` to `String`:
* Indent the (multiline) string with the given indentation.
* This method is added in order to keep the translated XML correctly
indented.
* Moves the loading of tool/doc translation into
`editor/editor_translation.{h,cpp}`.
* This will be used from both `EditorSettings` and the doc tool from
`main`.
* Makes use of doc translation when generating XML class references, and
setup the translation locale based on `-l LOCALE` CLI parameter.
The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.
2021-12-16 17:49:22 +08:00
Max Hilbrunner
edd3ca4501
Merge pull request #55974 from skyace65/ScriptDoc
...
Clarify that the script class should not be used directly
2021-12-16 07:35:10 +01:00
Max Hilbrunner
cedd690d3a
Merge pull request #55811 from nathanfranke/os-documentation
...
Fix OS.get_name and OS.get_user_data_dir documentation
2021-12-16 07:32:11 +01:00
Yuri Roubinsky
765032ae95
Merge pull request #55969 from Chaosus/shader_anisotropic
2021-12-16 07:06:43 +03:00
skyace65
9f983eea8c
Clarify that the script class should not be used directly
2021-12-15 22:17:34 -05:00
Nathan Franke
f8f2656eab
Fix OS.get_name and OS.get_user_data_dir documentation
2021-12-15 13:56:52 -08:00
Rémi Verschelde
e311389580
Merge pull request #55183 from madmiraal/fix-41421
...
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 20:25:59 +01:00
Rémi Verschelde
deb30a4108
Merge pull request #52015 from mechPenSketch/expose_hotzones2
...
Expose connection hot zones in `GraphNode`
2021-12-15 20:23:07 +01:00
Yuri Roubinsky
f0a58af12f
Rename shader hint filter_anisotropy
to filter_anisotropic
2021-12-15 22:12:38 +03:00
Marcel Admiraal
6e38fc4b80
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 18:15:08 +00:00
Yuri Roubinsky
1cbf3947d6
Merge pull request #55957 from Chaosus/shader_fix_arrays
2021-12-15 19:28:09 +03:00
Rémi Verschelde
9b932aa0db
Merge pull request #55958 from timothyqiu/xml-indents
2021-12-15 17:12:56 +01:00
Fabio Alessandrelli
c5879dbe07
Merge pull request #53129 from Faless/net/4.x_enet_opts
...
[Net] ENet poll optimizations, fragmented unreliable transfer.
2021-12-15 16:02:55 +01:00
Yuri Roubinsky
25a2241e7d
Fix shader array parsing in variable declaration
2021-12-15 17:54:15 +03:00
Haoyu Qiu
4e393ab4a0
Fix indentations in class reference XMLs
2021-12-15 22:26:54 +08:00
Rémi Verschelde
e55ecd117f
Merge pull request #55948 from timothyqiu/shortcut-drives
2021-12-15 15:21:39 +01:00
Haoyu Qiu
67f04b381b
Add / to the unix shortcut drive list
...
Also made `get_current_drive()` to pick the longest match on Unix.
2021-12-15 21:13:35 +08:00
Jordan Schidlowsky
373d5ea103
[Net] ENet poll now only service the connection once.
...
It used to call `enet_host_service` until all events were consumed, but
that also meant constantly polling the connection leading to potentially
unbounded processing time.
It now only service the connection once, and instead consumes all the
retrieved events via `enet_host_check_events`.
2021-12-15 14:03:42 +01:00
Jordan Schidlowsky
397d895fb7
[Net] ENetMultiplayerPeer now sends fragmented packets unreliably too.
...
It used to always send them reliably when transfer mode was unreliable
or ordered if the packet size was more then the enet host MTU (1400
bytes by default).
This commit also adds a warning when debug is enabled to explain the
effects of sending fragmented packets unreliably.
2021-12-15 14:03:42 +01:00
Rémi Verschelde
de8348a9b3
Merge pull request #55903 from Chaosus/shader_struct
2021-12-15 13:07:48 +01:00
Rémi Verschelde
864ccb5776
Merge pull request #55913 from Chaosus/fix_shader_crash
2021-12-15 13:07:34 +01:00
Rémi Verschelde
7f97f40eb6
Merge pull request #55927 from pycbouh/editor-add-theme-type-communication
2021-12-15 13:01:09 +01:00
Rémi Verschelde
815bc082e8
Merge pull request #55951 from Chaosus/shader_hint_aniso
2021-12-15 12:53:59 +01:00
Rémi Verschelde
703a1be507
Merge pull request #55952 from Faless/net/4.x_webrtc_mp_connect_fix
2021-12-15 12:38:10 +01:00
Rémi Verschelde
859549e136
Merge pull request #55905 from bruvzg/ts_substring_reshape
2021-12-15 11:53:53 +01:00
Fabio Alessandrelli
f9c05333ef
Merge pull request #55657 from MorganKF/patch-multiplayer-peer-extension
...
Patch `MultiplayerPeerExtension` to allow derived classes
2021-12-15 11:40:52 +01:00
Yuri Roubinsky
09185d76ac
Rename shader hint filter_aniso
to filter_anisotropy
2021-12-15 13:18:32 +03:00
Rémi Verschelde
681d00bd91
Merge pull request #55940 from Calinou/editor-spin-slider-tweak-grabber
2021-12-15 11:11:06 +01:00
Fabio Alessandrelli
84112d9610
[Net] Fix WebRTC returning packets from peers too early.
...
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.
2021-12-15 11:07:46 +01:00
bruvzg
01bac2c469
[Text Server] Fix re-shaping of substrings, improve oversampling scale.
2021-12-15 11:57:22 +02:00
Max Hilbrunner
1930fc8b31
Merge pull request #55699 from Mickeon/patch-1
...
Various tweaks to Camera2D's documentation
2021-12-15 03:39:39 +01:00
Max Hilbrunner
e8e2865f88
Merge pull request #55935 from KoBeWi/get_minimum_size_not
...
Document get_minimum_size not called in some nodes
2021-12-15 03:33:15 +01:00
Max Hilbrunner
9d81bfea74
Merge pull request #55777 from cdemirer/doc-replace_by
...
Clarify that replace_by keeps child nodes in tree
2021-12-15 03:28:37 +01:00
Max Hilbrunner
494bbcff0b
Merge pull request #55831 from Calinou/doc-reflectionprobe
...
Improve the ReflectionProbe class documentation
2021-12-15 03:23:36 +01:00
Hugo Locurcio
02187727e3
Make EditorSpinSlider grabbers thicker to be more noticeable
2021-12-15 00:44:55 +01:00
Rémi Verschelde
f09d88443b
Merge pull request #55932 from xsellier/bugfix/fix-random-crash-on-launch
2021-12-14 22:51:36 +01:00
Xavier Sellier
ba0abd399f
Defer the call to 'popup_str' to the next cycle to let Godot Engine's editor time to properly start
2021-12-14 20:08:19 +01:00
Rémi Verschelde
7c716bf37c
Merge pull request #55936 from Calinou/portal-room-add-compatibility-classes
2021-12-14 20:05:30 +01:00
Hugo Locurcio
b6caa0587a
Add compatibility class handlers for portal and room occlusion culling
...
Portal and room occlusion culling is replaced by raster occlusion
in 4.0, which undergoes an entirely different setup process. Therefore,
we can only convert those nodes to Node3Ds to allow loading `3.x` scenes
while keeping transforms valid.
2021-12-14 18:45:28 +01:00
Rémi Verschelde
4601809c5a
Merge pull request #55931 from groud/avoid_crash_gdscript_analyzer
2021-12-14 18:44:17 +01:00
kobewi
7d5ee8f694
Document get_minimum_size not called in some nodes
2021-12-14 17:48:07 +01:00
Gilles Roudière
ab8119b5f6
Avoid a crash in the gdscript analyser
2021-12-14 15:54:25 +01:00
Rémi Verschelde
965a527775
Merge pull request #55924 from bruvzg/win_console_4
2021-12-14 15:44:43 +01:00
Yuri Sizov
dc858a8100
Improve user communication in the Add Item Type dialog
2021-12-14 17:00:15 +03:00
bruvzg
6ee48afb4e
[Windows] Open a new console window for the editor instances.
2021-12-14 14:49:58 +02:00
Yuri Roubinsky
3cbd8ef098
Fix shader crash when assigned array from struct to a variable by index
2021-12-13 21:19:13 +03:00
Rémi Verschelde
15aea89868
Merge pull request #55906 from Chaosus/vss_fix
2021-12-13 18:55:06 +01:00
Yuri Roubinsky
a2ef2b0be1
Fix incorrect placement of default value editor in visual scripts
2021-12-13 19:32:24 +03:00
Yuri Roubinsky
31cc6ba622
Allow declaring multiple members in one expression in shader structs
2021-12-13 19:10:08 +03:00
Rémi Verschelde
26510f4c90
Merge pull request #55609 from rcorre/doc-scroll
2021-12-13 15:21:50 +01:00