37e287d86d
Backported goodies to SelfList from Godot4.
2024-03-02 12:01:27 +01:00
4cdb163626
Backported create_reference() helper methods for InputEvents from godot 4.
2024-03-01 21:45:27 +01:00
cf7b59b6c8
Fix small formatting inconsistencies.
2024-03-01 16:25:19 +01:00
dcd00dec81
Fix incorrect clipping in String::substr_index().
2024-02-26 13:22:15 +01:00
8c06dce33f
Now PROPERTY_HINT_BUTTON adds the property's name as the called method's first parameter.
2024-02-25 22:09:25 +01:00
66c2b12fc0
Added a new method to Expression so it can be used with multiple threads simultenously.
2024-02-25 10:25:46 +01:00
fa2a54a019
Added a way for platforms to define a custom resource pack location.
2024-02-17 22:14:44 +01:00
8284ff56b8
Fix DirAccess::get_filesystem_abspath_for() for .pck files.
2024-02-16 22:11:54 +01:00
3da74f0703
Added get_global_class_name method to Script. Now GDScriptParser uses this first to determine global class names, instead of parsing the script file again.
2024-02-13 20:09:46 +01:00
a5d8696021
Ported: Vertex cache optimizer
...
Optimizes indices to make good use of vertex cache on GPU.
- lawnjelly
0aa22b8f13
2024-02-08 21:35:01 +01:00
f63ed4be75
Sync controller mappings DB with SDL2 community repo
...
Synced with mdqinc/SDL_GameControllerDB@232c738
2024-02-08 17:37:12 +01:00
Rémi Verschelde
f073af9af6
zlib/minizip: Update to version 1.3
...
Remove `infback.c` which we don't need.
The `OF` macro was also removed so I can drop the patch where I yell
at Gentoo developers.
(cherry picked from commits e0e1f2e4a2056db1a908af75612daaaf5b129ebd
and 071499ac0d8e33e6f269437c3ce4fab52cc43f90)
2024-02-08 15:06:20 +01:00
Rémi Verschelde
b44ee23cee
Web: Clarify that OS.get_unique_id
is not supported
...
Remove the base error message in `OS`, we no longer really error out this
way for not implemented methods. Instead, each platform should override them
to provide the context they want.
Fixes #82439 .
(cherry picked from commit 0a10f09ce4321695940a626eef9c64b36f599193)
2024-02-08 15:05:20 +01:00
Caroline Joy Bell
0f099eca32
Fix #if *_ENABLED
inconsistencies, should check if defined
...
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-02-08 14:16:03 +01:00
Cody Roberts
eb8ca6d2ed
Add project settings for AVAudioSessionCategory on iOS
...
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2024-02-08 14:06:59 +01:00
A Thousand Ships
8341ddc450
Fix AABB.encloses failing on shared upper bound
...
This differs from `Rect2` and was fixed for those classes in the past
2024-02-08 14:00:08 +01:00
Bastien JAUNY
15cccb331f
Fix unitialized variables in core
2024-02-08 13:43:25 +01:00
8ddf92681e
Fixed smaller issues in VariantOP.
2024-01-20 12:50:13 +01:00
c03536414c
Fixed typo.
2024-01-19 15:32:17 +01:00
585358e91b
Added missing setters to VariantOP.
2024-01-07 11:46:05 +01:00
43b14a071c
Added to_real helper methods to String.
2023-12-27 13:02:57 +01:00
57c3233187
Optimized path_clean_end_slash in String.
2023-12-22 19:26:41 +01:00
4d6b2f6f55
Fix logic in String::substr_index.
2023-12-22 15:35:35 +01:00
4f6d95d77e
Fix warning.
2023-12-20 23:25:00 +01:00
2e41d4dfcd
Now unicode error printing is disabled by default. Also can be enabled via a macro.
2023-12-20 23:21:32 +01:00
Rémi Verschelde
1c70f86950
Fix various GCC 13 warnings
...
Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
2023-12-20 22:57:54 +01:00
Fabio Alessandrelli
f95754186a
Fix File.get_buffer returning wrong length
...
File.get_buffer always returned as many bytes as requested (even when
EOF was reached), this resulted in random bytes being returned when
overflowing.
2023-12-20 22:29:54 +01:00
Angad Kambli
341f89b10c
Check parameter validity in Object::set_script
...
Fixes #46120 .
(cherry picked from commit 9c6c2f09e07e65f7819920c4954a7fd54b37d3f6)
2023-12-20 22:20:51 +01:00
8f03370bfa
Updated controller mappings DB from godot.
2023-12-20 22:19:10 +01:00
429575fab6
File copyright header updates pt8.
2023-12-18 00:18:53 +01:00
ae854d4e55
File copyright header updates pt7.
2023-12-18 00:02:58 +01:00
443140a9e8
File copyright header updates pt5.
2023-12-17 23:07:28 +01:00
5088d32fa0
Removed my old copyright headers.
2023-12-17 22:59:50 +01:00
99621357a0
File copyright header updates pt4.
2023-12-17 22:50:00 +01:00
22ec1be9b3
File copyright header updates pt3.
2023-12-17 22:42:34 +01:00
c12e2b34ad
File copyright header updates pt2.
2023-12-17 22:39:31 +01:00
337c99e52f
File copyright header updates pt1.
2023-12-17 22:29:33 +01:00
70f749688b
Renamed DisplayServer to WindowServer.
2023-12-12 14:51:08 +01:00
a99e07563d
Initial DisplayServer method setup.
2023-12-12 14:39:28 +01:00
88e9ad04f2
Moved back the servers and resources from core.
2023-12-10 23:11:07 +01:00
63c895747a
Moved Curve and Gradient to core.
2023-12-10 20:23:51 +01:00
e32155717c
Moved 2d shapes to core.
2023-12-10 20:03:16 +01:00
9d2309bfe1
Moved shapes to core.
2023-12-10 19:58:44 +01:00
053f083e17
Moved the Physics 2d server to core.
2023-12-10 19:42:57 +01:00
dbcc6e33da
Moved the physics server to core.
2023-12-10 19:36:00 +01:00
238bf1b331
Moved the RenderingServer to core.
2023-12-10 19:04:24 +01:00
049440aaf1
Moved BitMap to core.
2023-12-10 18:07:25 +01:00
3902cf1924
Moved ScneeStringNames and PropertyUtils into scene/main.
2023-12-10 18:01:51 +01:00
191e9e152e
Added quote_style argument to get_argument_options().
2023-12-10 16:02:08 +01:00
9df5649c1b
Moved CanvasItem, Control, Node2D and Spatial under scene/main.
2023-12-10 15:50:54 +01:00
7ec207ba27
Fix abs call.
2023-12-10 14:58:37 +01:00
01a5847d7f
The default log level in PLogger is now message.
2023-10-25 01:45:37 +02:00
fe717c76d8
Call the proper methods in PLogger. Also use ERR_PRINT when logging errors.
2023-10-25 01:43:37 +02:00
b4f0ef4493
Added log level support for PLogger.
2023-10-25 01:25:15 +02:00
e1f64a84ad
Added missing conversion.
2023-10-12 11:44:23 +02:00
b4692f1763
Port4ed from godot: Add binary MO translation file support. Add brotli decoder and WOFF2 support.
...
Use smaller .mo files instead of .po, if gettext is available.
Convert editor fonts to .woff2 format.
- bruvzg
fd2fba7c2c
2023-10-02 21:12:03 +02:00
7df893ab6b
Ported from godot: Add context support for editor translation
...
- timothyqiu
878cf8262a
2023-10-02 20:48:04 +02:00
风青山
f7f7c17962
BVH - fix axis getting mixed up when split leaf
...
Split preferentially on longest axis, rather than shortest axis.
2023-10-02 16:56:12 +02:00
风青山
1813300d53
BVH - fix not refitting upward from leaf nodes
...
Fix leaf node possibly not updating aabb due to wrong node id.
Additionally, when requesting a new leaf, mark `dirty` as `false` in `clear()`.
2023-10-02 16:55:52 +02:00
Danil Alexeev
2d4e9c4656
Core: Add recursion level check for VariantWriter::write()
2023-10-02 16:25:48 +02:00
5fd0326745
Added a new SubProcess class with a Uniz backend for better process control.
2023-09-10 12:19:51 +02:00
1230419fb7
Register and bind the _ScriptServer.
2023-09-10 08:25:06 +02:00
9207afc6cb
Added run, create_process and create_instance helper methods to OS. Inspired by godot4's split of execute.
2023-09-10 08:20:35 +02:00
9a2bf73280
Backported _shortcut_input() virtual from godot4.
2023-09-07 09:56:16 +02:00
b506468b53
Revert "Backport implement loading DDS textures at run-time"
...
This reverts commit 4b76c7e89c
.
Apparently it can cause issues.
2023-09-06 09:13:08 +02:00
0a9c9ca15e
Ported godot pr: [3.x] Allow exporting custom resources from/to any scripting language (GDScript, VisualScript, C#, NativeScript, PluginScript)
...
- willnationsdev
https://github.com/godotengine/godot/pull/44879
Using the rebased version from 02d1f70ee5
by Atlinx
2023-09-06 01:45:29 +02:00
62e2b1623a
Use NULLs.
2023-08-30 13:24:46 +02:00
7e270262f9
Ported: Fix binary internal cache not being filled
...
- Razoric480
d331e5c7ac
2023-08-30 13:00:53 +02:00
5d93975c8d
Ported: Fix custom res caching sub-res even if no-cache
...
-Razoric480
2ceb93bbef
2023-08-30 12:55:37 +02:00
Francois Belair
90d7912fcc
Actually use loaded resource cache
2023-08-30 11:37:34 +02:00
Danil Alexeev
254cb747b7
Core: Add recursion level check for Array
and Dictionary
hashing
2023-08-30 11:34:00 +02:00
Paweł
adb36972f5
Fix Windows StringFileInfo structure
...
(cherry picked from commit e15a086bb99f450fbfa223fe8896c47a860735fc)
2023-08-30 10:52:11 +02:00
Bartłomiej T. Listwon
68667d1563
Fix moving position indicator out of bounds in FileAccessMemory
...
(cherry picked from commit bff0c71e2e2cb9b880181cc819c4753abfe59508)
2023-08-30 10:49:44 +02:00
Yuri Rubinsky
9a1705eac2
Fix crash when calling fill
method on an empty Image
...
(cherry picked from commit adec51cde87d29dd74efb6e5cd0167990de8d569)
2023-08-30 10:18:36 +02:00
65d4c57233
Added translate_to() method to TranslationServer, and trt() method to Object. This let's you transalte strings into specific (noon app wide) locales.
2023-08-29 22:02:31 +02:00
d977ed360e
Ported: 2D Fixed Timestep Interpolation
...
Adds support to canvas items and Camera2D.
- lawnjelly
5162efbfe9
2023-08-27 18:48:25 +02:00
Simon Barkehanai
12eba08f8c
Fix infinite loop on EOF in the command line debugger
...
When using the command line debugger (godot -d) on Unix systems, when
entering an EOF (ctrl+D), the debugger enters an infinite loop.
Adding a check for EOF in the debugger loop exits the debugger when EOF
is entered.
Fixes #50170 .
(cherry picked from commit 4ecad8dea30859a5acbac41fe0e647c7bb6a53cc)
2023-08-27 12:14:55 +02:00
RedworkDE
f3167d1c65
Fix ProjectSettings::localize_path
for Windows paths
2023-08-27 12:05:08 +02:00
puzzud
21d78d77f6
Prevent double input events on gamepad when running through steam input #79706
...
Co-authored-by: Eoin O'Neill <eoinoneill1991@gmail.com>
2023-08-27 11:47:35 +02:00
Marcin Nowak
4b76c7e89c
Backport implement loading DDS textures at run-time
2023-08-27 11:31:12 +02:00
c80ee8d7bf
Added missing Variant conversion and zero cases.
2023-08-15 10:23:41 +02:00
834cbe8cef
Ported: Single Compilation Unit build.
...
Adds support for simple SCU build.
This speeds up compilation by compiling multiple cpp files within a single translation unit.
- lawnjelly
43e181a00a
2023-07-11 16:07:36 +02:00
be022b610f
Bind RWLock, so it's accessible to scripts.
2023-07-06 21:17:13 +02:00
d3f2e0e4fe
Fixed SkeletonModification3DFABRIK.
2023-06-22 09:43:55 +02:00
1a5cba555c
Backported godot4 PR: Support threads in the script debugger
...
* This implementation adds threads on the side of the client (script debugger).
* Some functions of the debugger are optimized.
* The profile is also now thread safe using atomics.
* The editor can switch between multiple threads when debugging.
This PR adds threaded support for the script language debugger. Every thread has its own thread local data and it will connect to the debugger using multiple thread IDs.
This means that, now, the editor can receive multiple threads entering debug mode at the same time.
- reduz
PR 76582
Will be available here after it's merged:
6b176671c4
2023-06-14 14:43:55 +02:00
d4175f9676
Ported parts of : Refactor Node Processing
...
* Node processing works on the concept of process groups.
* A node group can be inherited, run on main thread, or a sub-thread.
* Groups can be ordered.
* Process priority is now present for physics.
This is the first steps towards implementing godotengine/godot-proposals#6424 .
No threading or thread guards exist yet in most of the scene code other than Node. That will have to be added later.
- reduz
98c655ec8d
- Only got the smaller improvements, and the thread safety for Node and SceneTree. I'm planning to implement a similar system, but I have a different way of doing it in mind.
2023-06-12 21:13:26 +02:00
3afa1142b9
Merged the functionality of BSInputEventKey to InputEventKey. This new setting can make input event keys act as if they are shortcut matched.
2023-06-11 16:06:09 +02:00
3331a7ae04
Ported: Augment the InputEvent class with a CANCELED state
...
The `InputEvent` class currently supports the `pressed` and `released` states, which given the binary nature, is represented by a `bool` field.
This commit introduced the `CANCELED` state, which signals that an ongoing input event has been canceled.
To represent all the states, the `InputEventState` enum is added and the `InputEvent` logic is refactored accordingly.
- m4gr3d
94d6c3dcc6
2023-06-11 10:26:23 +02:00
6c9843e5cb
Ported: Test, refactor and fix a bug in Basis.get_axis_angle
...
- fabriceci
9f1a57d48b
2023-06-11 09:45:23 +02:00
e21a020b86
Add unsafe version from asin and acos.
2023-06-11 08:45:19 +02:00
lawnjelly
22d90711da
Make acos and asin safe
...
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input.
The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe.
2023-06-11 08:41:42 +02:00
53358e6825
Removed the PMath singleton. If needed it can easily be recreated as a module.
2023-06-11 08:34:57 +02:00
f058c87868
Backported from godot4: Rework Navigation Avoidance
...
Rework Navigation Avoidance.
- smix8
a6ac305f96
2023-06-10 20:58:49 +02:00
2e1e153bc3
Make MultiMeshInstance2DNavigationGeometryParser2D use the Geometry singleton. And by proxy clipper 1.
2023-06-07 15:25:32 +02:00
6eb37ff901
Ported clipper2 usage to clipper1 in PandemoniumNavigationMeshGenerator. Also moved them to the Geometry singleton.
2023-06-07 09:20:36 +02:00
bb753653dd
Don't print an error in ThreadPoolJob's _execute, as it's probably more intuitive this way.
2023-06-05 14:17:50 +02:00
4873a3429d
Don't bind _execute() method in ThreadPoolJob derived classes, as it's not needed anymore.
2023-06-05 14:15:49 +02:00
642b5b7159
Use call_deferred when emitting the completed signal, so the handlers run on the main thread.
2023-06-05 09:11:39 +02:00
6dc774cf5c
Emit the completed signal automatically in ThreadPoolJob.
2023-06-05 09:08:22 +02:00
9a2a39923a
Added virtual _execute to threadPoolJob.
2023-06-05 09:05:16 +02:00