Rémi Verschelde
b0b759e6da
SCons: Cleanup `DEBUG`, `_DEBUG` and `NDEBUG` defines
...
- `_DEBUG` is MSVC specific so it didn't make much sense to define for
Android and iOS builds.
- iOS was the only platform to define `DEBUG`. We don't use it anywhere
outside thirdparty code, which we usually don't intend to debug, so it
seems better to be consistent with other platforms.
- Consistently define `NDEBUG` to disable assert behavior in both `release`
and `release_debug` targets. This used to be set for `release` for all
platforms, and `release_debug` for Android and iOS only.
- Due to the above, I removed the only use we made of `assert()` in Godot
code, which was only implemented for Unix anyway, should have been
`DEV_ENABLED`, and is in PoolAllocator which we don't actually use.
- The denoise and recast modules keep defining `NDEBUG` even for the `debug`
target as we don't want OIDN and Embree asserting all over the place.
(cherry picked from commit 26e9145c26
)
2022-12-12 14:49:21 +01:00
Rémi Verschelde
c404cc0e58
Revert "RID: Change comparison operators to use RID_Data id instead of address"
2022-12-12 09:10:37 +01:00
Pedro J. Estébanez
0873cf0656
Keep a single, portable implementation of `OS::get_processor_count()`
...
(cherry picked from commit 6bf02c0162
)
2022-12-12 14:47:37 +08:00
Emmanouil Papadeas
0754c7ee1a
Fix `InputEventAction`'s `is_action` method ignoring `exact_match` parameter
...
(cherry picked from commit 38b51942d6
)
2022-12-12 14:44:20 +08:00
Rémi Verschelde
0cd3db459d
Merge pull request #65079 from lawnjelly/faster_variant_parser
...
Add readahead to VariantParser
2022-12-05 00:13:52 +01:00
lawnjelly
2ef0052113
Fix array-bounds warning in BVH
...
Provides a workaround to prevent tripping a compiler warning.
(cherry picked from commit 91d252c697
)
2022-12-04 20:00:08 +08:00
voidshine
7284230ebe
Fix MIDI note-on events being converted to note-off events
...
Update documentation with note about MIDI velocity interpretation
(cherry picked from commit f0f72b3132
)
2022-11-30 15:36:03 +01:00
Rémi Verschelde
9a340a2868
Project Manager: Fix hacky code for project rename
...
Instantiating a new ProjectSettings is *not* the way to go.
ConfigFile works just fine to read/change a single value.
Fixes memory leaks as the instantiated ProjectSettings was never freed.
Forbid doing this to prevent such problems.
Fixes #25661 .
(cherry picked from commit f21f75eb6f
)
2022-11-30 15:34:27 +01:00
dzil123
d7f6cc26d2
Fix Image::bump_map_to_normal_map incorrectly keeping mipmap flag
...
(cherry picked from commit 1fa8b3dd42
)
2022-11-30 15:34:27 +01:00
Rafał Mikrut
e359ba3733
Fix exporting big templates
...
(cherry picked from commit 86fa3ba560
)
2022-11-30 15:34:26 +01:00
lawnjelly
29d4d4105e
Add readahead to VariantParser
...
Adds a readahead buffer to VariantParser, to prevent large numbers of freads for single bytes, which is inefficient.
2022-11-24 15:58:23 +00:00
Rémi Verschelde
4769aa4499
Merge pull request #64564 from timothyqiu/word-wrap-3.x
...
[3.x] Fix `String::word_wrap()` for long words
2022-11-24 16:06:52 +01:00
Rémi Verschelde
08a6aab661
Merge pull request #68735 from dzil123/v3_pckpacker_error_spam
...
[3.x] Fix PCKPacker error spam
2022-11-19 00:43:22 +01:00
dzil123
b3812750da
[3.x] PCKPacker Fix error spam
2022-11-16 06:52:47 -08:00
Nonunknown
eb5b297fef
add ability to pick random value from array
...
(cherry picked from commit 9f4dbf415d
)
Co-authored-by: BleedingXiko <66162192+BleedingXiko@users.noreply.github.com>
2022-11-14 19:11:41 +01:00
Rémi Verschelde
64635af7ff
Merge pull request #67360 from jordo/PR-expose-property-hints
...
expose additional global enums in 3.x which are available in master
2022-10-31 12:25:04 +01:00
Rémi Verschelde
20ce0284cf
Merge pull request #67313 from Mickeon/3.x-rename-params
...
[3.x] Rename `set_indexed` & `get_child`'s params to be clearer
2022-10-31 12:24:58 +01:00
bruvzg
987723b386
[iOS] Fix build with warnings=extra.
2022-10-31 11:59:31 +02:00
Fredia Huya-Kouadio
be4b07c3e4
Add `double_tap` attribute to `InputEventScreenTouch`
...
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-20 11:56:11 -07:00
Jordan Schidlowsky
dc5226ecfd
expose additional global enums in 3.x which are available in master
2022-10-14 09:33:24 -06:00
Micky
6102f3cfc2
[3.x] Rename `set_indexed` & `get_child`'s params to be clearer
...
3.x backport of #67300 and #64463 .
2022-10-12 20:55:41 +02:00
Rémi Verschelde
b3301d22c5
Merge pull request #66168 from Calinou/expose-os-restart-on-exit-3.x
...
Expose the "restart on exit" OS functionality (3.x)
2022-10-04 16:57:43 +02:00
Rémi Verschelde
506f7d8360
Merge pull request #64870 from MarcusElg/naninfprinting3.x
...
[3.x] Improve string formatting (%f) for inf and nan
2022-10-03 13:57:30 +02:00
Rémi Verschelde
f9b91d8d24
Style: Ensure consistent formatting with clang-format 15
2022-09-21 13:23:17 +02:00
lawnjelly
17f42e8e66
Improve signal already connected error message
...
The signal already connected message is improved to provide the names of the objects involved.
2022-09-21 07:52:30 +01:00
Hugo Locurcio
76a14cfd02
Expose the "restart on exit" OS functionality
...
This can be used to restart a project with specific command line arguments
applied. This can work in tandem with `OS.get_cmdline_args()` to restart
with the same command line arguments as used to originally run the project.
Example use cases:
- Restart to apply an user setting change that requires a restart to work.
- Restart with a Godot command line argument to change the video driver,
audio driver, etc.
2022-09-20 17:27:46 +02:00
Rémi Verschelde
2aee09c6bc
Merge pull request #65428 from lawnjelly/input_uninit
2022-09-09 14:28:06 +02:00
Micky
93943bc1b9
Prevent HTTPRequest from polling invalid client
...
(cherry picked from commit 9e284f68ec
)
2022-09-09 14:17:24 +02:00
Haoyu Qiu
7ed2b09bc0
Fix parsing of XML CDATA and add test cases
2022-09-09 10:16:36 +08:00
lawnjelly
d60eae3dbc
Fix uninitialized data reads in Input
...
Found by Valgrind.
2022-09-06 14:21:01 +01:00
kobewi
fdbef1c074
Add Dictionary.find_key()
2022-09-05 16:08:41 +02:00
Rémi Verschelde
b38ac3f09f
Merge pull request #55618 from madmiraal/fix-55384-3.x
2022-09-01 23:58:12 +02:00
Marcel Admiraal
3cbc6330bb
Fix Geometry::get_closest_points_between_segments() returns NaN
...
Also fix Geometry::get_closest_distance_between_segments() returning
incorrect values.
2022-09-01 17:51:33 +01:00
Rémi Verschelde
4196cc0c00
Merge pull request #64445 from timothyqiu/action-completion-3.x
...
[3.x] Fix action name completion for `Input.get_{axis,vector}`
2022-09-01 08:20:40 +02:00
Fredia Huya-Kouadio
9910d4681d
Additional fixes to the Android `get_current_dir()` implementation.
2022-08-30 10:08:30 -07:00
Pedro J. Estébanez
29e235b341
Add FileAccess::get_access_type()
...
(cherry picked from commit 8c6b2fbb90
)
2022-08-29 15:44:29 +02:00
Rémi Verschelde
a21221d70c
Merge pull request #64298 from Razoric480/raz/bin-cache
...
Fix binary resource internal cache not being filled at polling time
2022-08-29 07:04:31 +02:00
Hugo Locurcio
3b31ff9008
Optimize `String.repeat()`
...
This backports the optimization done in `master`.
Co-authored-by: VolTer <mew.pur.pur@abv.bg>
2022-08-28 18:27:42 +02:00
Rémi Verschelde
5beec641b6
Merge pull request #64933 from madmiraal/fix-error_macros-header-guard-3.x
...
[3.x] Fix header guard in error_macros.h
2022-08-27 09:17:04 +02:00
Rémi Verschelde
c78c9bcf96
Merge pull request #64926 from RandomShaper/ps_res_path_3.x
...
[3.x] Determine `ProjectSettings`' resource path early
2022-08-26 23:03:06 +02:00
Marcel Admiraal
e2dac6ecd9
Fix header guard in error_macros.h
2022-08-26 16:04:54 +01:00
Pedro J. Estébanez
89892e4f32
Determine ProjectSettings' resource path early
2022-08-26 15:09:19 +02:00
Marcus Elg
e9cbe9517b
Improve %f formatting for inf and nan
2022-08-25 12:58:38 +02:00
Rémi Verschelde
8388ea1d6b
Merge pull request #64839 from akien-mga/3.x-zstd-1.5.2
...
zstd: Update to upstream version 1.5.2
2022-08-25 00:51:28 +02:00
bruvzg
b7c9eb1a3c
Add arch flag to assembler to fix build on ARM64 macOS / iOS.
...
(cherry picked from commit b767d2e0fd
)
2022-08-24 18:26:28 +02:00
Rémi Verschelde
bda382684f
zstd: Update to upstream version 1.5.2
...
Release notes:
- https://github.com/facebook/zstd/releases/tag/v1.5.1
- https://github.com/facebook/zstd/releases/tag/v1.5.2
(cherry picked from commit 39ed39900e
)
2022-08-24 18:26:14 +02:00
Marcin Nowak
90762b9660
[3.x] Backport panning strength parameters from 4.0
2022-08-23 23:27:51 +02:00
Haoyu Qiu
51fd1c27aa
Fix String::word_wrap() for long words
2022-08-18 16:56:38 +08:00
Haoyu Qiu
e6dd71d227
Fix action name completion for `Input.get_{axis,vector}`
2022-08-15 23:44:11 +08:00
Francois Belair
d331e5c7ac
Fix binary internal cache not being filled
2022-08-14 12:30:59 -04:00