Commit Graph

1168 Commits

Author SHA1 Message Date
Haoyu Qiu
9912a99675 Fix crash when editing pinned StyleBox
(cherry picked from commit 4b013a9c967ecc063801b3d4a0e833dcbc865f83)
2022-07-27 19:07:26 +02:00
fcd37a8c38 Ported: Add missing class doc to NavigationMeshGenerator.
Adds missing class documentation for NavigationMeshGenerator bake() and clear() functions.
- smix8
214a00ca2e
2022-07-27 19:07:12 +02:00
smix8
63a51b546e Clamp NavigationMesh sample_distance above zero
While default ReCast library has support for 0.0 'sample_distance' the Godot implementation does not an crashes.
Previously Godot would set all sample_distance values below 0.9 to 0 which causes the crashes.

This limits the sample_distance range selection to 0.1 - 16.0 and also clamps sample_distance that are below 0.1 before ReCast receives them.

(cherry picked from commit e33fa9d8331f38c8c404b9d6ea286eacb503d3bb)
2022-07-27 19:05:26 +02:00
8ef56d4752 Fix unused variable found by emscripten in sqlite3.c. 2022-07-27 19:04:04 +02:00
08c0756260 Ported: Add NavigationServer2D/3D API functions to find missing RID info
Utility functions for NavigationServer2D/3D to find missing RID information when working with Server API directly. e.g. from map to regions and agents, from agent or region to map, from region to map and agents and so on ....
Requirement to work with NavigationServer API exklusive without SceneTree nodes and when juggling agents and regions between multiple navigation maps.
- smix8
3977eb9107
2022-07-27 18:58:09 +02:00
ad080c7017 Ported: Disable threaded NavigationMesh bake on unsupported OS. Automatically disables threaded NavigationMesh bake when OS does not support threads. - smix8
c3b39ca1e9
2022-07-27 18:51:18 +02:00
smix8
4a5982b9e1 Expose NavigationObstacle2D/3D get_rid() and add config warning
Exposes get_rid() function for scripting.
Adds configuration warning when obstacle is used with not intended static body parent.

(cherry picked from commit 001d89223f1377717d2b3d5ec453ff8dd3604182)
2022-07-27 18:49:00 +02:00
smix8
96b8c4d323 Fix NavigationObstacle2D/3D get_global_transform() error
Fixes NavigationObstacle2D/3D reporting a 'get_global_transform: Condition "!is_inside_tree()" error when estimating the agent radius.

The collisionshapes that are lower in the SceneTree order than the obstacle node are not loaded in the SceneTree yet so the global_transform function fails.

Also adds warning message when this happens.

(cherry picked from commit cc707412e909f117ad53ebe53e19bad43acf086a)
2022-07-27 18:48:43 +02:00
SnailRhymer
b574b0371d Document Shape2D's collide_and_get_contacts() and collide_with_motion_and_get_contacts()
Expand on the format of the output array for collide_and_get_contacts and collide_with_motion_and_get_contacts, and describe how the contact point pairs can be used to calculate collision normals and depths.

(cherry picked from commit bdf086c781f2f5d1bf5f4f11f0b29a94a629a0ec)
2022-07-27 18:48:21 +02:00
Hugo Locurcio
c0c4418ce7 Increase compiler optimization when using target=release on iOS/Android
(cherry picked from commit 78b4ec2d4d0d6233ca0f4d8cfeb74640063e970f)
2022-07-27 18:48:04 +02:00
1ed7c12ad4 Ported: Improve AnimatedSprite2D description in the class reference - Megamega53
559c20aa2f
2022-07-27 18:47:43 +02:00
SnailRhymer
e513628c50 Indent bullet points in enum descriptions
When converting doc xml files to rst, add an indenation level to bullet points in the text description of enum values.
Also add check to avoid out of bounds error in rstize_text.

