Commit Graph

7766 Commits

Author SHA1 Message Date
65465f309c Add a project setting to make the root viewport transparent
This allows creating a project with a transparent window without having
to write any script.
2022-12-18 00:38:05 +01:00
607940875c Merge pull request #70111 from Maran23/3.x-check-null-event-in-tree
[3.x] Check for null event in Tree._gui_input to avoid engine crash
2022-12-17 14:28:11 +01:00
84566b3296 Merge pull request #70089 from Rubonnek/3x-avoid-compiling-editor-checks-in-visibilitynotfier2d
[3.x] Avoid compiling Editor checks in release builds for `VisibilityNotifier2D`
2022-12-17 14:27:21 +01:00
09f974b21d Check for null event in Tree._gui_input to avoid engine crash 2022-12-15 17:35:53 +01:00
78b8cf7edb Avoid compiling Editor checks in release builds for VisibilityNotifier2D 2022-12-15 11:13:10 -05:00
6963ba631e Fix typos with codespell 2022-12-15 12:26:59 +01:00
6a8bae4e35 Do not fire VisibilityNotifier screen_entered and screen_exited signals in the Editor 2022-12-13 10:29:28 -05:00
6f69d29398 Fix crash after executing ItemList.set_icon_scale
(cherry picked from commit 8d0fa193c3)
2022-12-13 14:24:25 +01:00
ff714fbe02 SurfaceTool - efficiency improvements
Changed to use LocalVector rather than linked lists.
2022-12-12 20:12:50 +00:00
5d5f0a3958 Merge pull request #69963 from lawnjelly/variant_parser_optional_readahead_3
VariantParser make readahead optional [3.x]
2022-12-12 19:02:17 +01:00
776c9d0579 VariantParser make readahead optional
It turns out some areas are independently moving / reading filepointers outside of the VariantParser, which can cause the readahead caching to get out of sync.

This PR makes the VariantParser readahead to be optional to allow for these use cases.
2022-12-12 15:44:39 +00:00
2343ba148b Merge pull request #69959 from Calinou/distance-fade-use-circular-fade-3.x
Use circular fade instead of linear fade for distance fade (3.x)
2022-12-12 16:07:31 +01:00
2c714f19e5 Merge pull request #65453 from timothyqiu/agent-target-3.x
[3.x] Make NavigationAgent `target_location` a property
2022-12-12 16:07:25 +01:00
56ac14fbf0 Use circular fade instead of linear fade for distance fade
This makes distance fade look the same regardless of the camera angle,
for all distance fade modes (Pixel Alpha, Pixel Dither, Object Dither).
Distance fade now behaves like fog in this regard.
2022-12-12 15:16:34 +01:00
c54c1b0b6b Fix infinite loop when calling Control.popup_centered_minsize()
Co-authored-by: sriramun <sriramun2@gmail.com>
(cherry picked from commit 08e804b3b7)
2022-12-12 14:49:23 +01:00
ecef4804f2 Fix errors while deselecting all tree items; issue #65185
(cherry picked from commit d4d5df2314)
2022-12-12 14:49:23 +01:00
bfce0c1e52 Merge pull request #59765 from pfertyk/issue-59359-wrong-visible-line-count-if-newline
Fix wrong visible line count for newline
2022-12-12 13:40:14 +01:00
9ac09dfb64 incorrect range value with min value and step
If the minimum value and the steps are greater than 0, the value will not be calculated correctly.

Co-Authored-By: Astral-Sheep <109028693+Astral-Sheep@users.noreply.github.com>
(cherry picked from commit fe1f8443a4)
2022-12-12 14:22:54 +08:00
16bb34d23d Add detail to NavigationPolygon outline error msg
Adds additional information to the error msg when the convex partition fails due to invalid outline arrays.

