Commit Graph

32618 Commits

Author SHA1 Message Date
Vedat Günel
1d0437c95b Fix String.ends_with() for empty string arguments 2021-01-19 15:33:41 +03:00
Pedro J. Estébanez
8ed259b792 Modernize RWLock
- Based on C++14's `shared_time_mutex`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed
- Simpler for `NO_THREADS`
2021-01-19 11:53:10 +01:00
Rémi Verschelde
7dea83c623
Merge pull request #45298 from marstaik/fix_cursor
BUGFIX: Fix uninitialized cursor_shape on windows display server
2021-01-19 09:19:52 +01:00
Marios Staikopoulos
2a2de2f684 BUGFIX: Fix unintialized cursor_shape on windows display server 2021-01-18 15:52:47 -08:00
Rémi Verschelde
7fc9d4c79b
Merge pull request #45289 from naithar/fix/plugin_embedding
[iOS] Fix embedding of plugin libraries
2021-01-18 18:16:24 +01:00
Sergey Minakov
6d67827f4e [iOS] Fix embedding of plugin libraries 2021-01-18 19:23:12 +03:00
Rémi Verschelde
eba982b9a3
Merge pull request #45270 from Calinou/editor-tweak-font-hinting-hint
Tweak the "Auto" editor setting hints to be more indicative
2021-01-18 16:47:18 +01:00
Hugo Locurcio
57654508c9
Tweak the "Auto" editor setting hints to be more indicative
This affects the editor scale and font hinting settings which will now
display their automatically chosen value in parentheses.
2021-01-18 16:29:04 +01:00
Rémi Verschelde
eb77d0cf1b
Merge pull request #43906 from Chaosus/vs_sdf
Added SDF nodes to visual shader
2021-01-18 15:20:54 +01:00
Yuri Roubinsky
4618e09f3b
Added SDF nodes to visual shader 2021-01-18 15:04:54 +01:00
Rémi Verschelde
869f5b5328
Merge pull request #45078 from Faless/js/4.x_gamepads
[HTML5] Use internal implementation of the Gamepad API.
2021-01-18 13:12:54 +01:00
Rémi Verschelde
688f4aebef
Merge pull request #32321 from Calinou/editor-disable-quit-confirmation
Remove the editor quit confirmation when there are no unsaved changes
2021-01-18 12:40:17 +01:00
Fabio Alessandrelli
bab20c6e09 [HTML5] Custom Gamepad library to allow remapping.
No longer use emscripten functions for gamepads, implement them as
library functions in library_godot_display.js instead.
This allows us to do a better job at "guessing" vendorId, productId, OS,
etc. thus allowing us to better find the remapping for the controller.
2021-01-18 12:30:38 +01:00
Rémi Verschelde
5496174dd4
Merge pull request #45265 from KoBeWi/children_editing_2077
Change how editable children data is stored
2021-01-18 12:30:38 +01:00
Fabio Alessandrelli
a1533f2c44 Better gamepad axis event injection.
In the core input handling code we have checks to make sure that if axis
rapidly change sign we inject mid-points to release any pending inputmap
action.

The function though, did not correctly insert the mid-point causing
dpads mapped to an axis that behaves like tri-state buttons (-1,0,1) to
not be released correctly.

This commit fixes that by including in the check the case where the axis
swtiches from abs(1) to 0.
2021-01-18 12:30:38 +01:00
Rémi Verschelde
16fa4201f1
Merge pull request #45128 from bruvzg/rtl_wrapped_lines
RichTextLabel: Add count and scroll functions for wrapped lines and paragraphs.
2021-01-18 11:37:21 +01:00
Yuri Roubinsky
de5a8128d7 Unified several visual shader nodes 2021-01-18 13:32:12 +03:00
bruvzg
e4651a44ab
RichTextLabel: adds separate get_total_x_count, get_visible_x_count and scroll_to_x functions for wrapped lines and paragraphs (newlines). 2021-01-18 11:26:55 +02:00
Rémi Verschelde
380bb2d533
Merge pull request #45274 from Calinou/fix-botton-typo
Fix typo in theming methods ("botton" -> "bottom")
2021-01-18 10:06:57 +01:00
Rémi Verschelde
125d9b0fc8
Merge pull request #45272 from Calinou/editor-cinematic-preview-hide-rotation-gizmog
Hide the rotation gizmo when editor cinematic preview is enabled
2021-01-18 10:04:35 +01:00
Rémi Verschelde
d13043b443
Merge pull request #45271 from Calinou/editor-tweak-contextual-ligatures-hint
Tweak the Contextual Ligatures editor setting hint for consistency
2021-01-18 09:57:34 +01:00
bruvzg
efd8f27790
[WIP] Add separate simulator flag for iOS build, change main library to xcframework format. 2021-01-18 10:36:14 +02:00
Rémi Verschelde
f743f8cb9a
Merge pull request #45250 from naithar/fix/ios_plugin-4.0
[iOS] '.xcframework' support in plugins
2021-01-18 08:57:56 +01:00
Hugo Locurcio
1f9cac1717
Fix typo in theming methods ("botton" -> "bottom") 2021-01-18 04:19:07 +01:00
Hugo Locurcio
fa1d853eeb
Hide the rotation gizmo when editor cinematic preview is enabled
Cinematic preview enables the Camera3D preview automatically.