(cherry picked from commit 38cf07b768074b9f9fd5e9081cce9af2dc8b089f)
2022-07-27 18:45:16 +02:00
kobewi
e4133904a2 Move Display settings higher in the list
(cherry picked from commit 739242dd04d16f85d542bcf9a29aa44402410481)
2022-07-27 18:44:38 +02:00
smix8
9c8238ba72 Add Warning to NavigationMesh bake when source geometry is suspiciously big
Adds Warning when users try to bake a NavigationMesh with suspiciously big source geometry and small cellsizes as this baking process will likely fail or result in a NavigationMesh that will create serious pathfinding performance issues.

(cherry picked from commit 79511af7c94b447409d10194239069facef9c4a0)
2022-07-27 18:42:48 +02:00
Haoyu Qiu
3886161d4e Fix invalid memory usage when using Image.convert
(cherry picked from commit 34c1a2beaa8ae92a445b85458d3681f60cd5216f)
2022-07-27 18:42:27 +02:00
Hendrik Brucker
3585f416d4 Fix button icon expansion calculation with empty text
(cherry picked from commit c09a5e277410761733a59a2b207d7320131b2511)
2022-07-27 18:42:10 +02:00
Haoyu Qiu
8790700593 Try to convert OS::execute() output to Unicode on Windows
(cherry picked from commit a71e8081124eaf4eac6059bfeb3550a400bc2002)
2022-07-27 18:41:55 +02:00
bruvzg
e7f9cc8db3 Save and re-apply window icon when changing window style.
(cherry picked from commit b268c4b4bc8a1c246984249b2ce88277df47fe78)
2022-07-27 18:41:32 +02:00
7a8b5a9a7b Ported: CI: Update Emscripten to 3.1.10. That's the version that we'll (tentatively) use for future 3.x and 4.0 builds. akien-mga
b66f94d2ff
2022-07-27 18:41:05 +02:00
24eccc4281 Ported: Fix warnings found by Emscripten 3.1.10
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
- akien-mga
5e693b6d84
2022-07-27 18:39:35 +02:00
b4ed478b6c Ported: Mention that Area2D doesn't support one_way_collision - KoBeWi
bdbbc78da4
2022-07-27 18:32:54 +02:00
kleonc
929216d32a AnimationTrackEditor Fix signal connection on root exiting the tree
(cherry picked from commit 2ede2bac0bb14b96b0d6f65e99d4eeccdc00702b)
2022-07-27 18:29:41 +02:00
kobewi
b6fc4de92f Rescue orphan nodes in inherited scenes
(cherry picked from commit 2b53826ee6872d48acafb9ece1b9027467d2611d)
2022-07-27 18:29:21 +02:00
Nicholas Huelin
c1010f7d1b Fix inconsistent naming in Time
(cherry picked from commit 8409d92282e71f8ad479f48d6b1f6d52eb73ae39)
2022-07-27 18:28:47 +02:00
Mario Liebisch
e1be17e581 Increase line counter when parsing comments
(cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179)
2022-07-27 18:27:16 +02:00
Timo Schwarzer
2f2e3573bd Fix vibration duration on iOS
Fixes #61063
2022-07-27 18:26:32 +02:00
cb6e070227 ported: Make auto_accept_quit and quit_on_go_back properties. - timothyqiu
58650af062
2022-07-27 18:26:15 +02:00
Haoyu Qiu
a29aac105f Swap the meaning of CURSOR_WAIT and CURSOR_BUSY 2022-07-27 18:18:12 +02:00
ead2208a84 Ported: Improve documentation related to Pool*Array value passing caveats - Calinou
b47466bc59
2022-07-27 18:17:30 +02:00
FireForge
71d20ea670 Add interpolation modes to Gradient - Linear, Constant, and Cubic interpolation modes - Partial backport of #53321 2022-07-27 18:12:14 +02:00
b75b256d7f Ported: fix post procressing with transparent bg and keep alpha channel of the tonemap shader output. - Kinwailo
b1a50ad805
2022-07-27 18:11:54 +02:00
Hugo Locurcio
8c930d98b8 Use a floating-point number for the timeout property in HTTPRequest
This allows for greater precision when specifying a timeout in
HTTPRequest in `3.x`, similar to what is already possible in `master`.
2022-07-27 18:01:11 +02:00
75606b352f Ported: Physics Interpolation - Reset on adding child to SceneTree. For convenience, branches added to the SceneTree now have physics interpolation reset after the first update of the transform to the VisualServer. - lawnjelly
328866ee6a
2022-07-27 17:51:39 +02:00
Red Headphone
7ddeae2e23 fix: no quit confirmation on project reload if files are saved 2022-07-27 17:46:15 +02:00
4781f146fb Ported: Physics Interpolation - optimize hidden nodes
In order to prevent glitches when unhiding nodes, set_transform() is still called to the VisualServer even for hidden nodes when the node is interpolated. This activates a lot of logic which is not necessary just to keep the previous transform updated.
This PR adds an early out which misses out on the unnecessary logic when instances are invisible.
- lawnjelly
ec9a17cfad
2022-07-27 17:43:40 +02:00
8e6b320144 Added back method removed by accident. 2022-07-27 15:52:05 +02:00
a8fae729d2 Fix typos in binds. 2022-07-27 15:46:41 +02:00
48eee02c1d Ported: Add search methods for pool arrays
* has()
* count()
* find()
* rfind()
- timothyqiu
3d1644f7c3
2022-07-27 15:44:10 +02:00
4964f541e7 Revert afc9407ae0. 2022-07-27 15:43:40 +02:00
Haoyu Qiu
390735e803 Fix tree button icon not centered vertically 2022-07-27 15:21:35 +02:00
Michael Alexsander
9af14c8d90 Add font_separator to PopupMenu 2022-07-27 15:21:19 +02:00
Haoyu Qiu
d9d2b3a7e3 Fix mismatched font outline size hint 2022-07-27 15:18:57 +02:00
781902dc4d Ported: [3.x] Fix sign comparison error in platform/osx/os_osx.mm - asmaloney
7c6564ef7e
2022-07-27 15:18:43 +02:00
Michael Alexsander
1e2c8637c2 Fix separator height influencing labeled variation in PopupMenu 2022-07-27 15:17:29 +02:00
c94e099389 Fix compile. 2022-07-27 15:16:45 +02:00
eaa0c1016a Ported: Physics Interpolation - add interpolation mode property to node
Exposes the "interpolated" flag on nodes via a property, physics_interpolation_mode.
Mode can be INHERIT, OFF and ON. This makes it easy to turn off interpolation for nodes in the editor, versus via code. - lawnjelly
0ab077fcef
2022-07-27 15:16:37 +02:00
clayjohn
e01c60516b Unpack blend shape arrays when necessary
Blend shapes need to be unpacked if the vertex array is being unpacked
2022-07-27 15:08:25 +02:00
Hugo Locurcio
f7585bea99 Rename profiler "Idle Time" to "Process Time"
References to "idle time" are progressively being replaced by
"process time" throughout the engine to avoid confusion.

This also changes some debug prints to be printed only when verbose
mode is enabled (like in `master`).
2022-07-27 15:08:06 +02:00
Haoyu Qiu
afc9407ae0 Make import defaults inspector honor property style settings 2022-07-27 15:07:38 +02:00
18bb8e671a Ported: [3.x] [Debugger] Add --debug-server CLI option.
Automatically starts the editor debug server at given <IP>:<PORT>.
E.g.:
 # Run editor and debug server listening on any interface, port 8080
godot3 -e --path proj/proj_empty --debug-server *:8080
 # Run the godot project connecting to that debug server.
godot3 --path proj/proj_empty --remote-debug 127.0.0.1:8080
- Faless
225e75daba
2022-07-27 15:07:09 +02:00