Yuri Rubinsky
d525d902c1
Fix wrapf
to correct wrap values with 0.1 stepping
...
(cherry picked from commit 09418afbc0
)
2022-06-16 10:10:48 +02:00
smix8
8bd7c6188b
[3.5] Update NavigationServer backport
...
Backports features and bugfixes from current Godot 4.0 to 3.5 and brings functions and codebase of both version largely in sync to make tutorials more compatible and future backports easier.
2022-06-14 05:55:14 +02:00
bruvzg
11a7997a67
[Windows, 3.x] Add support for handling network share paths.
2022-06-13 09:24:35 +03:00
FireForge
53c01540d9
Make Input mouse_mode and use_accumulated_input properties
...
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-06-10 17:33:12 +08:00
kobewi
460fd7c03b
Add Dictionary.merge()
...
(cherry picked from commit a0915e6dee
)
2022-06-09 11:58:48 +02:00
sps1112
ede6ce9847
Bind vararg method flag in core constants
...
(cherry picked from commit 1f361b0367
)
2022-06-09 10:55:17 +02:00
Rémi Verschelde
80b82e4e66
i18n: Misc fixes translation strings
...
Adds some translator comments to solve some questions raised on Weblate.
2022-06-08 12:56:42 +02:00
lawnjelly
1d870403b2
Optimized Mesh Merging
...
Changes from PoolVector to LocalVector and pre-reserving vectors rather than push_back.
2022-06-07 20:16:51 +01:00
lawnjelly
ba74643594
Force unsigned behaviour for bitfield enums
...
Some compilers (notably MSVC) were using signed values for bitfield enums. This was causing problems where 2 bits were used to store 4 or less enum values, where they were being treated as negative numbers.
This PR explicitly requests these enums to be treated as unsigned values.
2022-06-06 16:58:21 +01:00
Aaron Franke
0470392930
[3.x] Improve architectures in OS::has_feature and make it work on MSVC
2022-06-05 23:16:13 -05:00
Haoyu Qiu
1a7e3b3ab6
Fix String.http_escape on Windows
2022-06-03 13:41:45 +08:00
Univeous
e514cd71b1
fix get_meta() with defalt value
2022-05-24 20:23:08 +08:00
Hugo Locurcio
61278499aa
Tweak 64-bit integer overflow message to mention that it's a signed type
...
(cherry picked from commit 7b5bf3af19
)
2022-05-22 19:43:56 +02:00
Haoyu Qiu
b657d0c76c
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NOEDITOR
2022-05-19 11:31:35 +08:00
Haoyu Qiu
b611b4cddc
Create onready variables when dropping nodes and holding Ctrl
2022-05-17 11:52:17 +08:00
Hugo Locurcio
e19f8fcbdc
Improve error messages when creating Images from code
...
The rationale behind the expected number of bytes is now displayed
in clear (width, height, format, number of mipmaps expected if any).
(cherry picked from commit 18e9e6a81a
)
2022-05-16 21:12:21 +02:00
kobewi
621cb8c52f
Move Display settings higher in the list
...
(cherry picked from commit 739242dd04
)
2022-05-16 17:14:43 +02:00
Haoyu Qiu
b40dff698c
Fix invalid memory usage when using Image.convert
...
(cherry picked from commit 34c1a2beaa
)
2022-05-16 17:14:43 +02:00
Rémi Verschelde
5e693b6d84
Fix warnings found by Emscripten 3.1.10
...
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
(cherry picked from commit d8935b27a9
)
2022-05-16 16:38:26 +02:00
Nicholas Huelin
5cedb395dc
Fix inconsistent naming in Time
...
(cherry picked from commit 8409d92282
)
2022-05-16 15:58:36 +02:00
Mario Liebisch
4cfe174263
Increase line counter when parsing comments
...
(cherry picked from commit bf708e72dc
)
2022-05-16 15:56:47 +02:00
Haoyu Qiu
3d1644f7c3
Add search methods for pool arrays
...
* has()
* count()
* find()
* rfind()
2022-05-08 11:07:00 +08:00
Hugo Locurcio
8682874419
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-05-06 19:31:31 +02:00
smix8
da9a88a35a
Allow AStar/AStar2D zero point weight
...
Allow AStar/AStar2D zero point weight.
Limit was set to 1 which seemed like an arbitrary value as lower values down to zero can be useful for common gameplay navigation elements like teleports.
2022-05-06 02:33:31 +02:00
Rémi Verschelde
9e37599f36
Core: Rename math 'phi' arguments to 'angle'
...
(cherry picked from commit e7a58a7eb6
)
2022-05-05 15:02:46 +02:00
mdavisprog
53fb0440d3
Add OS::is_process_running function.
...
Adds the is_process_running function to the native OS class and exposes it to script.
This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.
Documentation is updated to reflect new API function.
(cherry picked from commit f3c1232c59
)
2022-05-05 15:02:46 +02:00
lawnjelly
df7fab51a3
Physics Interpolation - Flush transforms after physics tick
...
Leftover transforms from the physics tick were being flushed during idle, which was causing problems for physics interpolation.
This PR flushes the transforms at the end of the physics tick when physics interpolation is active.
2022-05-04 20:30:46 +01:00
Rémi Verschelde
6ee64331db
Merge pull request #60527 from KoBeWi/unique_names_demastered
2022-05-02 10:48:27 +02:00
Rémi Verschelde
d8e702b010
Merge pull request #60552 from madmiraal/implement-3466-3.x
...
[3.x] Add a method for obtaining display cutouts on Android
2022-05-02 07:58:05 +02:00
Haoyu Qiu
767134fd8d
Fix left aligned integer sign in string formatting
2022-05-01 12:43:03 +08:00
bruvzg
bea7c9be5d
[3.x] Improve embedded PCK loading and exporting.
2022-04-28 11:11:48 +03:00
kobewi
b7336524f2
Expose move_to_trash()
...
(cherry picked from commit b80e52f048
)
2022-04-27 12:41:01 +02:00
kleonc
6f01a949c2
Fix Image.blit_rect/blend_rect()
for negative p_dest
point
...
(cherry picked from commit 4038bc0c36
)
2022-04-27 12:38:27 +02:00
laws65
6aac042faa
Proper validation of negative values in datetime strings and datetime dicts
...
(cherry picked from commit cf9fc0b936
)
2022-04-27 12:22:49 +02:00
Oğuzhan Eroğlu
fd329d19e8
Quick fix: Crash when parsing invalid datetime string #60189
...
(cherry picked from commit 2b8eb126b4
)
2022-04-27 12:22:26 +02:00
Haoyu Qiu
d088128b43
Remove duplicate editor settings definitions
2022-04-27 15:26:46 +08:00
Rémi Verschelde
ba7881bd36
Merge pull request #60366 from adamscott/nav-map-thread-work-pool-3x
...
Use ThreadWorkPool instead of thread_process_array in NavMap [3.x]
2022-04-26 18:45:53 +02:00
Adam Scott
7749346f48
Use ThreadWorkPool instead of thread_process_array in NavMap
...
Port ThreadWorkPool to 3.x
2022-04-26 09:18:46 -04:00
kobewi
e1c74ae83f
Implement Scene Unique Nodes
2022-04-26 13:55:48 +02:00
Marcel Admiraal
ec2270b88f
Add a method for obtaining display cutouts on Android
2022-04-26 13:52:33 +02:00
Rémi Verschelde
ab4bbdde90
Merge pull request #60421 from AndreaCatania/bvo_3x
2022-04-26 11:35:03 +02:00
Rémi Verschelde
5e4358eb73
Merge pull request #60426 from timothyqiu/array-fill
...
[3.x] Add fill method to `Array` and `Pool*Array`
2022-04-25 23:00:17 +02:00
Rémi Verschelde
9260dd3ac1
Merge pull request #60427 from lawnjelly/rid_handles_safer_locks
2022-04-25 15:50:00 +02:00
Haoyu Qiu
8f0f98ffab
Bind Semaphore.try_wait()
2022-04-25 20:47:09 +08:00
Haoyu Qiu
77b6f7595a
Add fill method to Array and PoolArrays
...
Co-authored-by: Matheus Lima Cunha <matheus.limacunha@hotmail.com>
2022-04-23 19:29:17 +08:00
lawnjelly
130cc36a88
Improve locking safety for RID handles builds
...
Additional locks are added. This is primarily to cover a potential race condition where the pool is resized from another thread during a get operation.
2022-04-23 09:09:50 +01:00
AndreaCatania
62e9044837
Backported the oa_hashmap lookup_ptr function
2022-04-22 10:00:55 +02:00
AndreaCatania
6f24727916
Backported the Vector function to_byte_array and slice
2022-04-22 10:00:55 +02:00
RedHeadphone
b6968ab060
validate input in Time.get_datetime_string_from_dict()
...
format fix
better fix to handle ERR_FAIL_COND_V_MSG return data type
(cherry picked from commit 7e35af3dc3
)
2022-04-14 21:38:27 +02:00
Rémi Verschelde
9a45eb70b4
Merge pull request #60204 from akien-mga/3.x-cherrypicks
2022-04-13 14:23:56 +02:00