of9
24b27043fe
Migrating language server from Websockets to raw TCP
2020-02-20 11:21:43 +00:00
Rémi Verschelde
342f127362
SCons: Explicitly define our C (C11) and C++ (C++14) standards
...
On GCC and Clang, we use C11 and C++14 with GNU extensions (`std=gnu11`
and `std=gnu++14`). Those are the defaults for current GCC and Clang,
and also match the feature sets we want to use in Godot.
On MSVC, we require C++14 support explicitly with `/std:c++14`, and
make it strict with the use of `/permissive-` (so features of C++17 or
later can't be used).
Moves the definition before querying environment flags and platform
config so that it can be overridden when necessary.
2020-02-20 11:37:52 +01:00
Rémi Verschelde
bd61281a5f
Merge pull request #36368 from reduz/variant-rework
...
Reworked signal system, added support for Callable and Signal
2020-02-20 11:30:56 +01:00
Juan Linietsky
69c95f4b4c
Reworked signal connection system, added support for Callable and Signal objects and made them default.
2020-02-20 08:24:50 +01:00
Rémi Verschelde
1a4be2cd8f
Merge pull request #36371 from Calinou/doc-improve-panoramasky
...
Improve the PanoramaSky class documentation
2020-02-20 07:56:38 +01:00
Rémi Verschelde
353e2071d0
Merge pull request #36340 from nathanwfranke/fix-signal-errors
...
Fix two signal errors, remove unused break_request signals in profilers
2020-02-20 07:13:54 +01:00
Rémi Verschelde
3afc47bbd6
Merge pull request #36347 from Janglee123/persistence-view-mode-for-new-scene
...
Persisting view mode for new scene
2020-02-20 07:12:12 +01:00
Rémi Verschelde
f8c87c0ac4
Merge pull request #36375 from Xrayez/pimpmaps-typos
...
Fix MIMPAMPS typos in constants throughout the engine
2020-02-20 07:00:25 +01:00
Rémi Verschelde
9f9447ea9f
Merge pull request #36376 from timothyqiu/fix-load-image-crash
...
Fixes crash when loading StreamTexture from file
2020-02-20 06:49:11 +01:00
Haoyu Qiu
a7578459c2
Fixes crash when loading StreamTexture from file
2020-02-20 09:45:00 +08:00
Andrii Doroshenko (Xrayez)
fa766265a7
Fix MIMPAMPS typos in constants throughout the engine
2020-02-20 01:31:43 +02:00
nathanwfranke
a31bc1b0ba
Fix two signal errors
...
Update
2020-02-19 15:22:34 -06:00
Rémi Verschelde
5ace0beeaa
Merge pull request #36367 from IronicallySerious/rem-audio-driver-dummy
...
Remove unused driver/dummy/audio_driver_dummy.h
2020-02-19 21:49:17 +01:00
Hugo Locurcio
72ac757ad5
Improve the PanoramaSky class documentation
...
See https://github.com/godotengine/godot/issues/27835 .
2020-02-19 21:24:28 +01:00
Twarit
04882a481b
Remove unused driver/dummy/audio_driver_dummy.h
2020-02-20 00:59:31 +05:30
janglee
d3c580f0bc
Make orthogonal view mode persistent in new scene
...
Fixes #36339 .
2020-02-19 21:33:43 +05:30
Rémi Verschelde
4581a9373c
Merge pull request #36359 from vnen/variant-reference-fix
...
Fix Ref(Variant) constructor to properly check the object type
2020-02-19 16:51:32 +01:00
Rémi Verschelde
05e610b78c
Merge pull request #36357 from MateoMiccino/rendering_vulkan_vertexdescriptionkey_fix
...
rendering_vulkan: VertexDescriptionKey equal comparator was checking …
2020-02-19 15:54:33 +01:00
Rémi Verschelde
b5729a82e9
Merge pull request #36358 from vnen/gdscript-variant-ref-fix
...
Remove static script reference from GDScript class
2020-02-19 15:41:03 +01:00
George Marques
cb0b5eae8c
Fix Ref(Variant) constructor to properly check the object type
...
Otherwise it was saving any reference as valid, regardless of type.
2020-02-19 10:58:00 -03:00
Mateo Dev .59
ab88d291b2
rendering_vulkan: VertexDescriptionKey equal comparator was checking only the first element of his vector of VertexDescription
2020-02-19 10:01:19 -03:00
Rémi Verschelde
7c5ce0ac7c
Merge pull request #36350 from akien-mga/travis-fix-clang-format-stable
...
Travis: Fix clang-format on non-master branches
2020-02-19 13:29:33 +01:00
Rémi Verschelde
7fce47b64f
Merge pull request #36349 from Faless/net/reuse_addr_again_on_posix
...
Fix set_reuse_address on non-Windows platforms.
2020-02-19 13:26:35 +01:00
George Marques
4d960efafc
GDScript: Remove self static reference and create one on calls
...
This is needed because of the new changes to Variant. The reference
counter is increased by adding it to a Variant, which means no GDScript
will be freed (or will be double freed if manually freed somewhere).
2020-02-19 09:15:16 -03:00
George Marques
d490648168
Revert "ClassDB: Workaround double-free for GDScript"
...
This reverts commit 8312ead0d9
.
2020-02-19 09:14:39 -03:00
Rémi Verschelde
35c1ce2ba6
Merge pull request #36338 from MateoMiccino/master
...
glslang: Remove unused revision.template
2020-02-19 12:52:58 +01:00
Rémi Verschelde
880a8fcb1c
Merge pull request #35784 from Calinou/remove-3d-camera-gizmo-icon
...
Remove the 3D camera gizmo icon
2020-02-19 12:52:27 +01:00
Rémi Verschelde
e479231b21
Travis: Fix clang-format on non-master branches
...
`git diff-tree` used to fail on the `3.2` branch (and other non-master
branches) as Travis doesn't actually check that branch from the remote:
```
fatal: ambiguous argument '3.2': unknown revision or path not in the
working tree.
```
The exit code would still be 0 so we'd miss badly formatted commits
targeting stable branches.
We do it manually to ensure that it's going to work as we want it.
2020-02-19 11:37:26 +01:00
Rémi Verschelde
c40bd6b775
i18n: Sync translations with Weblate
...
(cherry picked from commit 1c9132540f
)
2020-02-19 10:16:45 +01:00
Fabio Alessandrelli
19ef28a614
Fix set_reuse_address on non-Windows platforms.
...
Broken after cae0d8853d
.
2020-02-19 10:15:36 +01:00
Rémi Verschelde
28bb2806f1
doc: Sync classref with current source
2020-02-19 09:55:47 +01:00
Mateo Dev .59
1b432147cb
glslang: Remove unused revision.template
2020-02-19 05:41:47 -03:00
Rémi Verschelde
c72b05e851
Merge pull request #33736 from madmiraal/update-appveyor
...
AppVeyor: Enable warnings as errors.
2020-02-19 08:55:23 +01:00
Marcel Admiraal
106221a733
Update .appveyor.yml.
...
- Set options to be the same as travis builds,
except use warnings=all instead of warnings=extra.
- Fail on warnings as per travis builds.
2020-02-19 07:04:34 +01:00
Rémi Verschelde
b967c910b8
Merge pull request #36327 from akien-mga/fix-warnings-reenable-werror
...
Fix compilation warnings and re-enable werror=yes on Travis
2020-02-18 21:14:28 +01:00
Rémi Verschelde
7d691c1812
Merge pull request #36329 from YeldhamDev/packed_array_icons
...
Convert "Pool*Array" icons into "Packed*Array"
2020-02-18 21:00:31 +01:00
Rémi Verschelde
49fec646cb
Fix compilation warnings and re-enable werror=yes on Travis
...
Fix -Wunused-variable, -Wunused-but-set-variable and -Wswitch warnings
raised by GCC 8 and 9.
Fix -Wunused-function, -Wunused-private-field and
-Wtautological-constant-out-of-range-compare raised by Clang.
Fix MSVC 2019 warning C4804 (unsafe use of type 'bool' in comparison
operation).
GCC -Wcpp warnings/Clang -W#warnings (`#warning`) are no longer raising
errors and will thus not abort compilation with `werror=yes`.
Treat glslang headers are system headers to avoid raising warnings.
Re-enables us to build with `werror=yes` on Linux and macOS, thus
catching warnings that would be introduced by new code.
Fixes #36132 .
2020-02-18 20:51:25 +01:00
Rémi Verschelde
e866b4043c
Merge pull request #36269 from AndreaCatania/nav_old_fuc
...
Added utility functions to the new NavigationServer:
2020-02-18 19:44:05 +01:00
Michael Alexsander
30dac10a0e
Convert "Pool*Array" icons into "Packed*Array"
2020-02-18 13:54:02 -03:00
Andrea Catania
79fc7d7d6a
Added utility functions to the new NavigationServer:
...
- Vector3 get_closest_point_to_segment(const Vector3 &p_from, const Vector3 &p_to, const bool &p_use_collision = false);
- Vector3 get_closest_point(const Vector3 &p_point);
- Vector3 get_closest_point_normal(const Vector3 &p_point);
- Object *get_closest_point_owner(const Vector3 &p_point);
2020-02-18 17:12:45 +01:00
Rémi Verschelde
6e64036693
Merge pull request #36321 from Faless/net/win_tcp_noreuse
...
Disable NetSocket reuse address on Windows.
2020-02-18 16:03:29 +01:00
Rémi Verschelde
27326f8238
Merge pull request #36296 from Faless/dtls/enet_vulkan
...
DTLS support + optional ENet encryption
2020-02-18 15:01:53 +01:00
Rémi Verschelde
213a85521d
doc: Sync classref with current source
...
Handle removal of Pool*Array types and other recent changes.
2020-02-18 14:02:02 +01:00
Rémi Verschelde
b4d1882dc3
EditorProperty: Fix handling of PackedRealArray
2020-02-18 14:02:02 +01:00
Rémi Verschelde
c3f4c1baed
Merge pull request #36320 from madmiraal/fix-c4996-warning-vulkan_context
...
Fix VisualStudio throwing multiple C4996 warnings in vulkan_context.cpp.
2020-02-18 13:57:57 +01:00
Rémi Verschelde
e1b6a0f3b6
Merge pull request #36318 from akien-mga/fix-mono-build
...
Fix CanvasItem bindings and Mono build
2020-02-18 13:57:06 +01:00
Fabio Alessandrelli
cae0d8853d
Disable NetSocket reuse address on Windows.
...
It actually means reuse port -.- ...
2020-02-18 13:00:10 +01:00
Rémi Verschelde
ae99439667
Merge pull request #36317 from godotengine/revert-36182-how_to_text_file
...
Revert "Remove TextFile from public API"
2020-02-18 12:59:15 +01:00
Marcel Admiraal
529f924aaa
Fix VisualStudio throwing multiple C4996 warnings in vulkan_context.cpp.
...
Use Godot's String to concatenate C-strings instead of strcat and sprintf,
which are unsafe, because they don't check for buffer overflows.
2020-02-18 12:35:59 +01:00
Rémi Verschelde
702976cd7a
Mono: Fix build after ObjectID and Texture2D changes
2020-02-18 11:36:48 +01:00