Commit Graph

27256 Commits

Author SHA1 Message Date
johan 1c02906a6f Editor 2D: Change pixel alignment strategy, fix jittering in high zoom
Alignment of scene pixels on screen pixel ensure a crisp rendering of small features (such as text). Unfortunately, alignment of top left pixel on screen adds a lot of jittering when zooming at high zoom factor.

This change allow to snap the top left scene pixel on the closest screen pixel (not only the top-left most), and we do so only when the scale factor is an integer.
2020-03-18 12:37:14 -04:00
Rémi Verschelde 0d907a6320
Merge pull request #37115 from RandomShaper/imvu/windows_stack_size
Make stack size on Windows match Linux and MacOS
2020-03-18 16:11:55 +01:00
Rémi Verschelde 194d2ccb72
Merge pull request #37116 from neikeq/issue-12917
Sync csproj when files are changed from the Godot FileSystem dock
2020-03-18 16:07:49 +01:00
Ignacio Roldán Etcheverry 97efd33ada
Merge pull request #37145 from neikeq/issue-37128
C#: Fix uses of old Configuration names
2020-03-18 15:36:12 +01:00
Rémi Verschelde 4663625d11
Merge pull request #37112 from Xrayez/mono-generate-help
Generate command line help text for the `mono` module
2020-03-18 15:32:08 +01:00
Ignacio Etcheverry 40f8de4c1e Sync csproj when files are changed from the Godot FileSystem dock 2020-03-18 15:06:41 +01:00
Ignacio Etcheverry fe0b783e70 Expose FileSystemDock to the scripting API and fixed signals
Fixed FileSystemDock's `file_removed` and `folder_removed` signals not being
emitted because the emitted was using the wrong signal name.
2020-03-18 15:06:07 +01:00
Ignacio Etcheverry 66c0b7ce98 C#: Fix uses of old Configuration names 2020-03-18 14:50:49 +01:00
Rémi Verschelde 78ef4b707a
Merge pull request #37141 from Anutrix/remove_android_unused_pycode
Removed unused code in android detect.py and SCsub
2020-03-18 14:42:57 +01:00
Rémi Verschelde 70e12d8615
Merge pull request #37139 from akien-mga/opus-vorbis-drop-audiostream-code
opus/vorbis: Remove dead code not used since 3.0
2020-03-18 14:42:13 +01:00
Yuri Roubinsky cc8d21a421
Merge pull request #37142 from Chaosus/shader_qual
Show shader method out/inout qualifier in intellisense
2020-03-18 16:27:48 +03:00
Ignacio Roldán Etcheverry f62fc10bb6
Merge pull request #37131 from van800/master
fix RiderPathLocator - searching for toolbox on Mac
2020-03-18 14:25:02 +01:00
Yuri Roubinsky 387d6859d7 Show shader method out/inout qualifier in intellisense 2020-03-18 16:06:47 +03:00
unknown 90cdacd741 Removed unused code in android detect.py and SCsub 2020-03-18 18:12:50 +05:30
Rémi Verschelde ae28c0fdb8
Merge pull request #37135 from Anutrix/remove_dead_function_win32_spawn
Remove dead function win32_spawn from methods.py
2020-03-18 13:28:54 +01:00
Yuri Roubinsky 602d0d2785
Merge pull request #37134 from Chaosus/shader_fix_crash
Fix shader crash if passing const values to modf function
2020-03-18 15:19:07 +03:00
unknown d78a78bc81 Remove the dead function win32_spawn from methods.py. 2020-03-18 17:15:40 +05:30
Rémi Verschelde 7f6b62cef0 opus/vorbis: Remove dead code not used since 3.0
Since the new audio system in 3.0 we switched the OGG support to
stb_vorbis, and the Opus stream support was disabled as incompatible
(see #7496).

We still build the libraries as they are needed by the theora and webm
modules, but we don't need any Godot code apart from `register_types`.

Fixes #7496.
2020-03-18 12:41:21 +01:00
Yuri Roubinsky 4709434227 Fix shader crash if passing const values to modf function 2020-03-18 14:07:35 +03:00
Rémi Verschelde faca5bafe8
Merge pull request #36993 from van800/editor_metadata
For third-party tools - editor_path is stored in project's editor settings
2020-03-18 10:39:06 +01:00
Ivan.Shakhov dc16b8742a fix RiderPathLocator - searching for toolbox on Mac 2020-03-18 09:23:29 +01:00
Rémi Verschelde a2d3ba3372 doc: Sync classref with current source
Fix wrong binding after #37111.
2020-03-18 09:14:57 +01:00
Rémi Verschelde 6b6174e210
Merge pull request #37122 from rmvermeulen/proposal-590/viewport-size-warning
Add size warning to Viewport Node
2020-03-18 08:15:12 +01:00
Rémi Verschelde c886d38778
Merge pull request #37117 from m4gr3d/godotpayment_plugin_cleanup
Complete the implementation of the GodotPayment plugin
2020-03-18 06:24:43 +01:00
Ignacio Roldán Etcheverry ed298f5982
Merge pull request #36756 from aaronfranke/mono-vec2i3i
[Mono] Add Vector2i and Vector3i
2020-03-18 02:23:03 +01:00
Ignacio Roldán Etcheverry 471089e9b0
Merge pull request #34275 from neikeq/no-ref-gchandles
Mono/C#: Optimize the way we store GC handles for scripts
2020-03-18 02:20:56 +01:00
fhuya 99173c5fc4 Complete the implementation of the GodotPayment plugin.
Move the remaining plugin components within the plugin source code.
2020-03-17 17:43:09 -07:00
Aaron Franke 9b322d46d3
[Mono] Marshaling for Vector2i, Vector3i, and Rect2i 2020-03-17 18:03:28 -04:00
Aaron Franke 22ba912d90
[Mono] Add Vector2i, Vector3i, and Rect2i
These have conversion operators between their non-integer equivalents. Vector2i to Vector2 is implicit, while Vector2 to Vector2i is explicit. All conversion code is done in the integer files, so Vector2.cs contains no reference to Vector2i etc.
2020-03-17 18:03:28 -04:00
Rasmus Vermeulen 760095e28d Clarify the Viewport size warning message 2020-03-17 22:47:20 +01:00
Ignacio Etcheverry 0b814ea78d Mono/C#: Optimize the way we store GC handles for scripts
Don't store GC handles for C# script instances and instance bindings as 'Ref<MonoGCHandle>'; store the raw data instead. Initially this was not possible as we needed to store a Variant, but this had not been the case for a looong time yet the stored type was never updated.
2020-03-17 21:51:05 +01:00
Rasmus Vermeulen 855f4dc193 Add size warning to Viewport Node 2020-03-17 21:33:39 +01:00
Ignacio Roldán Etcheverry 989a223c5a
Merge pull request #37050 from neikeq/fix-mono-after-vulkan-merge
Fix C# bindings after recent breaking changes
2020-03-17 18:38:44 +01:00
Pedro J. Estébanez 29f8530afe Make stack size on Windows match Linux and MacOS 2020-03-17 18:17:41 +01:00
Rémi Verschelde 6c74f38f0b
Merge pull request #36906 from m4gr3d/enable_android_studio_debugging
Enable Android Studio debugging
2020-03-17 16:31:04 +01:00
Ignacio Etcheverry 6a85cdf640 Fix C# bindings after recent breaking changes
Implementation for new Variant types Callable, Signal, StringName.
Added support for PackedInt64Array and PackedFloat64Array.

Add generation of signal members as events, as well as support for
user created signals as events.
NOTE: As of now, raising such events will not emit the signal. As such,
one must use `EmitSignal` instead of raising the event directly.

Removed old ThreadLocal fallback class. It's safe to use thread_local now since
it's supported on all minimum versions of compilers we support.
2020-03-17 16:30:04 +01:00
Andrii Doroshenko (Xrayez) 94b6c1363c Generate command line help text for `mono` module 2020-03-17 17:26:09 +02:00
Rémi Verschelde 0159787864
Merge pull request #37111 from RandomShaper/imvu/unexpose_include_drive
Remove meaningless parameter from bindings
2020-03-17 14:52:43 +01:00
Pedro J. Estébanez a69e88e467 Remove meaningless parameter from bindings 2020-03-17 14:32:03 +01:00
Rémi Verschelde b8577ecce1
Merge pull request #37106 from akien-mga/clang-format-cpp11
Style: Set clang-format Standard to Cpp11
2020-03-17 08:42:39 +01:00
Rémi Verschelde 2658ccb85f
Merge pull request #37104 from alvaroHernandez/fix-joypad-button-editor
Prevent joypad button input dropdown going out of dialog
2020-03-17 07:41:52 +01:00
Rémi Verschelde cb282c6ef0 Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now
used instead of the C++03 compatible `A<A<int> >`.

Note: clang-format 10+ changed the `Standard` arguments to fully
specified `c++11`, `c++14`, etc. versions, but we can't use `c++17`
now if we want to preserve compatibility with clang-format 8 and 9.
`Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-17 07:36:24 +01:00
Rémi Verschelde 51772e75eb
Merge pull request #37025 from nekomatata/lineedit-text-entered-android
Fix text_entered signal when max_length is used in LineEdit on Android
2020-03-17 07:26:10 +01:00
alvaroHernandez e47d5691e4 prevent joypad button input dropdown going out of dialog 2020-03-16 21:44:50 -03:00
Fabio Alessandrelli c5d76139dc
Merge pull request #37101 from simpuid/p_validate_certs
Fix PacketPeerMbedDTLS p_validate_certs default.
2020-03-16 23:50:43 +01:00
simpuid 2584eb9c69 Changed default for p_validate_certs to true.
Fixes #37084
2020-03-17 02:18:57 +05:30
Rémi Verschelde 56175bb6fa
Merge pull request #36896 from kuruk-mm/doc_return_variant_2
Doctool and core: Fix return type in docs for some Variant methods...
2020-03-16 19:55:07 +01:00
Rémi Verschelde 77c88a634c
Merge pull request #37097 from Calinou/tweak-invalid-unicode-error-message
Tweak the invalid Unicode error message to be more descriptive
2020-03-16 19:34:22 +01:00
Rémi Verschelde f9decec1bc
Merge pull request #36491 from AndreaCatania/edit_node_anim_state_mac
Added new method to edit an already added node to anim state machine
2020-03-16 19:29:38 +01:00
Hugo Locurcio 05c95837cb
Tweak the invalid Unicode error message to be more descriptive
This closes #28503.
2020-03-16 18:55:34 +01:00