Rémi Verschelde
6ec7e2c230
Merge pull request #61729 from lawnjelly/faster_mesh_merging
...
Optimized Mesh Merging
2022-06-08 07:10:32 +02:00
kleonc
84898dfc22
Make Mesh::generate_triangle_mesh()
handle PRIMITIVE_TRIANGLE_STRIP
and PRIMITIVE_TRIANGLE_FAN
2022-06-07 22:04:14 +02:00
lawnjelly
1d870403b2
Optimized Mesh Merging
...
Changes from PoolVector to LocalVector and pre-reserving vectors rather than push_back.
2022-06-07 20:16:51 +01:00
Rémi Verschelde
70951b3a9c
Merge pull request #61728 from YeldhamDev/always_clear_backport
...
[3.x] Take into account the clear icon's size even when not visible in `LineEdit`s
2022-06-07 14:16:32 +02:00
lawnjelly
ba74643594
Force unsigned behaviour for bitfield enums
...
Some compilers (notably MSVC) were using signed values for bitfield enums. This was causing problems where 2 bits were used to store 4 or less enum values, where they were being treated as negative numbers.
This PR explicitly requests these enums to be treated as unsigned values.
2022-06-06 16:58:21 +01:00
Haoyu Qiu
d043f91b79
Fix Viewport.own_world
documentation
...
Also fixed the naming of the setter's parameter and made an `if` block
straightforward.
2022-06-06 21:34:36 +08:00
Rémi Verschelde
e80dfb7b12
Merge pull request #61687 from YeldhamDev/double_hover_fix
...
Fix hover being drawn twice inside `PopupMenu`s
2022-06-06 13:17:25 +02:00
Michael Alexsander
43b0e054be
Take into account the clear icon's size even when not visible in LineEdit
s
2022-06-05 16:22:01 -03:00
Michael Alexsander
b4e4f88cd9
Fix specific bug related to submenus in PopupMenu
2022-06-04 13:26:12 -03:00
Michael Alexsander
78fdebf8cc
Fix hover being drawn twice inside PopupMenu
s
2022-06-04 02:51:22 -03:00
Rémi Verschelde
a6b27b526f
Merge pull request #60822 from lawnjelly/fti_add_child_reset
2022-06-03 14:56:19 +02:00
FireForge
ea46f32246
Fix get_data() for GradientTexture2D
2022-05-31 23:19:25 -05:00
Yuri Sizov
8ed297fc83
Fix theme propagation for children of top level controls
2022-06-01 03:56:51 +03:00
Yuri Sizov
6d53c60bf7
Mark node groups as dirty for every children if parent is moved
2022-05-31 21:23:16 +03:00
Rémi Verschelde
b44928586b
Merge pull request #61483 from kleonc/popup-update-exclusive-when-shown
...
[3.x] Allow changing `exclusive` of already popped up `Popup`
2022-05-31 12:14:37 +02:00
Rémi Verschelde
51e52b5ed8
Merge pull request #61496 from timothyqiu/asymmetric-le-3.x
...
[3.x] Fix LineEdit clear button for asymmetric stylebox
2022-05-31 08:56:13 +02:00
bruvzg
553bdc6783
[3.x] Fix Label3D oversampling.
2022-05-30 09:05:41 +03:00
Haoyu Qiu
1e6747d185
Fix LineEdit clear button for asymmetric stylebox
2022-05-28 19:51:50 +08:00
kleonc
9ba598f94f
Allow changing exclusive
of already popped up Popup
2022-05-28 01:10:49 +02:00
kleonc
736b0c4e97
PopupMenu Fix hover stylebox overflowing horizontally
2022-05-27 23:35:17 +02:00
Hugo Locurcio
011ff93aa5
Tweak TextMesh decomposition error message to mention self-intersecting lines
2022-05-24 15:12:15 +02:00
Aaron Record
ae9e523025
[3.x] Allow ScrollBar params of a ScrollContainer to be modified from _ready()
...
Cherrypicks b8610dbd31
2022-05-23 21:46:59 -06:00
Rémi Verschelde
88dba8e625
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
2022-05-23 21:41:46 +02:00
bruvzg
eb44e23ca3
[Label3D, 3.x] Monitor default theme font changes, to prevent use of invalid materials.
2022-05-23 18:16:17 +03:00
Rémi Verschelde
b2cdc16a1d
Merge pull request #61281 from bruvzg/textmesh_3x
...
Backport TextMesh and expose dynamic font vector outlines
2022-05-23 16:16:40 +02:00
Rémi Verschelde
f2e3d89562
Merge pull request #61309 from timothyqiu/label-3d-line-spacing
...
[3.x] Use float when calculating `Label3D` line height
2022-05-23 16:10:42 +02:00
Haoyu Qiu
ff5e671c81
Use float when calculating Label3D line height
2022-05-23 17:58:51 +08:00
bruvzg
1ab459a951
Fix material shader key for SDF fonts.
2022-05-23 12:03:09 +03:00
bruvzg
d502bd4847
Backport TextMesh and expose dynamic font vector outlines
2022-05-23 10:47:28 +03:00
bruvzg
dc6d8d6098
Backport Label3D node implementation and Sprite*3D material render priority.
2022-05-23 09:14:41 +03:00
smix8
8df9fd076f
Process NavigationAgent2D/3D avoidance on demand only
...
Changes NavigationAgent avoidance callback to a toggle that is disabled by default.
Also fixes a few missing descriptions / wrong warnings.
(cherry picked from commit 7f3688603c
)
2022-05-22 19:43:56 +02:00
Hugo Locurcio
548c511f57
Tweak the disabled files text color in FileDialog for readability
...
Contrast rate is still fairly low, but the text needs to be easy enough
to distinguish from non-disabled items.
(cherry picked from commit 8962d2760d
)
2022-05-22 19:43:56 +02:00
Haoyu Qiu
4a03bc8f75
Update last min size when Control becomes visible
...
(cherry picked from commit 4ac999cc3f
)
2022-05-22 19:43:56 +02:00
Daniel Kariv
47ead8504a
add check for selection when try to push a meta.
...
Add a check for when we select a text but end on a link. Before it would act as if we just click an link, but now it changes it so if we click-drag over a link, we could select it (and not move to other page).
(cherry picked from commit e6c909b489
)
2022-05-22 19:26:45 +02:00
smix8
b03f6bc170
Remove arbitrary NavigationMesh bake property limits
...
Lowers or removes the slider limits and steps from NavigationMesh resources and changes some default values to better work with realistic unit sizes by default.
(cherry picked from commit cda93057f7
)
2022-05-22 19:26:45 +02:00
bruvzg
b5d5515a2b
Fix incorrect encoding used in _error_handler functions
...
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-05-22 18:56:41 +08:00
Rémi Verschelde
67208ae80b
Merge pull request #60402 from Calinou/httprequest-timeout-float
2022-05-20 15:27:29 +02:00
Rémi Verschelde
2a1a2380e5
Merge pull request #61027 from timothyqiu/quit-prop-3.x
...
[3.x] Make `auto_accept_quit` and `quit_on_go_back` properties
2022-05-20 08:13:41 +02:00
smix8
88acb5b798
Make Navigation Agents and Obstacles respect parent process mode
...
Temporarily removes agent from navigation map when parent node cannot process due to SceneTree pause and process_mode property. Normal process_mode does not work as other agents would still avoid the paused agents because they were still active on the navigation map and the rvo world. Also fixes potential crash when region_get_map or agent_get_map is called while no map is set.
(cherry picked from commit 6b51ab66d8
)
2022-05-19 15:34:56 +02:00
smix8
44915696d2
Add wrong surface warnings to NavigationMesh.create_from_mesh()
...
Adds warnings when at least one of the input mesh surfaces is of wrong primitive type or has an empty vertex / index array as those broken input meshes would fail as both navmesh as well as later when creating debug meshes.
(cherry picked from commit 4185fce0ef
)
2022-05-19 15:25:43 +02:00
Rémi Verschelde
78a9d21da3
Merge pull request #61185 from okla/3.x
2022-05-19 12:02:14 +02:00
Sergey Pershenkov
46ab2512b8
Return -1 from get_selected_id() when not selected
...
Partial cherry pick from 3b146c5eaa
2022-05-19 12:42:54 +03:00
Rémi Verschelde
b7523a953f
Revert invalid PopupMenu breaking change from #61102
...
Fixes #61179 .
2022-05-19 10:02:02 +02:00
Haoyu Qiu
b657d0c76c
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NOEDITOR
2022-05-19 11:31:35 +08:00
Rémi Verschelde
b0a2b34d48
Merge pull request #61150 from smix8/navigation_region2d_update_navpoly_3.x
2022-05-18 14:36:55 +02:00
smix8
37530b0871
Update NavigationPolygonInstance when polygons of NavigationPolygon change
...
Updates NavigationPolygonInstance polygons on the NavigationServer2D when the NavigationPolygon Resource emits its changed signal due to e.g. polygons altered by script.
2022-05-18 13:53:46 +02:00
Yuri Rubinsky
32b9818965
Add node list param to GraphEdit::delete_nodes_request signal
2022-05-18 12:36:00 +03:00
Rémi Verschelde
281c5c9a56
Merge pull request #61102 from okla/3.x
...
[3.x] Make various improvements to OptionButton
2022-05-16 23:51:55 +02:00
Sergey Pershenkov
431c032d8c
Make various improvements to OptionButton
...
- Allow OptionButton selection to be set to -1 to signify no selection, both via API and in the editor.
- Reset OptionButton selection to -1 when the selected item has been removed.
- Fully convert PopupMenu to a zero-based ID system, which improves an inconsistency in generated IDs when making new items in the editor.
(cherry picked from commit 3b146c5eaa
)
2022-05-16 22:47:46 +03:00
Haoyu Qiu
96b1b1991b
Fix AnimatedSprite doesn't emit animation_finished when changing playback direction
...
(cherry picked from commit d5f5e96e11
)
2022-05-16 21:12:21 +02:00
Markus Sauermann
ff52becb47
Distribute remaining pixel to expanding childs of GridContainer
...
(cherry picked from commit 6b3207644b
)
2022-05-16 21:12:21 +02:00
FireForge
67e6fc8e43
Fix Theme type group naming in the inspector
...
(cherry picked from commit 197be78bc5
)
2022-05-16 21:12:21 +02:00
smix8
3e01d32b4c
Clamp NavigationMesh sample_distance above zero
...
While default ReCast library has support for 0.0 'sample_distance' the Godot implementation does not an crashes.
Previously Godot would set all sample_distance values below 0.9 to 0 which causes the crashes.
This limits the sample_distance range selection to 0.1 - 16.0 and also clamps sample_distance that are below 0.1 before ReCast receives them.
(cherry picked from commit e33fa9d833
)
2022-05-16 21:10:36 +02:00
smix8
c3b39ca1e9
Disable threaded NavigationMesh bake on unsupported OS
...
Automatically disables threaded NavigationMesh bake when OS does not support threads.
(cherry picked from commit 49c603e127
)
2022-05-16 17:52:07 +02:00
smix8
b11708c50d
Expose NavigationObstacle2D/3D get_rid() and add config warning
...
Exposes get_rid() function for scripting.
Adds configuration warning when obstacle is used with not intended static body parent.
(cherry picked from commit 001d89223f
)
2022-05-16 17:52:07 +02:00
smix8
847fab6272
Fix NavigationObstacle2D/3D get_global_transform() error
...
Fixes NavigationObstacle2D/3D reporting a 'get_global_transform: Condition "!is_inside_tree()" error when estimating the agent radius.
The collisionshapes that are lower in the SceneTree order than the obstacle node are not loaded in the SceneTree yet so the global_transform function fails.
Also adds warning message when this happens.
(cherry picked from commit cc707412e9
)
2022-05-16 17:52:07 +02:00
Hendrik Brucker
7a4187495d
Fix button icon expansion calculation with empty text
...
(cherry picked from commit c09a5e2774
)
2022-05-16 17:14:43 +02:00
Rémi Verschelde
5e693b6d84
Fix warnings found by Emscripten 3.1.10
...
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
(cherry picked from commit d8935b27a9
)
2022-05-16 16:38:26 +02:00
kobewi
bdbbc78da4
Mention that Area2D doesn't support one_way_collision
...
(cherry picked from commit c836bdf5b1
)
2022-05-16 16:27:51 +02:00
kobewi
5fa7ed7686
Rescue orphan nodes in inherited scenes
...
(cherry picked from commit 2b53826ee6
)
2022-05-16 15:59:55 +02:00
kobewi
93482809e5
Fix error spam when tweened node leaves tree
...
(cherry picked from commit 45e4cb2bbf
)
2022-05-16 15:57:41 +02:00
Haoyu Qiu
58650af062
Make auto_accept_quit and quit_on_go_back properties
2022-05-14 18:24:43 +08:00
FireForge
f17c5fa7bd
Add interpolation modes to Gradient
...
- Linear, Constant, and Cubic interpolation modes
- Partial backport of #53321
2022-05-12 14:24:04 -05:00
Hugo Locurcio
069c955af7
Use a floating-point number for the timeout
property in HTTPRequest
...
This allows for greater precision when specifying a timeout in
HTTPRequest in `3.x`, similar to what is already possible in `master`.
2022-05-11 08:41:40 +02:00
lawnjelly
a4c0e2ecce
Physics Interpolation - add warnings to RESET_PHYSICS_INTERPOLATION
...
Adds warnings when NOTIFICATION_RESET_PHYSICS_INTERPOLATION is called and has no effect due to the node being hidden or not interpolated.
2022-05-10 11:17:58 +01:00
lawnjelly
328866ee6a
Physics Interpolation - Reset on adding child to SceneTree
...
For convenience, branches added to the SceneTree now have physics interpolation reset after the first update of the transform to the VisualServer.
2022-05-10 11:09:20 +01:00
Rémi Verschelde
16abb7f471
Merge pull request #60858 from lawnjelly/fti_add_mode_property
...
Physics Interpolation - add interpolation mode property to node
2022-05-10 08:42:41 +02:00
Rémi Verschelde
cf6dce2c1e
Merge pull request #60876 from timothyqiu/outline-size-hint
...
[3.x] Fix mismatched font outline size hint
2022-05-09 22:20:16 +02:00
Rémi Verschelde
20c72e8275
Merge pull request #60891 from YeldhamDev/pm_sep_font
2022-05-09 13:57:02 +02:00
Haoyu Qiu
20d3632268
Fix tree button icon not centered vertically
2022-05-09 10:53:02 +08:00
Michael Alexsander
2e4e76b2e3
Add font_separator
to PopupMenu
2022-05-08 14:11:59 -03:00
Haoyu Qiu
b277390267
Fix mismatched font outline size hint
2022-05-08 10:01:38 +08:00
Michael Alexsander
4f70201fbe
Fix separator height influencing labeled variation in PopupMenu
2022-05-07 21:15:57 -03:00
lawnjelly
0ab077fcef
Physics Interpolation - add interpolation mode property to node
...
Exposes the "interpolated" flag on nodes via a property, physics_interpolation_mode.
Mode can be INHERIT, OFF and ON. This makes it easy to turn off interpolation for nodes in the editor, versus via code.
2022-05-07 13:51:49 +01:00
Hugo Locurcio
8682874419
Rename profiler "Idle Time" to "Process Time"
...
References to "idle time" are progressively being replaced by
"process time" throughout the engine to avoid confusion.
This also changes some debug prints to be printed only when verbose
mode is enabled (like in `master`).
2022-05-06 19:31:31 +02:00
kobewi
72e1088df6
Fix tscn not listed as Resource extension
...
(cherry picked from commit e3511dd9d7
)
2022-05-05 13:47:48 +02:00
kobewi
ce36f2f699
Improve Tween infinite loop detection
...
(cherry picked from commit f473aab00d
)
2022-05-05 13:47:23 +02:00
ScottVMariotte
25ef0aaf3e
Replaced loops_current with end_loop
...
(cherry picked from commit c526ee6683
)
2022-05-05 13:42:54 +02:00
Rémi Verschelde
13bb7c6c35
Merge pull request #60763 from lawnjelly/fti_physics_flush
2022-05-05 11:59:15 +02:00
Haoyu Qiu
0f7f3d08ba
Add autocompletion for AnimatedSprite.play()
2022-05-05 09:04:40 +08:00
Pawel Lampe
505ace250d
Add ability to bake_navigation_mesh
off thread.
...
This feature makes it possible to workaround problems such as:
- long baking time due to heavy synchronization when parsing geometry
from mesh instances
- crash when freeing `NavigationMeshInstance` while baking
- errors when actively baking node tree is being detached from the
scene tree
2022-05-04 22:41:38 +02:00
lawnjelly
df7fab51a3
Physics Interpolation - Flush transforms after physics tick
...
Leftover transforms from the physics tick were being flushed during idle, which was causing problems for physics interpolation.
This PR flushes the transforms at the end of the physics tick when physics interpolation is active.
2022-05-04 20:30:46 +01:00
Rémi Verschelde
815f7fe636
Merge pull request #49952 from Calinou/spatialmaterial-depth-triplanar-print-warning
...
Print warning in SpatialMaterial when depth and triplanar are active
2022-05-02 23:59:52 +02:00
Rémi Verschelde
4b6e5f5da6
Merge pull request #60530 from timothyqiu/theme-validation-3.x
2022-05-02 10:49:27 +02:00
Rémi Verschelde
6ee64331db
Merge pull request #60527 from KoBeWi/unique_names_demastered
2022-05-02 10:48:27 +02:00
Rémi Verschelde
8835654578
Merge pull request #60656 from akien-mga/tilemap-methods-const-ref-vector2
2022-05-02 09:51:51 +02:00
Rémi Verschelde
e61c4dd787
Merge pull request #60282 from YeldhamDev/backwards_relationships_are_even_harder
2022-05-02 09:49:09 +02:00
smix8
ebcbbec563
Add get_region_rid() to NavigationPolygonInstance and NavigationMeshInstance
...
Add get_region_rid() to NavigationPolygonInstance and NavigationMeshInstance
2022-04-30 15:54:12 +02:00
Rémi Verschelde
2834332591
TileMap: Use const ref for all Vector2 parameters
2022-04-30 14:05:57 +02:00
Haoyu Qiu
153dc4d57e
Backport the new Tween system as SceneTreeTween
...
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2022-04-29 20:01:12 +08:00
bruvzg
ff381f6e84
Fixed implementation of RTL remove_line()
...
Co-authored-by: Eric M <itsjusteza@gmail.com>
2022-04-29 10:59:31 +03:00
Rémi Verschelde
73e6b7c145
Merge pull request #60592 from Calinou/styleboxflat-add-skew-3.x
2022-04-28 22:29:56 +02:00
Hugo Locurcio
4b399b2285
Add a Skew property to StyleBoxFlat
...
This makes it possible to create more aesthetically pleasing
styleboxes for GUI theming, especially in games that have
a futuristic appearance (where skewed buttons and progress bars
are common).
2022-04-28 20:40:01 +02:00
Rémi Verschelde
841d6e7fad
Merge pull request #59439 from fabriceci/3x-fix-move-and-collide-reported-collisions
2022-04-28 18:47:28 +02:00
lawnjelly
49eaa7bd65
Physics interpolation - fix streaking when unhiding nodes
...
The data flow to the VisualServer of current and previous transforms is essential for allowing correct interpolation. An optimization was present that disabled sending transforms when nodes were hidden, however this meant that when unhidden, nodes would interpolate incorrectly from the last transform received when hiding, rather than the up to date previous transform.
This PR disables the optimization and sends always sends transforms when a node is interpolated.
2022-04-28 12:15:14 +01:00
Silc 'Tokage' Renew
cb5f13649b
fixed rotated RootMotionView grid glitch
...
(cherry picked from commit df89969865
)
2022-04-27 12:42:43 +02:00
Rémi Verschelde
510ed791f9
Merge pull request #60554 from timothyqiu/editor-settings-cleanup
2022-04-27 11:51:03 +02:00
Rémi Verschelde
3b2ed9bdd6
Merge pull request #60330 from Calinou/aspectratiocontainer-add-property-hint-3.x
2022-04-27 10:17:04 +02:00
Haoyu Qiu
d088128b43
Remove duplicate editor settings definitions
2022-04-27 15:26:46 +08:00
Rémi Verschelde
ad76e071fa
Merge pull request #60389 from timothyqiu/raycast2d-shape
...
[3.x] Improve RayCast2D debug shape
2022-04-27 08:07:42 +02:00
Haoyu Qiu
76343f4055
Validate theme type/item names
2022-04-26 20:09:18 +08:00
kobewi
e1c74ae83f
Implement Scene Unique Nodes
2022-04-26 13:55:48 +02:00
Rémi Verschelde
4fc1a57295
Merge pull request #60347 from lawnjelly/interpolation_cpuparticles_process
...
Fix CPUParticles emission updating using physics interpolation
2022-04-25 16:29:55 +02:00
Haoyu Qiu
f33dec8084
Improve RayCast2D debug shape
...
Co-authored-by: fabriceci <fabricecipolla@gmail.com>
2022-04-20 17:28:35 +08:00
lawnjelly
fbbb208a35
Fix CPUParticles emission updating using physics interpolation
...
When switching emission on and off, processing was always being switched on and off using internal_process, which was incorrect for using physics interpolation (where physics_process is the relevant one).
This PR correctly updates the process mode according to whether physics interpolation is being used.
2022-04-18 15:30:37 +01:00
Haoyu Qiu
d43b4039db
Fix Label autowrap for CJK text
2022-04-18 21:54:46 +08:00
Hugo Locurcio
90044d6ac9
Add a property hint for AspectRatioContainer's ratio
property
...
Zero or negative ratios are not valid, so the property hint prevents
choosing such values.
The property hint allows using 4 decimals so that common aspect ratios
like 16/9 can be specified with a good level of precision.
2022-04-17 22:04:39 +02:00
Michael Alexsander
b6c501f9b0
Draw relationship lines for items offscreen
2022-04-15 16:31:15 -03:00
Michael Alexsander
21bdadbf79
Fix GridContainer
not ignoring toplevel children
...
(cherry picked from commit 506d8ba526
)
2022-04-14 21:36:07 +02:00
Rémi Verschelde
8182a754d2
Merge pull request #59827 from ConteZero/fix_right_menu
2022-04-14 21:29:57 +02:00
Rémi Verschelde
4e4f6311b6
Merge pull request #60233 from ZheisterCoding/leading-space-fix-3.x
...
Fixed leading spaces pushing text outside Label autowrap boundary problem
2022-04-14 12:15:33 +02:00
DESKTOP-893BK8A\howar
c0513268bd
Fixed #59985 leading spaces autowrap boundary problem
...
Bug problem:
No condition for when the first character of the label is a space character
Fix:
Added an IF condition for when the first character is a space character
The autowrap boundary treat this space character as another dummy word in the WordCache linked list and proceed to function normally, by detecting when line width is 0
2022-04-14 16:05:35 +07:00
Haoyu Qiu
19a0145742
Fix undo history for function name autocompletion
2022-04-14 14:37:31 +08:00
Rémi Verschelde
e1eb3c2fb1
Merge pull request #60147 from lawnjelly/interpolation_out_of_scenario
2022-04-13 17:08:08 +02:00
Rémi Verschelde
9a45eb70b4
Merge pull request #60204 from akien-mga/3.x-cherrypicks
2022-04-13 14:23:56 +02:00
Rémi Verschelde
57b53f5b53
Merge pull request #60035 from Calinou/camera-allow-lower-size-3.x
2022-04-13 12:48:17 +02:00
Eric McGuirk
f82cd740cf
Fix toggling GraphEdit's minimap with minimap_enabled
...
Fixes #53831 .
(cherry picked from commit b1441bbcfc
)
2022-04-13 11:43:49 +02:00
kobewi
bf6e7dc6f6
Fix GraphEdit's valid connections being reversed
...
(cherry picked from commit b29aff8dac
)
2022-04-13 11:43:49 +02:00
Haoyu Qiu
1d476d7737
Consider chained operation when selecting text in TextEdit::undo()
...
(cherry picked from commit 8cefbfcf43
)
2022-04-13 11:43:49 +02:00
kobewi
73248ccf89
Fix TouchScreenButton error spam
...
(cherry picked from commit db19cc60fb
)
2022-04-13 11:43:49 +02:00
Rémi Verschelde
229a8218da
Merge pull request #60021 from timothyqiu/tilemap-nav-region
...
[3.x] Free region RID when cleaning NavPoly in `TileMap`
2022-04-13 08:56:40 +02:00
Rémi Verschelde
7efe238069
Merge pull request #60176 from madmiraal/backport-53000-3.x
...
[3.x] Add selection getter methods to `LineEdit`
2022-04-12 23:10:09 +02:00
Hugo Locurcio
cd1432eb12
Hide Viewport properties not applicable to the current rendering backend
...
This also adds a missing property range hint for the Sharpen Intensity
property (similar to the project setting).
2022-04-12 18:11:45 +02:00
Yuri Roubinsky
e54a4646c7
Add selection getter methods to LineEdit
...
Co-authored-by: Yuri Roubinsky <chaosus89@gmail.com>
2022-04-12 14:31:51 +02:00
lawnjelly
d2b1d29634
Physics interpolation - Move out of Scenario
...
Move VisualServer interpolation data out of Scenario and into VisualServerScene, so the interpolation data and enabled status is now common to all Scenarios.
Fix physics interpolation in multithreaded mode by ensuring tick and pre-draw are called.
2022-04-11 15:04:24 +01:00
Hugo Locurcio
b9dd0180eb
Hide Tonemap White property when tonemapper is Linear in Environment
...
The whitepoint property isn't used when the tonemapper is Linear.
2022-04-10 23:50:14 +02:00
Hugo Locurcio
4bf6cbe4fe
Allow size
values as low as 0.001
in Camera's orthogonal/frustum mode
...
This allows for lower field of view (or higher zoom) in orthogonal
and frustum camera modes.
The property hint also allows setting the size with greater precision.
2022-04-08 18:53:07 +02:00
Haoyu Qiu
5c039ccc72
Free region RID when cleaning NavPoly in TileMap
2022-04-08 19:19:09 +08:00
ConteZero
820728aa52
[3.x] Expose get_selected_text in RichTextLabel
2022-04-05 22:38:10 +02:00
Rémi Verschelde
cfdb99a741
Merge pull request #57411 from Scony/fix-threaded-navmesh-baking-3.x
...
Fix navmesh baking
2022-04-05 19:59:32 +02:00
Haoyu Qiu
f6251724af
Add an explicit way to remove a theme type
...
Co-Authored-by: Yuri Sizov <yuris@humnom.net>
2022-04-05 11:51:15 +08:00
Rémi Verschelde
20b08185f3
Merge pull request #59894 from ConteZero/richtextlabel_deselect_3.x
2022-04-05 00:01:27 +02:00
ConteZero
5e714051ea
[3.x] Add deselect() to RichTextLabel
2022-04-04 22:46:13 +02:00
Markus Sauermann
9a9f86ec12
Fix event transform in ViewportContainer
2022-04-04 22:34:49 +02:00
Rémi Verschelde
21c3048397
Add missing argument names in bindings
2022-04-04 12:56:59 +02:00
Rémi Verschelde
e03f50acd6
Merge pull request #59857 from timothyqiu/editor-missing-check-icons
...
[3.x] Add missing `CheckBox` & `CheckButton` editor icons
2022-04-04 09:34:34 +02:00
Rémi Verschelde
1183abfb79
Merge pull request #59848 from rburing/estimate_agent_radius_inside_tree
...
[3.x] `NavigationObstacle2D`: estimate agent radius only when configured to do so
2022-04-04 09:25:14 +02:00
Haoyu Qiu
1136a9b58a
Add missing CheckBox & CheckButton editor icons
...
Co-authored-by: Silc 'Tokage' Renew <tokage.it.lab@gmail.com>
Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-04-04 12:15:46 +08:00
Ricardo Buring
21580f94ad
NavigationObstacle2D: estimate agent radius only when configured to do so
2022-04-03 22:11:44 +02:00
Pawel Lampe
fad77ecc39
Fix debug navmesh errors, fixes #59845
2022-04-03 21:47:20 +02:00
Pedro J. Estébanez
9e2d5120c1
Fix crash when passing null to AudioStreamPlayer::set_stream()
2022-04-03 12:52:17 +02:00
ConteZero
57b616fb21
Fix Right-Click clearing selection
2022-04-03 10:18:12 +02:00
Pawel Lampe
3035b9c44c
Fix navmesh baking, fixes #57148
...
- improved mesh data calculation from standalone static colliders so that no
VisualServer calls are performed - and thus no VS mutexes need to
be locked in case of on-thread baking
- improved the same for GridMap's static colliders
2022-04-02 23:20:41 +02:00
Haoyu Qiu
f9da6f6978
Extract theme property names for localization
2022-04-01 11:35:02 +08:00
Rémi Verschelde
5c0dccace9
Merge pull request #59413 from ellenhp/preinstance-audio-streams
2022-03-31 18:49:05 +02:00
Ellen Poe
027546ee8a
[3.x] instance audio streams before AudioServer::lock call
2022-03-31 08:48:36 -07:00
Haoyu Qiu
b89befe173
Fix crash when using Camera2D::set_custom_viewport()
2022-03-31 16:42:14 +08:00
FireForge
7f787857ef
Fix inspector group name capitalization
...
(cherry picked from commit 88b09694e7
)
2022-03-29 00:20:23 +02:00
Rémi Verschelde
c4897c4b8d
Improve range property hints for various collision shapes
...
Fixes #36419 .
Co-authored-by: Andrii Doroshenko (Xrayez) <xrayez@gmail.com>
(cherry picked from commit 0d772c6e6e
)
2022-03-28 23:57:43 +02:00
Rémi Verschelde
113102aa51
ResourceImporterWAV: Allow configuring loop mode on import
...
The new `edit/loop_mode` import options lets user choose to either:
- Detect loop points from the WAV (default, same behavior as before)
- Set the loop mode and loop points manually like in AudioStreamSample
Fixes #46164 .
(cherry picked from commit b389ce5ccd
)
2022-03-28 23:46:29 +02:00
Fredy Huya-Kouadio
cb0b2aefc3
Android port of the Godot Editor
...
These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices.
UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback.
Co-authored-by: thebestnom <shoval.arad@gmail.com>
2022-03-28 07:54:10 -07:00
bruvzg
fd2fba7c2c
Add binary MO translation file support. Add brotli decoder and WOFF2 support.
...
Use smaller .mo files instead of .po, if gettext is available.
Convert editor fonts to .woff2 format.
2022-03-25 19:51:39 +02:00
fabriceci
65b3200a16
Fix wrong collision reported on move_and_collide
2022-03-23 11:39:54 +01:00
Haoyu Qiu
e822145be2
Fix inversed ADD_GROUP parameters in AnimationNodeOneShot
...
(cherry picked from commit 6a3bf65657
)
2022-03-22 08:56:57 +01:00
Jason Knight
09e4672f0d
Bind NOTIFICATION_LOCAL_TRANFORM_CHANGED
2022-03-20 11:34:29 -06:00
Rémi Verschelde
6a524b2cc0
Merge pull request #57661 from lawnjelly/bind_mesh_merging
2022-03-17 19:54:31 +01:00
Haoyu Qiu
d537a88299
Add item tooltip access to OptionButton
...
(cherry picked from commit a635ecf6d4
)
2022-03-17 14:45:19 +01:00
taigi100
b33eed23ae
Fix children visibility check
...
(cherry picked from commit 280956ddc3
)
2022-03-17 14:45:19 +01:00
Haoyu Qiu
72837b8ecd
Fix RichTextLabel underlining does not respect visible character
2022-03-16 17:54:07 +08:00
Haoyu Qiu
c0bd05762e
Revert "Fixed underlines and striketrough not respecting visible character"
...
This reverts commit 8bbcc624fd
.
2022-03-16 17:40:14 +08:00
Haoyu Qiu
fd968157a4
Revert "Fixed 0 width issue of rich text label"
...
This reverts commit a1155b86e4
.
2022-03-16 17:40:09 +08:00
Rémi Verschelde
7a4f9dfb15
Merge pull request #59145 from Sauermann/fix-3x-internal-gui-state
2022-03-14 23:18:26 +01:00
Rémi Verschelde
ee818e1631
Merge pull request #54026 from ConteZero/primary_clipboard_linux_3.x
2022-03-14 18:52:20 +01:00
Markus Sauermann
62fa80afd7
Cleanup internal GUI state, if event is accepted in _input.
2022-03-14 18:36:31 +01:00
ConteZero
2ff0735329
Added primary clipboard for Linux
2022-03-14 15:28:36 +01:00
Rémi Verschelde
fdaf0de3f0
Merge pull request #59100 from RandomShaper/mouse_drop_on_disable_3.x
2022-03-14 11:25:12 +01:00
Pedro J. Estébanez
3d7821bf1f
Drop mouse focus and over when gui input is globally disabled
...
Since some porjects may be relying on the former behavior, this is opt-in via a new project setting, disabled by default, but enabled for new projects, since it's the new standard behavior (and the only one in 4.0).
2022-03-14 11:06:26 +01:00
ConteZero
0ffacff998
[3.x] Add option to make selection unique
2022-03-14 09:48:09 +01:00
Rémi Verschelde
08c3e00b95
Merge pull request #55355 from ConteZero/drag_and_drop_3.x
2022-03-14 08:43:22 +01:00
ConteZero
4167e98088
Add drag and drop to TextEdit, LineEdit, RichTextLabel
2022-03-14 08:15:25 +01:00
Hugo Locurcio
caf2c20655
Don't store and show current file/directory/path FileDialog properties
...
These properties are only useful at run-time, so they don't need
to be displayed in the editor and stored.
(cherry picked from commit 2ad6e11b78
)
2022-03-13 15:46:01 +01:00
Rémi Verschelde
fa08c0c858
Merge pull request #59054 from timothyqiu/rtl-shadow-color-3.x
2022-03-13 15:28:55 +01:00
Pedro J. Estébanez
0b650b3e41
Clear owners when pruning even out of the tree
2022-03-12 12:48:15 +01:00
Haoyu Qiu
7d219b6793
Fix RichTextLabel shadow color when text has transparency
2022-03-12 11:02:27 +08:00
miremrie
8a6b066ab7
Allow absolute file paths in file dialogs
...
(cherry picked from commit a5e30c0228
)
2022-03-10 17:18:41 +01:00
Haoyu Qiu
db9d426798
Remove extra separator when TextEdit is read only and unselectable
...
(cherry picked from commit 933211cb0c
)
2022-03-10 16:19:30 +01:00
Wilson E. Alvarez
c37be0f31b
Expose TextEdit get_visible_rows() and get_total_visible_rows() to GDScript
2022-03-08 22:32:22 -05:00
Rémi Verschelde
85b4848ca8
Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x
2022-03-08 13:10:48 +01:00
Haoyu Qiu
b76147ec16
Fix top level CanvasItem visibility
...
The editor gizmo fix from previously reverted
642591b6a9
is kept here.
2022-03-08 01:29:24 +08:00
Haoyu Qiu
d0901d4d55
Revert backport of "Rework CanvasItem visibility propagation"
...
This reverts part of commit f49ffe4bb0
2022-03-08 01:17:52 +08:00
Haoyu Qiu
ba0a17a458
Revert "Fix CanvasItem visibility propagation"
...
This reverts commit 642591b6a9
.
2022-03-08 01:06:14 +08:00
Wilson E. Alvarez
424dbf70af
Increase VARIANT_ARG_MAX to 8
2022-03-07 10:03:49 -05:00
Rémi Verschelde
eb3f0f50b9
Merge pull request #58651 from TokageItLab/fix-cubic-interpolate-3.x
2022-03-04 12:26:46 +01:00
Haoyu Qiu
7e07d4781a
Fix AnimatedSprite infinite loop
...
(cherry picked from commit 3a439a9c03
)
2022-03-02 11:00:26 +01:00
janglee
a1155b86e4
Fixed 0 width issue of rich text label
...
Fixes #37746
(cherry picked from commit 5e64c146bc
)
2022-03-02 11:00:26 +01:00
janglee
8bbcc624fd
Fixed underlines and striketrough not respecting visible character
...
(cherry picked from commit 9c2c2ab2b0
)
2022-03-02 11:00:26 +01:00
Rémi Verschelde
195b7374b2
Merge pull request #58650 from lawnjelly/portals_fix_prefix_duplication
...
Portals - fix duplication of instanced scenes during conversion
2022-03-01 19:56:20 +01:00
Silc 'Tokage' Renew
7b9a912ff6
fix cubic interpolate when looping 3.x
...
Co-authored-by: robfram <robfram@gmail.com>
2022-03-01 19:15:25 +09:00
Rémi Verschelde
29d78f20de
Merge pull request #58642 from rburing/joints_fix_signals_3.x
2022-03-01 11:01:35 +01:00
lawnjelly
4ec4b5a60d
Portals - fix duplication of instanced scenes during conversion
...
During room conversion, if a prefixed Spatial is converted to a Room / RoomGroup etc, when using instanced scenes the owner was incorrectly set, resulting in the instanced scene objects being duplicated.
This PR corrects this.
2022-03-01 09:44:40 +00:00
Ricardo Buring
322e3a9567
Joint2D and Joint: make set_exclude_nodes_from_collision respect signals
2022-02-28 22:51:40 +01:00
Ricardo Buring
f197e5eebb
Joint2D and Joint: update joint on NOTIFICATION_POST_ENTER_TREE
...
This allows reparenting, etc.
2022-02-28 22:48:48 +01:00
Rémi Verschelde
706d282cd5
Merge pull request #58381 from lawnjelly/fti_fix_double_ticks
...
Fix get_global_transform_interpolated() with multiple ticks per frame
2022-02-28 21:13:48 +01:00
Hugo Locurcio
967821f719
Clamp SpatialMaterial triplanar sharpness to values that never look broken
2022-02-27 18:58:22 +01:00
lawnjelly
688dc534e5
Fix get_global_transform_interpolated() with multiple ticks per frame
...
The previous and current transforms in the interpolation data were not being correctly updated in cases where two or more physics ticks occurred on a frame. This PR introduces a simple mechanism to ensure updates on interpolated spatials.
2022-02-25 11:22:00 +00:00
jfons
0959ff2fe4
Add sanity checks to lightmap unwrap texel size
...
(cherry picked from commit d0fd5fd3c7
)
2022-02-24 13:31:17 +01:00
lawnjelly
cb108fb4f8
Portals - improve STATIC bounds on conversion
...
Introduces fallback path for geometry types that are not recognised.
Allows STATIC mode for CPUParticles (using expansion margin)
Allows STATIC mode for Particles (using "visibility_aabb")
2022-02-22 10:00:17 +00:00
Rémi Verschelde
4e44a15176
Merge pull request #58386 from KoBeWi/fix3bility
2022-02-21 12:33:28 +01:00
Rémi Verschelde
c221539207
Merge pull request #58387 from lawnjelly/fti_jitter_fix
2022-02-21 12:18:26 +01:00
lawnjelly
b90f1a3ec0
Disable jitter fix when physics interpolation is enabled.
2022-02-21 10:32:42 +00:00