(cherry picked from commit f30ebacbe8)
2022-12-12 14:19:46 +08:00
f128170a18 Merge pull request #69558 from timothyqiu/canvas-layer-unique-call
[3.x] Fix CanvasLayer visibility toggle can only run once per frame
2022-12-11 15:39:57 +01:00
5115db63aa Fix BackBufferCopy rect property appearing when not relevant in inspector
The `rect` property is only effective if `copy_mode` is Rect.
2022-12-08 20:04:56 +01:00
c42bbc6feb Merge pull request #69585 from bruvzg/fix_tm_tr
[TextMesh, 3.x] Fix auto-translation and ignore control chars.
2022-12-05 00:13:42 +01:00
4b7b9b74bc Merge pull request #69569 from timothyqiu/tree-update-remove-child
[3.x] Fix TreeItem.remove_child not updating Tree immediately
2022-12-05 00:13:37 +01:00
efa6b01c97 [TextMesh, 3.x] Fix auto-translation and ignore control chars. 2022-12-04 23:11:28 +02:00
7bdbfbf822 Fix TreeItem.remove_child not updating Tree immediately 2022-12-04 21:37:19 +08:00
1a45268639 Fix animation signal caches_cleared firing timing
(cherry picked from commit 962b6a3e8f)
2022-12-04 20:24:55 +08:00
a6a89356b7 Fix CanvasLayer visibility toggle can only run once per frame 2022-12-04 14:49:19 +08:00
af635f05bf Merge pull request #68630 from m4gr3d/fix_input_event_screen_drag_routing_3x
[3.x] Fix routing of `InputEventScreenDrag` events to `Control` nodes
2022-12-01 18:13:52 +01:00
1a123070c8 Remove auto selecting the first file for FileDialog with Save file mode selected
(cherry picked from commit 5cd30be56d)
2022-12-01 12:27:43 +08:00
2f13adbdb6 Remove error condition from get_global_transform()
(cherry picked from commit 2ff676a696)
2022-12-01 11:47:52 +08:00
0ae562c9dc Update root order on layer change
When the layer of a CanvasLayer changes, the order of roots needs to be recalculated.

(cherry picked from commit 8d60e8b5d4)
2022-12-01 10:23:04 +08:00
099e90e00d Make Node editable_instance methods available to GDScript
(cherry picked from commit 7eb6ae2798)
2022-12-01 10:15:06 +08:00
b28bcb4cfc Fix the logic used to route InputEventScreenDrag events to Control nodes. 2022-11-30 14:16:26 -08:00
3b869e8027 Fix crash of queue_free() when main loop is not SceneTree
(cherry picked from commit 3b08d0e852)
2022-11-30 15:44:49 +01:00
2ab79719b2 Fix ColorPicker always emitting color_changed on html submit
The color change was always emitted when the the modal was closed, even if it was exactly the same as before.

(cherry picked from commit 544727ac1e)
2022-11-30 15:36:25 +01:00
e359ba3733 Fix exporting big templates
(cherry picked from commit 86fa3ba560)
2022-11-30 15:34:26 +01:00
dd807ca5e7 Changed normal of CylinderMesh to account for slanted side.
(cherry picked from commit 491ec622f6)
2022-11-30 15:34:26 +01:00
4150749698 Fix Skeleton3D falsely assuming all physical bones will be children of their first bone
(cherry picked from commit 913f57f695)
2022-11-30 15:34:26 +01:00
6f91639af2 Merge pull request #69246 from nongvantinh/3.x-check-null-for-input_event
3.x Enhance null checking for input event
2022-11-28 13:21:22 +01:00
85811c2b99 [3.x] BakedLightmap add null bake_end_function check 2022-11-28 00:30:17 -08:00
ffbaa7fff0 Enhance null checking for input event 2022-11-27 15:01:34 +07:00
edc85d22fc Faster queue free
Calling queue_free() for large numbers of siblings could previously be very slow, with the time taken rising exponentially with number of children. This looked partly due to ordered_remove from the child list and notifications.

This PR identifies objects that are nodes, and sorts the deletion queue so that children are deleted in reverse child order. This minimizes the costs of reordering.
2022-11-25 09:53:50 +00:00
4c26cac0e6 Improve collision exception error messages for easier understanding 2022-11-19 17:37:42 +01:00
1ad9992ab7 Merge pull request #67995 from YeldhamDev/how_backporting
[3.x] Stop centering clicked suggestions in the autocomplete popup
2022-11-14 23:52:00 +01:00
d80396db03 Merge pull request #68556 from 98teg/flow-container-alignment
Add alignment options to flow container
2022-11-14 14:35:46 +01:00
3acc0779a4 Fix error when having BoneAttachment before PhysicalBone 2022-11-14 08:36:12 +08:00
7a682236df Stop centering clicked suggestions in the autocomplete popup 2022-11-13 09:17:05 -03:00
5d0c29460a Add alignment options to flow container 2022-11-12 12:11:16 +01:00
afdf00c40f [3.x] AtlasTexture in radial modes of TextureProgress 2022-11-04 13:24:47 +03:00
e0682f6d8f Merge pull request #67626 from bruvzg/improve_font_packing_and_delay_texture_update_3
[3.x] Improve font glyph cache packing and texture update.
2022-11-03 11:33:23 +01:00