Eric M
28b7c1be80
Improve implementation of builtin action overrides
2021-09-21 22:25:31 +10:00
Hugo Locurcio
2560070c0a
Remove Engine.editor_hint
in favor of Engine.is_editor_hint()
...
The `Engine.set_editor_hint()` setter method is no longer exposed
to scripting, which makes the property effectively read-only from
an user perspective.
2021-09-20 14:24:39 +02:00
Rémi Verschelde
0068247ab6
Merge pull request #52513 from Ev1lbl0w/fix_path_double_slash
...
Fix path with multiple slashes not being corrected on templates
2021-09-20 13:00:29 +02:00
Rémi Verschelde
89417ba75b
Merge pull request #52398 from deakcor/dev-transform
2021-09-20 08:46:51 +02:00
Vincent D
aa82cb6f35
Expose get_skew for transform2d and add new constructor
...
Expose set_scale and set_skew for transform2d
Replacing float by real_t
Adding const parameters
Updated transform2d doc
2021-09-19 17:10:05 +02:00
George Marques
262d9397fb
Allow indexing of String values in scripting languages
2021-09-17 16:24:56 -03:00
Rémi Verschelde
220b69ab56
Merge pull request #52450 from aaronfranke/they-came-from-scale
...
Replace Vector3.to_diagonal_matrix with Basis.from_scale
2021-09-17 19:38:36 +02:00
George Marques
455e142d37
Allow comparing equality between builtin types and null
2021-09-17 12:33:52 -03:00
Aaron Franke
bf0213470c
Replace Vector3.to_diagonal_matrix with Basis.from_scale
2021-09-17 10:30:30 -05:00
Rémi Verschelde
191c34eb0d
Merge pull request #52734 from lucypero/thread_override_master
2021-09-16 21:45:04 +02:00
Lucy
e9723efd34
Allow for platform Thread implementation override
2021-09-16 11:23:29 -03:00
Rémi Verschelde
104a6191fd
Merge pull request #52739 from BastiaanOlij/gdextension_array_index
2021-09-16 15:15:02 +02:00
Rémi Verschelde
46e37545b8
Merge pull request #52740 from akien-mga/os-get_locale-language
...
Implement `OS::get_locale_language()` helper method
2021-09-16 14:23:06 +02:00
Bastiaan Olij
25d0e4bb5b
Add GD extensions operator functions for arrays
2021-09-16 22:00:51 +10:00
Rémi Verschelde
ca5c28fed4
Merge pull request #52358 from kleonc/astar_error_messages
...
`AStar` Add error messages
2021-09-16 13:36:13 +02:00
Rémi Verschelde
910c7dbdb7
Merge pull request #52735 from BastiaanOlij/gdextension_property_group
...
Add property group and subgroup registration to extensions
2021-09-16 11:02:59 +02:00
Rémi Verschelde
def99c7baf
Implement OS::get_locale_language()
helper method
...
This method extracts the 2 or 3-letter language code from `OS::get_locale()`,
making it easier for users to identify the "main" language code for users
that might have different OS locales due to different OS or region, but
should be matched to the same translation (e.g. "generic" Spanish).
Fixes #40703 .
2021-09-16 09:34:58 +02:00
Juan Linietsky
e2bd0a0a73
Merge pull request #52571 from timothyqiu/expose-enum
...
Expose enum related methods in ClassDB
2021-09-15 23:43:35 -03:00
Bastiaan Olij
12868791f2
Add property group and subgroup registration to extensions
2021-09-16 12:37:43 +10:00
Aaron Franke
5d03c0e0b6
Fix String::num_real and String test cases when compiling with doubles
2021-09-15 13:41:12 -05:00
Rémi Verschelde
fbef32ab46
Merge pull request #52693 from akien-mga/fixup-inputmap-macos-override
...
InputMap: Fixup `macos` feature tag overrides after #52291
2021-09-15 13:20:40 +02:00
Rémi Verschelde
07a58230ea
InputMap: Fixup macos
feature tag overrides after #52291
...
Fixes #52691 .
2021-09-15 11:48:54 +02:00
Jacob Edie
2b292a1a2a
--single-window is passed through project manager.
...
This means you can start godot with --single-window
2021-09-15 10:20:50 +02:00
Rémi Verschelde
3705ad7d8f
Merge pull request #52123 from lightspot21/fix-placement-new-warning
...
Silence false-positive warning for malformed placement new on GCC 11.1
2021-09-15 09:31:42 +02:00
Rémi Verschelde
0e7beb183a
Merge pull request #52562 from BastiaanOlij/gd_extensions_register_drivers
...
Add driver types to GD extension initialisation levels
2021-09-15 08:46:43 +02:00
Rémi Verschelde
1201ba6649
Merge pull request #52291 from Calinou/inputmap-rename-osx-macos
...
Rename `osx` to `macos` in input map feature tag handling
2021-09-15 08:45:46 +02:00
Hugo Locurcio
9b1986fb9c
Rename osx
to macos
in input map feature tag handling
...
This follows the general feature tag rename for 4.0.
2021-09-15 03:12:18 +02:00
PouleyKetchoupp
2ca94e51e4
Clean convex hull decomposition code
...
Remove unnecessary conversion between triangle data and vertex data
whenever possible.
2021-09-14 17:14:06 -07:00
Grigoris Pavlakis
abef2b7194
Fix placement new on zero-sized region warning on GCC 11.1
...
On latest (11.1 as of this commit) GCC, the following warning is
continuously issued during build:
warning: placement new constructing an object of type
'SafeNumeric<unsigned int>' and size '4' in a region of type
'uint32_t*' {aka 'unsigned int*'} and size '0' [-Wplacement-new=]
This happens because on 98ceb60eb4
the new operator override used
was dropped and replaced with standard placement new. GCC sees the
subtraction from the pointer and complains as it thinks that the
SafeNumeric is placed outside an allocation, not knowing that the
address requested is already inside one.
After suggestions, the false positive is silenced, with no other
changes.
2021-09-15 00:07:21 +03:00
Fabio Alessandrelli
c5a979eba5
Merge pull request #52613 from V-Sekai/fix_custom_sync_commands
...
Fix custom multiplayer sync commands
2021-09-14 21:27:12 +02:00
Rémi Verschelde
1cec7057bf
Merge pull request #52535 from e8newallm/52490-type_conversion
...
Added explicit type conversion to uint32_t
2021-09-14 15:36:52 +02:00
Aaron Franke
3a902c66c4
Revert some URLs from the "Replace HTTP URLs with HTTPS" PR
2021-09-13 15:18:35 -05:00
Rémi Verschelde
70ba366743
Merge pull request #50375 from Paulb23/code_edit_unit_tests
2021-09-13 21:51:20 +02:00
Rémi Verschelde
41562b9198
Merge pull request #52049 from theraot/master
2021-09-13 16:49:24 +02:00
Matthew Newall
f048a9ad4e
Added explicit type conversions
2021-09-13 14:26:47 +00:00
Bastiaan Olij
f9849a2717
Add driver types to GD extension initialisation levels
2021-09-13 18:50:00 +10:00
SaracenOne
dace12082b
Fix custom multiplayer sync commands
2021-09-12 21:20:10 +01:00
Haoyu Qiu
d2aef4c439
Expose enum related methods in ClassDB
2021-09-11 20:33:05 +08:00
Juan Linietsky
6679790fac
Merge pull request #52406 from ellenhp/libvorbis
...
Replace stb_vorbis with libvorbis
2021-09-10 16:24:59 -03:00
Max Hilbrunner
744d5829b7
Merge pull request #52229 from lawnjelly/basis_quat_warning
...
Improve Basis::get_quaternion error message
2021-09-10 13:21:00 +02:00
Ricardo Subtil
eef0327d1e
Fix path with multiple slashes not being corrected on templates
2021-09-10 11:14:40 +01:00
Ellen Poe
f5d9c7b487
Replace stb_vorbis with libogg+libvorbis
2021-09-09 19:39:04 -07:00
Fabio Alessandrelli
e6106edd16
Merge pull request #52408 from GiantBlargg/fix-string-cast
...
Fix invalid string cast
2021-09-08 15:31:25 +02:00
Max Hilbrunner
5b25457794
Multiplayer networking renames/simplification
...
Removes _networking_ prefix from some methods and members, now that multiplayer has been largely moved out of Node and SceneTree and is seperated into its own set of classes.
2021-09-08 12:05:54 +02:00
Max Hilbrunner
f8fb2bc0b4
Merge pull request #52097 from mortarroad/master-fix-convex-hull-double-edges
...
Fix emitting duplicate edges for convex hulls
2021-09-07 21:50:16 +02:00
Juan Linietsky
58388f8cec
Merge pull request #47391 from Calinou/platform-feature-tags-lowercase
...
Make platform feature tag names lowercase
2021-09-07 16:30:50 -03:00
Max Hilbrunner
9ada29e918
Merge pull request #52289 from Calinou/remove-old-msvc-support-ifdef
...
Remove `#ifdefs` for handling compilation with Visual Studio < 2015
2021-09-07 21:01:44 +02:00
Max Hilbrunner
acc776f7b6
Merge pull request #52442 from Faless/mp/4.x_rpc_manager
...
[Net] Move multiplayer classes to own subfolder. Split RPC from MultiplayerAPI.
2021-09-07 18:44:39 +02:00
Fabio Alessandrelli
bf9aae09ba
[Net] Move multiplayer to core subdir, split RPCManager.
...
Move multiplayer classes to "core/multiplayer" subdir.
Move the RPCConfig and enums (TransferMode, RPCMode) to a separate
file (multiplayer.h), and bind them to the global namespace.
Move the RPC handling code to its own class (RPCManager).
Renames "get_rpc_sender_id" to "get_remote_sender_id".
2021-09-07 11:14:30 +02:00
Gilles Roudière
4bd7700e89
Implement properties arrays in the Inspector.
2021-09-07 09:51:28 +02:00
Anilforextra
a1f616dcfc
Use builtin Vector2 functions for calculation of angles.
...
.
2021-09-07 08:30:26 +05:45
Gilles Roudière
c6f6c05a52
Merge pull request #51722 from TokageItLab/implement-set-read-only-in-extended-class
...
Apply `set_read_only()` to child classes of `EditorProperty` elements
2021-09-05 18:58:02 +02:00
Silc 'Tokage' Renew
facf8f1883
Apply set_read_only() to child classes of EditorProperty elements
2021-09-05 18:22:17 +09:00
Daniel Doran
3264ba296e
fix invalid string cast
2021-09-04 21:38:07 -06:00
Bastiaan Olij
f3ab094133
Merge pull request #52309 from BastiaanOlij/add_extension_index_functions
...
Add functions for access members by index on packed array objects
2021-09-05 11:52:43 +10:00
kleonc
71255bc2a9
AStar Add error messages
2021-09-03 00:06:23 +02:00
SaracenOne
f09f12ce55
Fix _send_default_spawn_default function sending zero length
...
PackedByteArray when deriving from a single PackedByteArray
state variant.
2021-09-02 21:36:54 +01:00
Bastiaan Olij
23f27fbffc
Add functions for access members by index on packed array objects
2021-09-02 09:41:35 +10:00
Paulb23
d186862338
Fix InputMap and display server not nulling singleton on free
2021-09-01 16:46:04 +01:00
George Marques
25ae279317
Merge pull request #52270 from KoBeWi/goodbye_polar
...
Remove cartesian2polar and polar2cartesian
2021-09-01 09:33:13 -03:00
George Marques
cf59028972
Merge pull request #48237 from KoBeWi/they_came_from_angle
...
Add Vector2.from_angle() method
2021-09-01 09:32:42 -03:00
Hugo Locurcio
ac7541c1b1
Merge pull request #52026 from Calinou/constiterator-fix-const
...
Fix ConstIterator to allow `for` range loops on Packed*Array
2021-09-01 14:25:01 +02:00
Hugo Locurcio
2daaf0fdc3
Make platform feature tag names lowercase
...
Feature tag names are still case-sensitive, but this makes built-in
feature tags more consistent.
- `Windows` -> `windows`
- `OSX` -> `osx`
- `LinuxBSD` -> `linuxbsd`
- `Android` -> `android`
- `iOS` -> `ios`
- `HTML5` -> `html5`
- `JavaScript` -> `javascript`
- `UWP` -> `uwp`
2021-08-31 20:34:44 +02:00
Hugo Locurcio
fc0bfbb33b
Remove #ifdefs
for handling compilation with Visual Studio < 2015
...
Godot 3.3 and later require Visual Studio 2017 to be compiled.
2021-08-31 20:04:17 +02:00
kobewi
3f3739ccb5
Add Vector2.from_angle() method
2021-08-31 01:53:58 +02:00
Juan Linietsky
bcd73fc00a
Merge pull request #52240 from Rubonnek/rename-rel-path
...
Rename `String::is_rel_path` to `String::is_relative_path`
2021-08-30 20:45:45 -03:00
kobewi
017c94222e
Remove cartesian2polar and polar2cartesian
2021-08-31 01:41:41 +02:00
Juan Linietsky
6dab6e4136
Revert " Improve collision generation usability in the new 3D scene import workflow."
2021-08-30 11:30:36 -03:00
Camille Mohr-Daurat
b60a51f023
Merge pull request #51985 from AndreaCatania/coll
...
Improve collision generation usability in the new 3D scene import workflow.
2021-08-30 07:25:51 -07:00
lawnjelly
d3a3b3aff3
Improve Basis::get_quaternion error message
...
The previous error message incorrectly suggested that any Basis could be fixed by calling get_rotation_quation() or orthonormalize(). This PR points out that only a valid rotation Basis can be fixed in this way.
2021-08-30 07:26:25 +01:00
Haoyu Qiu
fd52e18d19
Try other resolved IPs if one fails to connect
2021-08-30 13:00:48 +08:00
Wilson E. Alvarez
d11c1afc04
Rename String::is_rel_path to String::is_relative_path
2021-08-29 20:41:29 -04:00
Fabio Alessandrelli
64b9f30b92
[Net] Rename RPC "puppet" to "auth" (authority). Drop "master".
...
This commit completely removes the RPC_MODE_MASTER ("master" keyword),
and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword).
This commit also renames the "Node.[get|set]_network_master" methods to
"Node.[get|set]_network_authority".
This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY.
RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by
any puppet peer on the master, while RPC_MODE_PUPPET meant that it would
be callable by the master on any puppet.
Beside proving to be very confusing to the user (referring to where it
could be called instead of who can call it) the RPC_MODE_MASTER is quite
useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with
the exception that the network master cannot. While this could be useful
to check in some case, in such a function you would anyway need to check
in code who is the caller via get_rpc_sender_id(), so adding the check
there for those rare cases does not warrants a dedicated mode.
2021-08-30 00:54:38 +02:00
Fabio Alessandrelli
838a449d64
Merge pull request #51788 from Faless/mp/4.x_replicator_sync
...
[Net] MultiplayerReplicator state sync.
2021-08-30 00:48:10 +02:00
Hugo Locurcio
4d08a737fb
Merge pull request #52180 from timothyqiu/config-file-prop
...
Quote and escape ConfigFile keys when necessary
2021-08-28 23:49:00 +02:00
Max Hilbrunner
04c64b59a1
Merge pull request #47406 from mashumafi/master-Array-insert-rc
...
Array::insert consistent with Pool*Array::insert
2021-08-28 21:18:39 +02:00
Max Hilbrunner
99c2329b73
Merge pull request #43522 from qarmin/divide_by_zero_in_vectori
...
Fix crash when dividing by 0 in Vector2/3i
2021-08-28 19:53:28 +02:00
Haoyu Qiu
597d489a20
Quote and escape ConfigFile keys when necessary
2021-08-28 18:48:45 +08:00
K. S. Ernest (iFire) Lee
d04aa9a114
Merge pull request #52122 from V-Sekai/autoload_list
...
Use sorted map for autoloads in ProjectSettings to preserve order.
2021-08-27 14:41:40 -07:00
Max Hilbrunner
4e67e9bca6
Merge pull request #52090 from balloonpopper/bug52060
...
Correct null and boolean values being capitalised by the str command
2021-08-27 21:05:47 +02:00
Ellen Poe
460e0ce314
Add a SafeList data structure for future audio server usage.
2021-08-27 10:26:18 -07:00
Camille Mohr-Daurat
9206f561f5
Merge pull request #52110 from nekomatata/fix-segment-intersection
...
Fix segment intersection consistency in Geometry2D
2021-08-27 08:48:29 -07:00
Lyuma
31f790299c
Use OrderedHashMap for autoloads to preserve order
2021-08-26 21:55:26 -07:00
Hugo Locurcio
60116b17b5
Add an Array.pop_at()
method to pop an element at an arbitrary index
...
Negative indices are supported to pop an element relative from the end.
2021-08-27 00:51:17 +02:00
Juan Linietsky
22cae39c1e
Merge pull request #52121 from groud/fix_localvector_insert
...
Fix LocalVector crash on insert.
2021-08-26 13:31:35 -03:00
Juan Linietsky
d19b12dbd2
Merge pull request #52107 from timothyqiu/overriden
...
Fix misspelled "overriden"
2021-08-26 13:07:52 -03:00
Juan Linietsky
eb940ca2a0
Merge pull request #51928 from reduz/extension-loader
...
Implement Extension Loader
2021-08-26 10:24:25 -03:00
Fabio Alessandrelli
2d2855cd53
Data structure optimizations as per review.
2021-08-26 13:35:33 +01:00
Juan Linietsky
34e286d6a3
Merge pull request #52077 from reduz/error-ret-doc
...
Implement error return documentation
2021-08-26 08:42:06 -03:00
Gilles Roudière
de0765b94a
Fix LocalVector crash on insert.
2021-08-26 11:54:56 +02:00
Balloonpopper
4fae7ae9dc
Correct null and boolean values being capitalised by the str command
2021-08-26 17:11:34 +10:00
PouleyKetchoupp
511c80b2ec
Fix segment intersection consistency in Geometry2D
...
Segment collision results could be different depending on the direction
when they exactly touch (order of the points in segments). This was due
to the way parallelism was checked, using different logic based on
positive or negative sign of cross products.
Now the results are the same whatever the direction, without changing
the current design, which is that parallel or colinear segments are
not considered colinear.
Fixes inconsistencies with raycasts exactly on edges of convex shapes
depending on the direction.
2021-08-25 18:17:52 -07:00
Haoyu Qiu
eba7265a1c
Fix misspelled "overriden"
...
In recent GDVIRTUAL PR and SkeletonModification3DJiggle doc.
2021-08-26 01:44:01 +08:00
Morris Tabor
75dd294732
Fix emitting duplicate edges for convex hulls
...
Identical to https://github.com/godotengine/godot/pull/52059
2021-08-25 14:18:45 +02:00
reduz
e2f8df8c5b
Add ability to register singletons from engine API
...
* Exposed functions in Engine to register and unregister singletons.
* Added the concept of user singletons, which can be removed (the system ones can't).
2021-08-25 08:32:25 -03:00
reduz
96f8254b24
Implement error return documetation
...
Adds ability to add error return documetation to the binder and class reference.
Usage example:
```C++
void MyClass::_bind_method() {
[..]
BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN, ERR_FILE_UNRECOGNIZED);
}
```
One function of ConfigFile was changed as example.
2021-08-24 15:28:29 -03:00
Max Hilbrunner
7e0f1fa2ec
Merge pull request #52041 from Rubonnek/expose-simplify-path
...
Expose `String.simplify_path`
2021-08-24 17:06:16 +02:00
Theraot
ef54d35395
Fix get_base_dir windows top level directory logic
...
This is a fix for https://github.com/godotengine/godot/issues/52048
2021-08-24 04:16:59 -05:00
Wilson E. Alvarez
17821603b4
Expose String.simplify_path
2021-08-24 00:48:45 -04:00
reduz
65ca132a80
Expose RID creation utilities.
...
* Exposed as utility functions.
* Not very useful for script, but vital for creating servers using native extensions.
2021-08-23 21:55:45 -03:00