When previewing a Camera3D, the rotation gizmo isn't displayed as
it can't be used.
2021-01-18 03:19:05 +01:00
Hugo Locurcio
38e1965af8
Tweak the Contextual Ligatures editor setting hint for consistency
Title Case is used for all enum values in Godot.
2021-01-18 03:00:42 +01:00
kobewi
05f29b16b6 Change how editable children data is stored
Co-authored-by: hilfazer <az13337@gmail.com>
2021-01-17 23:37:40 +01:00
Sergey Minakov
13a6a83b44 [iOS] Remove plugins from modules. 2021-01-17 14:33:39 +03:00
Sergey Minakov
01d513f3ca [iOS] Added support for '.xcframework' in plugins 2021-01-17 14:13:09 +03:00
Rémi Verschelde
49b5776e8b
Merge pull request #45036 from vix597/issue-45025
Fix `AudioServer.get_time_since_last_mix()` returning incorrect value when accessing from another thread
2021-01-16 21:18:05 +01:00
Rémi Verschelde
3f66d8b953
Merge pull request #45232 from Xrayez/doc-gpu-particles-visibility
Document GPU particles visibility rect/aabb behavior
2021-01-16 21:15:11 +01:00
Sean LaPlante
17ac012728
Fixes #45025 - Protects _last_mix_time and _last_frame_time with the AudioDriver lock() and unlock() methods 2021-01-16 13:10:05 -05:00
Andrii Doroshenko (Xrayez)
b4675973fd Document GPU particles visibility rect/aabb behavior 2021-01-16 17:37:17 +02:00
Michael Alexsander
b3b455c167 Update path in the FileSystem dock after doing file operations 2021-01-16 12:30:56 -03:00
Rémi Verschelde
3099f6fae4
Merge pull request #45221 from arrowinaknee/fix-new-scene-save
Remove unnecessary file existence check when saving scene
2021-01-16 12:45:50 +01:00
Yuri Roubinsky
d87303d058 Auto-creates a port in visual shader expression on dragging from 2021-01-16 12:57:09 +03:00
ArrowInAKnee
13e7f1193a Remove unnecessary file existence check when saving scene 2021-01-16 01:22:09 +03:00
Hugo Locurcio
44204ec32d
Make Range return 1.0 ratio if minimum and maximum values are equal
An error message is also no longer printed.
This matches the behavior found in most UI frameworks where having
equal minimum and maximum values is considered acceptable.

This closes #43179.
2021-01-15 23:14:50 +01:00
Rémi Verschelde
05f5c8725b
Merge pull request #45218 from KoBeWi/new_regression_coming_in_3_2_1
Unify single and multiscene instancing
2021-01-15 21:38:52 +01:00
Rémi Verschelde
2c68cb1a56
Merge pull request #45212 from Chaosus/vs_fix_popup_size
Fix invalid visual shader context menu popup size
2021-01-15 21:37:00 +01:00
Rémi Verschelde
ebe8751fff
Merge pull request #45216 from Chaosus/vs_fix_updating
Fix replaced visual shader nodes updating
2021-01-15 21:36:32 +01:00
kobewi
881c8da0a0 Unify single and multiscene instancing 2021-01-15 20:13:09 +01:00
Yuri Roubinsky
4a85f4cafe Fix replaced visual shader nodes updating 2021-01-15 21:10:32 +03:00
Yuri Roubinsky
c955a16b39 Fix invalid visual shader context menu popup size 2021-01-15 19:55:21 +03:00
Rémi Verschelde
c7fb7674c8
Merge pull request #44805 from Chaosus/vs_convert
Add convert options between constants and uniforms in visual shaders
2021-01-15 16:58:26 +01:00
Rémi Verschelde
e8aab62d40
i18n: Sync translations with Weblate
(cherry picked from commit 7e207cfd48)
2021-01-15 16:56:47 +01:00
Rémi Verschelde
b4020d3c27
Merge pull request #45197 from nekomatata/improved-raycast-node-render-debug
Improve Raycast3D render debug
2021-01-15 16:50:57 +01:00
Rémi Verschelde
1ffe3ed47a
Merge pull request #33685 from Scony/improve-item-lists-add-item-methods
ItemList's add_(icon_)item method returns id of added item
2021-01-15 16:24:20 +01:00
Rémi Verschelde
8cd11032fb
Merge pull request #38562 from Calinou/3d-light-size-property-hint
Tweak the 3D light size property to only allow reasonable values
2021-01-15 16:21:53 +01:00
Rémi Verschelde
ee41c58b4a
Merge pull request #38578 from Phischermen/transform-notification-doc_update
Mention gotcha about how gizmos affect transform notifications
2021-01-15 16:17:26 +01:00