Commit Graph

6970 Commits

Author SHA1 Message Date
David Cambré dd9121040e
Update default port_grab_distance_vertical
(cherry picked from commit 38ad72af44)
2022-01-12 16:03:28 +01:00
Wilson E. Alvarez 2106c5175a
Expose autotile_coord parameter in TileMap.set_cellv
(cherry picked from commit 4106f95f30)
2022-01-12 16:03:02 +01:00
Rémi Verschelde 2e8fdd0112
Fix typos with codespell
Using codespell 2.1.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```

(cherry picked from commit b197de6f5f)
2022-01-07 00:17:47 +01:00
PucklaMotzer09 1ef1a84c22
Unfocus Control on NOTIFICATION_EXIT_TREE
(cherry picked from commit be2d59fa0a)
2022-01-06 00:58:33 +01:00
kobewi 0c2e919567
Fix TabContainer not setting layout immediately
(cherry picked from commit a7a41a3431)
2022-01-06 00:58:30 +01:00
Kodi febc1aa7d2
add missing emit_changed() to set update mode function
(cherry picked from commit 51db86d789)
2022-01-06 00:58:30 +01:00
Nick Swoboda 56e06648ab
Improve error messages related to failing to open files
(cherry picked from commit bf8f763524)
2022-01-06 00:58:22 +01:00
Zae d55deabae7
[3.x]Fix BaseButton's localization for tooltip text with shortcut
(cherry picked from commit 23aaf78391)
2021-12-21 12:23:20 +01:00
Rémi Verschelde 69585b0516
SceneTree: Document font oversampling, remove warnings
(cherry picked from commit 35b79284cc)
2021-12-14 17:33:21 +01:00
Cory Petkovsek 686780e289
Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
(cherry picked from commit 3d20218dae)
2021-12-09 22:02:00 +01:00
Univeous 42e3187560
Fix UI navigation with joysticks
(cherry picked from commit cf788ae684)
2021-12-07 12:16:05 +01:00
Raffaele Picca d5aa00c2cb
Fix for double use of seed in random Particle shader variables.
(cherry picked from commit 20568b9768)
2021-12-07 12:01:52 +01:00
Raffaele Picca 47f9a316ce
Fix Ring-Axis parameter being always visible
(cherry picked from commit 2f69caaff3)
2021-12-07 09:14:31 +01:00
Yuri Sizov fce6e13034
Make default/project theme wait for modules before initializing
(cherry picked from commit 33fb44223f)
2021-12-02 17:32:36 +01:00
ator-dev 43d23c3926
Prevent hidden tab close buttons from intercepting input [3.x]
(cherry picked from commit a8977006fd)
2021-11-30 10:59:32 +01:00
kobewi b646852765
Don't show tooltips for paused controls
(cherry picked from commit fe28e823c5)
2021-11-29 17:01:51 +01:00
bruvzg 552feba40b
Fix RTL min/max line width calculation.
(cherry picked from commit 33b26e5cdc)
2021-11-29 16:45:32 +01:00
kobewi 97404dc612
Fix right alignment in RichTextLabel
(cherry picked from commit 820f7c9d15)
2021-11-29 16:45:22 +01:00
Eric 2e1646e484
Fix condition on 'jump to limits' logic
This is a fix for: #54856

(cherry picked from commit 7257bb6ad0)
2021-11-29 16:44:53 +01:00
Yuri Sizov 93fe9ecb97
Add methods to get position from column and line in TextEdit
(cherry picked from commit ba747e2a26)
2021-11-29 16:44:34 +01:00
Red Headphone d5bd37a1d1
progress_offset now added to reference cross draw function
(cherry picked from commit 8a6c6d5329)
2021-11-29 16:43:57 +01:00
kobewi f667afc8b2
Show tooltips even when paused or time_scale is 0
(cherry picked from commit 5b55599211)
2021-11-25 23:13:14 +01:00
Haoyu Qiu 58dc743a2c
Allow toggle TextEdit bookmark gutter
(cherry picked from commit eb6f74855f)
2021-11-25 23:13:14 +01:00
clayjohn 5e95d317e6
Update CanvasItem when MultiMesh instance transform changes
(cherry picked from commit b54d4a93be)
2021-11-25 23:13:13 +01:00
Lenny Critchley 0ce0af221a
Add error condition for Control EXIT_TREE notif
(cherry picked from commit 3d1249a520)
2021-11-15 23:36:23 +01:00
robfram 2a3925136e
Only visible TileMaps should add light occluders
(cherry picked from commit cf9220b7d5)
2021-11-15 23:33:26 +01:00
lawnjelly 7de023e192
Portals - Allow user to set roaming expansion margin
Previously a crude metric was used to decide on the roaming expansion margin, but it created unexpected results in some scenarios. Instead this setting is exposed to the user via the RoomManager, allowing them to tailor it to the world size, room sizes, roaming objects sizes and the speeds of movement.

(cherry picked from commit 788f075b44)
2021-11-15 22:45:57 +01:00
Rémi Verschelde 63b5d5de64
Modules: Make sure to include `modules_enabled.gen.h` where needed
Fixes #51677.

Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
(cherry picked from commit 6f4858f184)
2021-11-15 22:36:02 +01:00
PouleyKetchoupp f9710ecb5e
Fix test_move reporting collision when touching another body
Reporting rest collision information is needed for move_and_collide and
move_and_slide so floor detection can be done properly, but in the case
of just testing the motion for collision, it makes sense to return false
if the body is able to move all along the path without being stopped.

Updated the logic in test_move and clarified the documentation for
test_move and move_and_collide.

(cherry picked from commit 1560c8b5aa)
2021-11-15 22:33:16 +01:00
PouleyKetchoupp 7344beafdd
Fix errors in KinematicBody when floor is destroyed or removed
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.

In 2D, there is no change in behavior (just no more errors).

In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.

(cherry picked from commit b93aeec4a2)
2021-11-15 22:32:53 +01:00
Josh Jones a19040d2de
Fix request headers being included in response.
(cherry picked from commit 7df8bd6b85)
2021-11-15 22:24:22 +01:00
PouleyKetchoupp ec0dc93083
Fix errors with invalid bone node path in Polygon2D
NodePath properties are designed to be relative to the given node, so
validity checks are failing in the editor for Polygon2D nodes, which are
relative to the Skeleton2D node rather than the Polygon2D node.

Fixed by saving bone paths as String properties instead of NodePath.

Shouldn't cause a difference for performance since NodePath properties
are technically saved as String anyway.

(cherry picked from commit 8d9619ad46)
2021-11-03 17:31:10 +01:00
Yuri Sizov ec15227be8 Prevent MeshDataTool from crashing due to invalid bones/weights arrays 2021-11-02 16:52:36 +03:00
Michael Alexsander d5adb9e4b4
Fix uninteractable singular tab in `TabBar`
(cherry picked from commit 96fdb030ec)
2021-10-31 23:10:47 +01:00
Rémi Verschelde 14ef65e49b
Merge pull request #54348 from akien-mga/3.x-clang-format-dont-align-operands 2021-10-28 15:43:15 +02:00
Rémi Verschelde 1b65550ec7
clang-format: Various fixes to comments alignment from `clang-format` 13
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 14:50:32 +02:00
Rémi Verschelde 42d385b312
clang-format: Disable alignment of operands, too unreliable
Sets `AlignOperands` to `DontAlign`.

`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Rémi Verschelde 187f293189
Merge pull request #54154 from bjauny/fix_areanotification 2021-10-27 20:38:55 +02:00
Bastien JAUNY a6ca61797c Checking validity of world reference before using it. Fix #54094. 2021-10-27 19:32:44 +02:00
Yuri Sizov b3fc278dcf Ignore property groups and categories in GDScript code completion 2021-10-26 20:01:49 +03:00
Yuri Sizov 7fe0dab69b Add focus font color to Button and derivatives 2021-10-26 17:40:51 +03:00
kobewi cef504b955
Fix multiple definitions of Listener2D
(cherry picked from commit 6b68445e4d)
2021-10-26 13:34:33 +02:00
Rémi Verschelde 8ff437822a
Control: Rename `Input` group that confuses GDScript completion
Fixes #47926.
2021-10-25 22:07:20 +02:00
Zae a1b282cc16
Fix unexpected crashes in `notification`
(cherry picked from commit 924c2078da)
2021-10-25 11:16:59 +02:00
Anton Christoffersson 35eeafdb0c Fixes crash in caused by calling `ColorPickerButton.propagate_notification(33)` 2021-10-25 08:47:44 +02:00
Rémi Verschelde 62f56af694
Merge pull request #54146 from akien-mga/3.x-cherrypicks 2021-10-23 18:34:23 +02:00
Rémi Verschelde 5a48cba649
Merge pull request #54152 from bjauny/fix_treenotification 2021-10-23 18:33:32 +02:00
Bastien JAUNY e74db1de23 #54143 Fix potential null pointer dereference 2021-10-23 14:47:02 +02:00
Sean Kim 378ca68dc1
Fix potential nullptr dereference in CanvasLayer
* Changed another instance of ERR_FAIL_COND in the same file to
  ERR_FAIL_NULL_MSG instead.
* Checked for potential access of the viewport pointer elsewhere in same
  file.

Fixes #54098

(cherry picked from commit 497b00a937)
2021-10-23 11:57:52 +02:00
Kemikal1 fa2feb9bec
Change the unreacheable return value of shape_find_owner()
(cherry picked from commit 563d3dbf94)
2021-10-23 11:57:10 +02:00