Commit Graph

15578 Commits

Author SHA1 Message Date
Bastiaan Olij
a8c5117777 Change hand tracking project settings and finetune show_when_tracked 2024-08-20 11:12:52 +10:00
Rémi Verschelde
a105553a1d
Merge pull request #92841 from kleonc/menu-bar-proper-canvas-transform-popup-calculation
Fix `MenuBar` popup placement assuming it's in viewport default canvas
2024-08-19 16:04:54 +02:00
Rémi Verschelde
da57bab169
Merge pull request #92560 from smix8/navmesh2d_bake_partition
Add triangulation partition option to 2D navigation mesh baking
2024-08-19 16:04:49 +02:00
Rémi Verschelde
0ab62a128a
Merge pull request #91971 from Delsin-Yu/WrapControls_ContentScaleFactor
Fix `Window.wrap_controls` does not account for the `content_scale_factor`
2024-08-19 16:04:44 +02:00
Rémi Verschelde
ea054261e2
Merge pull request #91731 from TokageItLab/b2s
Fix Bone2D gizmo scaling
2024-08-19 16:04:40 +02:00
Rémi Verschelde
db5003519a
Merge pull request #89554 from smnast/backspace-unfold
Fix backspace always unfolding previous line
2024-08-19 16:04:34 +02:00
jordi
61e2aa7914
Redraw SubViewportContainer on SubViewport size change 2024-08-19 14:53:53 +02:00
DE-YU
46abbae2b0
Fix Window.wrap_controls does not account for the content_scale_factor 2024-08-19 14:48:43 +02:00
Rémi Verschelde
8b39d7f326
Merge pull request #95666 from kleonc/parallax2d_repeat_offsets_relative_to_source
Fix `Parallax2D` repeats being not relative to its transform
2024-08-19 14:34:21 +02:00
Rémi Verschelde
8b98d9aa4d
Merge pull request #95137 from smix8/source_geo_bounds
Add `get_bounds()` function to NavigationMeshSourceGeometryData
2024-08-19 14:34:13 +02:00
Rémi Verschelde
b1088047a0
Merge pull request #95124 from kleonc/skeleton2d_fix_set_get_always_returning_true
Fix `Skeleton2D.{_set|_get}` always returning true
2024-08-19 14:34:09 +02:00
Rémi Verschelde
6d22b8026d
Merge pull request #90992 from RadiantUwU/fix_node_duplicate
Fix `Node.duplicate()` crash when duplicating a node that cannot be instantiated.
2024-08-19 14:33:31 +02:00
kleonc
5be4eb9fc6 Simplify Control internal transform calculation 2024-08-19 12:14:41 +02:00
Rémi Verschelde
43c46b9b1b
Merge pull request #95013 from smix8/navmesh_geo_parse
Change NavigationMesh to also parse collision shapes by default
2024-08-19 12:08:55 +02:00
kleonc
1bd8372813 Fix Parallax2D repeats being not relative to its transform 2024-08-19 11:43:16 +02:00
smix8
2e1f6b50fb Add bounds function to NavigationMeshSourceGeometryData
Adds get_bounds() function to NavigationMeshSourceGeometryData2D/3D to get a bounding box that covers all the geometry.
2024-08-19 00:12:37 +02:00
Ricardo Buring
1728f80e7c Fixed Timestep Interpolation: MultiMesh
Adds fixed timestep interpolation to multimeshes.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-08-18 17:14:59 +02:00
Yuri Rubinsky
f202a3d24e Add a material preview to visual shader editor 2024-08-17 08:27:54 +03:00
Flyn San
0df7ee31d2 Add BoneAttachment3D::get_skeleton() method 2024-08-17 09:35:24 +10:00
Rémi Verschelde
66cbdc95e1
Merge pull request #93171 from libklein/implement-set-get-polygons
NavigationPolygon: Implement `get`/`set_polygon` fast paths.
2024-08-17 00:45:50 +02:00
Rémi Verschelde
18f3bb7566
Merge pull request #91978 from kitbdev/select_first_wrapped_char
Fix TextEdit caret movement at start of wrapped lines
2024-08-17 00:45:45 +02:00
Patrick Sean Klein
a1fe6ffa19
NavigationPolygon: Implement get/set_polygon fast paths. 2024-08-17 00:31:58 +02:00
Rémi Verschelde
759d7d40d3
Merge pull request #94241 from zeux/optimize-cache
Optimize base and shadow meshes for vertex cache
2024-08-16 23:45:15 +02:00
Rémi Verschelde
28f14102d9
Merge pull request #92944 from smix8/edge_margin_debug
Change 3D navigation edge connection margin debug to only show virtual edge
2024-08-16 23:45:04 +02:00
kit
93a81dd7aa Fix TextEdit caret movement at start of wrapped lines 2024-08-16 15:52:03 -04:00
Micky
edb3d99942 Add RichTextLabel is_finished(), deprecate is_ready() 2024-08-16 20:08:38 +02:00
Arseny Kapoulkine
0fde03c0e0 Optimize base and shadow meshes for cache
Previously, vertex cache optimization was ran for the LOD meshes, but
was never ran for the base mesh or for the shadow meshes, including
shadow LOD chain (shadow LOD chain would sometimes get implicitly
optimized for vertex cache as a byproduct of base LOD optimization, but
not always). This could significantly affect the rendering performance
of geometry heavy scenes, especially for depth or shadow passes where
the fragment load is light.
2024-08-16 07:36:12 -07:00
Rémi Verschelde
f01e052162
Merge pull request #95549 from timothyqiu/split-translation-server
Split `TranslationServer` into its own file
2024-08-16 14:36:16 +02:00
Rémi Verschelde
491287aafe
Merge pull request #95545 from KoBeWi/finish_tween!
Add internal `_finish()` method to Tweener
2024-08-16 14:35:57 +02:00
Rémi Verschelde
0f9925c0f9
Merge pull request #95542 from KoBeWi/go_bind_yourself
Remove empty `bind_methods()`
2024-08-16 14:35:51 +02:00
Rémi Verschelde
a778f7803c
Merge pull request #95529 from bruvzg/bmfont_match_h
[BMFont] Fix importing fonts with `Match char height` enabled.
2024-08-16 14:35:32 +02:00
Rémi Verschelde
1346aaf4e7
Merge pull request #95465 from jsjtxietian/remove-category-warning
Remove `missing a category` warning in visual shader node
2024-08-16 14:34:56 +02:00
Rémi Verschelde
a917a2b2f9
Merge pull request #95456 from smix8/navlink_mapchange
Add NavigationLink function to change navigation map
2024-08-16 14:34:49 +02:00
Rémi Verschelde
e526882052
Merge pull request #95386 from kus04e4ek/close-audio
Add `stop_callable` to `AudioStreamPlayerInternal`
2024-08-16 14:33:55 +02:00
Rémi Verschelde
504f81ec08
Merge pull request #95376 from raulsntos/gdextension/expose-property-accessors/Polygon2D
Make `Polygon2D::bones` property internal
2024-08-16 14:33:49 +02:00
Rémi Verschelde
60b0b5cd42
Merge pull request #95337 from kleonc/tile_set_editor_fix_transposed_polygons_editing
Fix polygon drawing for transposed tiles in `TileSet` editor
2024-08-16 14:33:37 +02:00
Rémi Verschelde
aed6c351c6
Merge pull request #95301 from bruvzg/rtl_sel_fixes
Fix `TextServer::shaped_text_*_character_pos` for the first character of wrapped string. Allow starting/ending RTL selection before line start.
2024-08-16 14:33:26 +02:00
Rémi Verschelde
0c956e49ac
Merge pull request #86310 from jirisvd/fix-softbody-reload
Fix `SoftBody3D` pinned points breaking when reloading scene
2024-08-16 14:31:45 +02:00
Rémi Verschelde
d45f9d26ff
Merge pull request #81973 from /detective_TileMap_uncovers_the_truth_about_tile_rotation 2024-08-16 14:31:32 +02:00
Rémi Verschelde
a6c350718a
Merge pull request #95548 from TokageItLab/fix-warn-skeleton-modifier
Fix incorrect warning on SkeletonModifier
2024-08-16 10:36:45 +02:00
Rémi Verschelde
e43a328f8e
Merge pull request #95464 from tetrapod00/visual-shader-inspector-spatial-node3d-rename
Fix wrong name for Spatial shader mode in VisualShader resource inspector
2024-08-16 10:36:22 +02:00
Rémi Verschelde
987635b508
Merge pull request #95374 from raulsntos/gdextension/expose-property-accessors/ShapeCast
Expose `ShapeCast{2D,3D}::get_collision_result`
2024-08-16 10:35:38 +02:00
Rémi Verschelde
cba8e3bf3d
Merge pull request #95000 from Calinou/lightmapgi-environment-fix-custom-rotation-bake
Fix LightmapGI not taking environment sky rotation into account when baking
2024-08-16 10:35:13 +02:00
Rémi Verschelde
5960555f9b
Merge pull request #94726 from BastiaanOlij/primitive_texel_size_update
Make primitive meshes react to texel size change
2024-08-16 10:34:35 +02:00
Rémi Verschelde
f3ba14be60
Merge pull request #93837 from Calinou/gpuparticles-fix-inherit-velocity-physics
Fix GPUParticles Inherit Velocity breaking with physics movement
2024-08-16 10:34:10 +02:00
Rémi Verschelde
e58a7530aa
Merge pull request #93727 from zeux/raycast-opt
Disable normal raycaster for LOD generation by default
2024-08-16 10:34:03 +02:00
Rémi Verschelde
46c6865979
Merge pull request #92391 from rburing/fti_3d
Physics interpolation (3D)
2024-08-16 10:33:37 +02:00
Rémi Verschelde
a86c3e44dd
Merge pull request #91965 from aaronp64/tooltip_size
Fix tooltip content being cut off at some display scales
2024-08-16 10:33:25 +02:00
Rémi Verschelde
a3266e28be
Merge pull request #83497 from grenappels/probe_distance_fix
Fix generated light probes placing too close to manual light probes
2024-08-16 10:33:12 +02:00
smix8
e6ff4e56e3 Add NavigationLink function to change navigation map
Adds NavigationLink function to change navigation map.
2024-08-15 22:37:02 +02:00
Raul Santos
e47ff98451
Expose ShapeCast{2D,3D}::get_collision_result 2024-08-15 16:20:13 +02:00
Silc Lizard (Tokage) Renew
4727c4f783 Fix incorrect warning on SkeletonModifier 2024-08-15 16:53:18 +09:00
Haoyu Qiu
7343dc3a5d Split TranslationServer into its own file 2024-08-15 15:00:47 +08:00
kobewi
761d988d47 Add internal _finish() method to Tweener 2024-08-15 08:41:51 +02:00
kobewi
065dd099dd Remove empty bind_methods() 2024-08-15 08:24:32 +02:00
bruvzg
e7f215c2c4
[BMFont] Fix importing fonts with Match char height enabled. 2024-08-14 23:52:19 +03:00
jsjtxietian
c7249f41e9 Remove missing a category warning in visual shader node 2024-08-13 12:20:59 +08:00
tetrapod00
b9876b626d Change "Node3D" to "Spatial" in VisualShader resource 2024-08-12 21:04:13 -07:00
bruvzg
7f6c14522c
Stop popup release timeout on click. 2024-08-12 19:35:20 +03:00
Rémi Verschelde
ece2e6d23b
Merge pull request #95377 from raulsntos/gdextension/expose-property-accessors/Animation
Make `Animation::capture_included` read-only
2024-08-12 14:10:37 +02:00
kobewi
dba1a39fe1 Add helper methods to check for tile transforms 2024-08-12 02:51:34 +02:00
Jiří Švejda
bde8c5977b Fix SoftBody3D pinned points breaking when reloading scene 2024-08-11 19:03:01 +02:00
Kusok
8c7dd3cb61 Add stop_callable to AudioStreamPlayerInternal 2024-08-11 20:27:15 +08:00
Raul Santos
415331f474
Make Animation::capture_included read-only
The `PROPERTY_USAGE_READ_ONLY` flag only makes the property read-only in the inspector, but the property also has the `PROPERTY_USAGE_NO_EDITOR` flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting.

To make it read-only for scripting too, this PR removes the setter from the `PropertyInfo`. And since the `set_capture_included` method is now unused, it was also removed.
2024-08-10 18:53:45 +02:00
Raul Santos
60e93415ed
Make Polygon2D::bones property internal 2024-08-10 17:55:29 +02:00
kleonc
6895f6f8cc Fix TileAtlasView bounds checks for transposed tiles 2024-08-09 19:26:02 +02:00
Rémi Verschelde
2edf9b95b3
AudioStreamPolyphonic: Implement stopping with sample playback
Fixes #94724.
2024-08-09 10:57:50 +02:00
Hugo Locurcio
fb88658cc8
Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
This makes translucent colors easier to interpret as such
and is consistent with how they're displayed in ColorPicker.
2024-08-09 00:03:11 +02:00
bruvzg
932acce8f2
Fix TextServer::shaped_text_*_character_pos for the first character of wrapped string. Allow starting/ending RTL selection before line start. 2024-08-09 00:03:00 +03:00
Rémi Verschelde
1e8bfdcd4f
Merge pull request #95239 from AThousandShips/skeleton_internal_fix
Make `Skeleton3D` bone simulator an internal child
2024-08-07 12:08:12 +02:00
Rémi Verschelde
5e7592a342
Merge pull request #95232 from bruvzg/popup_time_up
[PopupMenu] Increase mouse button release timeout and reset it from `post_popup`.
2024-08-07 12:07:57 +02:00
A Thousand Ships
602a348ab1
Make Skeleton3D bone simulator an internal child 2024-08-07 11:38:16 +02:00
Hugo Locurcio
5bc4b49f0b
Document converting a TileMap node to TileMapLayer using the editor 2024-08-07 11:15:29 +02:00
bruvzg
460b538746
[PopupMenu] Increase mouse button release timeout and reset it from post_popup. 2024-08-07 10:22:12 +03:00
Rémi Verschelde
c81aa6e1fc
Merge pull request #95122 from kleonc/tab_bar_clear_close_button_rect
Clear `TabBar` tab close button's rect after it's hidden
2024-08-06 12:31:57 +02:00
Rémi Verschelde
20eee3edd3
Merge pull request #95083 from bruvzg/base_font_loops
[Font] Add check for cyclic base font dependencies.
2024-08-06 12:31:42 +02:00
Rémi Verschelde
b27e9f0b3b
Merge pull request #95059 from Geometror/fix-graphedit-port-snapping-again
Fix GraphEdit port snapping in certain edge cases
2024-08-06 12:31:17 +02:00
Hugo Locurcio
661cf1f351
Fix LightmapGI not taking environment sky rotation into account when baking
The sky rotation now affects the baked environment lighting as it should,
making it match how real-time ambient light rendering works.

Co-authored-by: Per Melin <git@melin.net>
2024-08-05 17:54:11 +02:00
Aaron Franke
3b8afcd10c
Implement fit content width in TextEdit
Co-authored-by: Kit Bishop <kitbdev@gmail.com>
2024-08-04 15:14:56 -07:00
smix8
110b2dc61a Add triangulation partition option to 2D navigation mesh baking
Adds triangulation partition option to 2D navigation mesh baking as an alternative to the existing convex partition option.
2024-08-05 00:08:46 +02:00
kleonc
115cd47fd6 Fix Skeleton2D.{_set|_get} always returning true 2024-08-04 18:44:07 +02:00
kleonc
d1740e6cbf Clear TabBar tab close button's rect after it's hidden 2024-08-04 11:59:37 +02:00
bruvzg
5c8a8c57be
[Font] Add check for cyclic base font dependencies. 2024-08-03 00:00:11 +03:00
Radiant
70f41e414e Fix node.duplicate, return nullptr if this operation fails. 2024-08-02 16:26:19 +03:00
Hendrik Brucker
1f0eddca70 Fix GraphEdit port snapping in certain edge cases 2024-08-02 12:38:53 +02:00
Silc Lizard (Tokage) Renew
8323c3891d Snap current position to the edge on animation finished 2024-08-01 23:57:47 +09:00
smix8
c9b152bd0c Change NavigationMesh to also parse collision shapes by default
Changes NavigationMesh parse geometry types to include collision shapes as well by default.
2024-08-01 14:41:49 +02:00
Rémi Verschelde
6e50da8a37
Merge pull request #94931 from KoBeWi/1_window_1_hack
Use legacy color picking in single window mode
2024-08-01 00:06:38 +02:00
Thaddeus Crews
0163705640
SCons: Add method to generate raw cstrings 2024-07-31 14:22:04 -05:00
kit
fce60c2b3f Fix update mouse cursor state wrong mouse position 2024-07-31 14:10:40 -04:00
Raul Santos
7a20ba9b63
Mark underscored properties as internal
These properties look like they were intended to be internal but they were missing the `PROPERTY_USAGE_INTERNAL` flag.

- `PackedScene::_bundled`
- `PortableCompressedTexture2D::_data`
- `ImporterMesh::_data`
2024-07-30 18:50:00 +02:00
Rémi Verschelde
5271a39279
Merge pull request #94810 from maidopi-usagi/graphedit_signal_fix
[GraphEdit] Correctly disconnect signal to `connection_layer`
2024-07-30 12:28:55 +02:00
kobewi
385284311a Use legacy color picking in single window mode 2024-07-29 23:44:01 +02:00
Rémi Verschelde
46aff5ce10
Merge pull request #94848 from kitbdev/fix-placeholder-fit-content
Fix TextEdit placeholder fit content height
2024-07-29 15:17:32 +02:00
Rémi Verschelde
88d9325065
Merge pull request #94859 from TokageItLab/unstorage-node-time-info
Make NodeTimeInfo be not stored in tscn to prevent AnimationTree version control contamination
2024-07-28 17:47:12 +02:00
Rémi Verschelde
7aba10b170
Merge pull request #94858 from TokageItLab/early-break-loop-at-end
Determine `break_loop_at_end` 1 frame earlier using prediction by delta
2024-07-28 17:47:09 +02:00
Silc Lizard (Tokage) Renew
4de79fed45 Determine break_loop_at_end 1 frame earlier using prediction by delta 2024-07-28 15:55:41 +09:00
Silc Lizard (Tokage) Renew
e16808cd69 Make NodeTimeInfo be not stored in tscn 2024-07-28 15:00:50 +09:00
kit
b6c054e793 Fix TextEdit placeholder fit content height 2024-07-27 17:14:51 -04:00
Daylily-Zeleen
f90f663258 Avoid passing handled input event to collision object 3d. 2024-07-27 14:58:56 +08:00
kit
36677798f1 Fix TextEdit scroll properties editor hint suffix 2024-07-26 18:18:29 -04:00
maidopi-usagi
04705d2899 Fix leaked signal connection to connection_layer. 2024-07-27 01:34:03 +08:00
aaronp64
040f241f39 Improve Tree performance
Added TreeItem::last_child to avoid needing to iterate through all children to get to the end.  This mainly helps in cases where one TreeItem has many children (1000s), and new children are added to the end, as each add had to iterate through all previously added children.
2024-07-26 11:32:45 -04:00
Rémi Verschelde
13c6c0cdb7
Merge pull request #94706 from alvinhochun/window-set-transient-parent-on-create
Pass window exclusive and transient properties for subwindow creation
2024-07-26 13:44:03 +02:00
Silc 'Tokage' Renew
0235086c14 Add validation to glTF importer for Blendshape and Animation 2024-07-26 18:05:34 +09:00
Bastiaan Olij
b9790cef47 Make primitive meshes react to texel size change 2024-07-26 13:54:11 +10:00
Silc Lizard (Tokage) Renew
7c4bc0a378 Fix processed_hashes type to Animation::TypeHash from int 2024-07-25 16:21:59 +09:00
Rémi Verschelde
f0e20efb33
Merge pull request #94716 from TokageItLab/fix-total-weight
Fix total weight calculation to separate track types
2024-07-25 09:15:15 +02:00
Rémi Verschelde
73bcfec23a
Merge pull request #94621 from Giganzo/scroll-container-rtl-fix
ScrollContainer: Fix RTL on follow focus
2024-07-25 09:15:06 +02:00
Silc Lizard (Tokage) Renew
04ac6a74df Fix total weight calculation to separate track types 2024-07-25 11:23:15 +09:00
Alvin Wong
97aa278edb Pass window exclusive and transient properties for subwindow creation
On Windows this allows to avoid having to change the owner of the window
after it has been created, which in rare circumstances may cause the
window to bug out.
2024-07-25 00:27:27 +08:00
Rémi Verschelde
543e4388d5
Merge pull request #94682 from zeux/lod-uv-mirror
Fix LOD generation for meshes with tangents & mirrored UVs
2024-07-24 09:59:45 +02:00
Arseny Kapoulkine
18d6ae1161 Fix LOD generation for meshes with tangents & mirrored UVs
When UVs are mirrored in a mesh, collapsing vertices across the
mirroring seam can significantly reduce quality in a way that is not
apparent to the simplifier. Even if simplifier was given access to UV
data, the coordinates would need to be weighted very highly to prevent
these collapses, which would penalize overall quality of reasonable
models.

Normally, well behaved models with mirrored UVs have tangent data that
is correctly mirrored, which results in duplicate vertices along the
seam. The simplifier automatically recognizes that seam and preserves
its structure; typically models have few edge loops where UV winding is
flipped so this does not affect simplification quality much.

However, pre-processing for LOD data welded vertices when UVs and
normals were close, which welds these seams and breaks simplification,
creating triangles with distorted UVs.

We now take tangent frame sign into account when the input model has
tangent data, and only weld vertices when the sign is the same.
2024-07-23 16:35:46 -07:00
Silc Lizard (Tokage) Renew
88e590c9d3 Add approx comparing methods to Animation, use them on time comparison 2024-07-24 01:18:06 +09:00
Rémi Verschelde
adf58849c6
Merge pull request #94645 from jsjtxietian/lightmap-override
Fix newly baked lightmap can't override previously baked at same path
2024-07-23 15:55:39 +02:00
Rémi Verschelde
05504ebf27
Merge pull request #94439 from kitbdev/fix-reopen-hscroll
Fix ScriptEditor scrolling horizontally when reopening script
2024-07-23 15:55:32 +02:00
Rémi Verschelde
307efbadf8
Merge pull request #94420 from TokageItLab/player-seek-internal
Handle internal seek on AnimationPlayer to process discrete correctly
2024-07-23 13:08:05 +02:00
Rémi Verschelde
add558f3bc
Merge pull request #94304 from TokageItLab/fix-end-of-statemachine
Fix StateMachine process when transition to end & optimize StringName
2024-07-23 13:07:59 +02:00
Giganzo
7e549aa52e Fix rtl on follow focus
Change right_margin to side_margin
2024-07-23 10:29:55 +02:00
jsjtxietian
a8526e68a7 Fix newly baked lightmap can't override previously baked at same path 2024-07-23 12:38:20 +08:00
Rémi Verschelde
962c2512c3
Merge pull request #94611 from Chaosus/vs_fix_texture_warning
Fix warning printing for `VisualShaderNodeTextureParameter`
2024-07-22 14:13:20 +02:00
Rémi Verschelde
6694f55f40
Merge pull request #94606 from bruvzg/rtl_msdf_r
[RTL] Fix text size rounding with MSDF fonts.
2024-07-22 14:13:17 +02:00
Rémi Verschelde
3018178d3f
Merge pull request #94286 from aaronp64/flowcontainer_resort_crash
Avoid `FlowContainer` crash with `TextureRect` using EXPAND_FIT_* expand modes
2024-07-22 14:12:48 +02:00
David Trallero
67ece3dc63
Fix polyphonic audio streams with id > 1 cannot be stopped or changed (MSVC mis-optimization) 2024-07-22 14:08:02 +02:00
Sora
998f5c682e Add occlusion enabled options to tile map layer 2024-07-22 12:13:39 +02:00
Yuri Rubinsky
7c9afbc139 Fix warning printing for VisualShaderNodeTextureParameter 2024-07-22 11:22:27 +03:00
bruvzg
93ccf8e9e4
[RTL] Fix text size rounding with MSDF fonts. 2024-07-22 07:48:29 +03:00
aaronp64
5682cc7b81 Avoid FlowContainer crash with TextureRect using EXPAND_FIT_* expand modes
When a FlowContainer had a TextureRect child using any of the EXPAND_FIT_* expand modes, it could crash when changing the FlowContainer's minimum size, or that of its children.  This was due to the TextureRect resizing in FlowContainer::_resort, updating its minimum size, and triggering another _resort.  If the TextureRect's minimum size changed in a way that caused any of the FlowContainer's children to be put on a different line, it could repeatedly cause _resort to be called again, moving the children back and forth between the old and new lines.

This change is for FlowContainer::_resort to give a warning for TextureRects with EXPAND_FIT_* expand modes when multiple lines are used, and just keep the TextureRect size the same in that case.  This is similar to the check added to AspectRatioContainer in godotengine#73396, but attempting to still support it in FlowContainer when possible.  In the case where the TextureRect is forced to stay the same size, there may be some overlap between the FlowContainer's children, but should no longer crash.
2024-07-21 13:09:22 -04:00
Rémi Verschelde
d9bfdfdd64
Merge pull request #94521 from jamie-pate/fix_92333
Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
2024-07-19 11:10:59 +02:00
Rémi Verschelde
edefcf6d1e
Merge pull request #94230 from CrazyRoka/optimize-gdscript-get-position
Optimize `Node::is_readable_from_caller_thread()` by prioritizing the most common case
2024-07-19 11:10:43 +02:00
Jamie Pate
eb5f1299b2 Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
Fixes #92333

This looks correct, and fixes the ASAN assertion I'm currently getting
in my program.
2024-07-18 19:22:03 -07:00
Rémi Verschelde
caa1b6d991
Merge pull request #94498 from Chaosus/vs_fix_connection_bug
Fix internal connection count decreased if visual shader node removed
2024-07-18 15:38:27 +02:00
Rémi Verschelde
72e434bad4
Merge pull request #94497 from Chaosus/vs_rotation_by_axis
Few fixes for `VisualShaderNodeRotationByAxis`
2024-07-18 15:38:24 +02:00
Rémi Verschelde
7d71b4be37
Merge pull request #94422 from m4gr3d/fix_input_locking_issue
Fix input lock issue when drag scrolling on a `Tree` element on touchscreen devices
2024-07-18 15:38:17 +02:00
Rémi Verschelde
d12030e6d7
Merge pull request #94365 from KoBeWi/every_single_time
Fix empty region in AtlasTexture
2024-07-18 15:38:11 +02:00
kobewi
10da06a32c Fix empty region in AtlasTexture 2024-07-18 15:31:59 +02:00
A Thousand Ships
832695eb2c
[Tests] Fix various unit tests on minimal builds 2024-07-18 15:17:28 +02:00
Fredia Huya-Kouadio
70d450d086 Fix issue causing input lock when drag scrolling a Tree element on touchscreen devices
Prior to this fix, scrolling via mouse drag on touchscreen devices, and
drag&drop operation on a `TreeItem` element would conflict with each other
preventing the drag scroll from being released when the mouse button is
released.

The issue is addressed by disabling drag&drop when drag scrolling is ongoing.
2024-07-18 04:09:54 -07:00
Rémi Verschelde
43902f43d5
Merge pull request #94237 from BlueCube3310/lightmap-atlas-loop-fix-always
Lightmapper: Prevent infinite loop while blitting lightmaps into an atlas
2024-07-18 10:45:33 +02:00
Yuri Rubinsky
14c36b733c Fix internal connection count decreased if visual shader node removed 2024-07-18 11:40:02 +03:00
Yuri Rubinsky
cf70cb57ee Few fixes for VisualShaderNodeRotationByAxis 2024-07-18 11:10:36 +03:00
RedMser
f9258ff928 Fix typos 2024-07-17 18:53:03 +02:00
Adam Scott
2f5f84b470
Fix audio samples not being able to be "finished" 2024-07-17 10:45:38 -04:00
Rémi Verschelde
fa2266716e
Merge pull request #94363 from bruvzg/fix_code_completion_scroll
[macOS] Fix code completion list scrolling with trackpad.
2024-07-17 15:45:10 +02:00
Rémi Verschelde
e7b624567d
Merge pull request #94345 from matheusmdx/fix-instance-placeholder-with-resource
Fix resources being skipped in InstancePlaceholder
2024-07-17 15:45:00 +02:00
Rémi Verschelde
5da03541a1
Merge pull request #93749 from alvinhochun/gui-snap-to-pixel-round-halfway-to-positive
Change GUI controls pixel snap to round halfway towards positive infinity (`floor(x + 0.5)`)
2024-07-17 15:44:43 +02:00
matheusmdx
260c05152d Fix resources being skipped in InstancePlaceholder 2024-07-17 10:25:29 -03:00
A Thousand Ships
d4cf294b35
Fix potential null access in TextEdit 2024-07-17 13:35:22 +02:00
Rémi Verschelde
c77c41df88
Merge pull request #94362 from smix8/navpoly_unref_fix
Fix NavigationPolygon not updating consistently on rebakes
2024-07-17 11:44:09 +02:00
Rémi Verschelde
ac215012d6
Merge pull request #94291 from TokageItLab/readdskel
Re-add `Skeleton3D::animate_physical_bones` property
2024-07-17 11:43:51 +02:00
Rémi Verschelde
78120c66cc
Merge pull request #94085 from anniryynanen/min-size-hidden-parent
Fix container minimum size with hidden parent
2024-07-17 11:43:07 +02:00
kit
f8df6b1c70 Fix ScriptEditor scrolling horizontally on reopen 2024-07-16 11:19:58 -04:00
Silc Lizard (Tokage) Renew
98dbd869c5 Handle internal seek on AnimationPlayer to process discrete correctly 2024-07-16 14:49:25 +09:00
bruvzg
dc98e432e5
[macOS] Fix code completion list scrolling with trackpad. 2024-07-15 08:12:19 +03:00
smix8
9dd05964d5 Fix NavigationPolygon not updating consistently on rebakes
Fixes that NavigationPolygon did not update in all cases because the internal NavigationMesh was not always unref and freed which blocked creating a new mesh later if nothing else freed it.
2024-07-14 22:01:11 +02:00
Silc Lizard (Tokage) Renew
9c1f23c3db Re-add Skeleton3D::animate_physical_bones 2024-07-14 14:24:25 +09:00
Robert Borghese
1052985b00 Add hint_enum for uniform int in gdshader 2024-07-13 14:30:08 -04:00
BlueCube3310
60a255a0d0 Lightmapper: Prevent infinite loop when blitting lightmaps into an atlas 2024-07-13 13:10:04 +02:00
Silc Lizard (Tokage) Renew
7cdeac94d1 Fix StateMachine process when transition to end & optimize StringName 2024-07-13 17:32:31 +09:00
Yuri Rubinsky
92aa01f937 Add few new outputs to the visual shaders 2024-07-12 17:12:22 +03:00
Anni Ryynänen
a9c91f4eef
Fix container minimum size with hidden parent 2024-07-12 16:21:05 +03:00
CrazyRoka
6c86268fdd Decorate rare !data.inside_tree condition with unlikely 2024-07-12 13:38:41 +01:00
CrazyRoka
53e9d90850 Optimize Node::is_readable_from_caller_thread() by prioritizing the most common case. 2024-07-11 20:40:00 +01:00
Rémi Verschelde
fbac9c54c9
Merge pull request #94147 from MovaUA/fixes/node-configuration-warning-dialog-text
Fixes/node configuration warning dialog text
2024-07-11 00:27:39 +02:00
Rémi Verschelde
013ee6a458
Merge pull request #94003 from KernRat/scroll-fix
Fix RichTextLabel + `ui_down` scrolling too far
2024-07-11 00:27:10 +02:00
Valeriy Molchanov
32369d2b6d
Fix Issue #94145 Incorrect text in the Node Configuration Warning dialog
Fix some translations

Revert "Fix some translations"

This reverts commit 61e586ef84fb962eefdc14593241c1d8b0fb7b6b.

Revert "Fix Issue #94145 Incorrect text in the Node Configuration Warning dialog"

This reverts commit d0832dc5e7f0657744780cdfc97ed40772ea717c.

msgid

warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Sprite Frames\"

revert editor/translations/editor
2024-07-09 22:36:18 +02:00
Yuri Rubinsky
af5fc8354b Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
Rémi Verschelde
ff8050efda
Merge pull request #94014 from markdibarry/parallax-snap
Add pixel snap for `Parallax2D`
2024-07-09 16:47:17 +02:00
Rémi Verschelde
17e7253ea8
Merge pull request #93721 from semensanyok/fix-RichTextLabel-fade-start-index
Fix RichTextLabel fade set `start_index` to command offset
2024-07-09 16:47:10 +02:00
bruvzg
eddc9cea11
[NativeMenu] Do not auto toggle check/multi-state items. Add is_native_menu method. 2024-07-08 11:20:28 +03:00
Ricardo Buring
2f8ab4a654 Fixed Timestep Interpolation (3D)
Adds 3D fixed timestep interpolation to the rendering server.
This does not yet include support for multimeshes or particles.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-07-07 22:15:23 +02:00
Rémi Verschelde
42e5b3ac2d
Merge pull request #94044 from adamscott/fix-web-sample-playback-finished-signal
Fix Web samples finished missing signal
2024-07-07 21:59:00 +02:00
Rémi Verschelde
307b4e3091
Merge pull request #94039 from rburing/fix_physics_tickcounter
Fix physics tick counter
2024-07-07 21:58:55 +02:00
Rémi Verschelde
aec5c85acb
Merge pull request #94036 from rburing/fti_fix_pause
Physics Interpolation: Fix behaviour on pause
2024-07-07 21:58:51 +02:00
Adam Scott
a38f30fbd5 Fix Web samples finished missing signal 2024-07-07 14:47:54 -04:00
Ricardo Buring
23521635d2 Fix physics tick counter
The counter is now incremented at the start of a physics tick rather than at the end.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-07-07 19:04:05 +02:00
Ricardo Buring
ceadbaa299 Fixed Timestep Interpolation: Fix behaviour on pause
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-07-07 16:48:17 +02:00
Mark DiBarry
b83359518f Remove unused assignment in Parallax2D 2024-07-07 10:44:13 -04:00
Mark DiBarry
8888e9216f Add pixel snap for Parallax2D 2024-07-07 10:09:15 -04:00
Rémi Verschelde
92880e113a
Merge pull request #93999 from Geometror/fix-slot-change-redraw
Fix connections not updated after GraphNode slot update
2024-07-07 12:38:50 +02:00
kobewi
5636518358 Allow live reloading of built-in scripts 2024-07-06 23:43:37 +02:00
KernRat
3f4222bad4
Fixed RichTextLabel + ui_down scrolling too far 2024-07-06 16:58:33 +02:00
Hendrik Brucker
104c77cd86 Fix connections not updated after GraphNode slot update 2024-07-06 14:33:34 +02:00
Silc Lizard (Tokage) Renew
59667f8ea2 Fix property type of Sprite3D frame_coords to Vector2i from Vector2 2024-07-06 05:36:45 +09:00
Rémi Verschelde
b97110cd30
Merge pull request #93908 from Geometror/ge-resized-fix
Fix `Control` nodes emitting unnecessary `resized` signals
2024-07-05 16:38:10 +02:00
Rémi Verschelde
f1749c691f
Merge pull request #93968 from bruvzg/font_prev_update
[Editor] Update font preview directly instead of invalidating property list.
2024-07-05 15:07:50 +02:00
Rémi Verschelde
1704af01b1
Merge pull request #93959 from kitbdev/fix-drop-on-selection
Fix dropping on selection in script editor
2024-07-05 15:07:44 +02:00
bruvzg
847aadee02
[Editor] Update font preview directly instead of invalidating property list. 2024-07-05 12:48:39 +03:00
kit
fc16465d17 Fix dropping on selection in script editor 2024-07-04 19:42:38 -04:00
Hendrik Brucker
1c47fd7089 Fix Control nodes emitting unnecessary resized signals 2024-07-05 01:41:21 +02:00
Rémi Verschelde
5c84398c15
Merge pull request #93903 from Geometror/vs-fix-frame-edscale
Fix some VisualShader features for high DPI displays/custom UI scales
2024-07-04 23:27:03 +02:00
Hendrik Brucker
b871794591 Fix GraphFrame autoshrink with high DPI displays/custom UI scales 2024-07-04 19:08:06 +02:00
Rémi Verschelde
4d984b6369
Merge pull request #93930 from Arnklit/short-animation-length-bezier-handle-fix
Clamp bezier handle length to half the length of animation
2024-07-04 17:12:22 +02:00
Rémi Verschelde
af55caff36
Merge pull request #93723 from KoBeWi/bandaid.tscn
Speed up scene group scanning for text scenes
2024-07-04 17:12:06 +02:00
Kasper Frandsen
7c6f32ddbf Clamp bezier handle length to half the length of animation 2024-07-04 13:41:12 +01:00
Rémi Verschelde
640d8151ff
Merge pull request #93876 from JacobMillner/fix-blend-times-sorting
Fix AnimationPlayer `blend_times` sorting
2024-07-04 11:32:07 +02:00
bruvzg
41df3caad3
[Button] Use align_to_largest_stylebox for min. size calculation. 2024-07-04 09:40:55 +03:00
Jacob Millner
825cb3e6c5 fix the sorting of blend_times in animation player
Modify BlendKey's sort to use  AlphaCompare in order to create a deterministic sort

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-07-03 10:01:32 -04:00
Arseny Kapoulkine
a13a64eacd Disable normal raycaster for LOD generation by default
Normal raycaster makes LOD generation process >2x slower and often
generates normals that look significantly worse compared to what the
simplifier comes up with by default. This was likely different before
last meshoptimizer upgrade, as the attribute metric was not functioning
properly, but now it looks like it's doing more harm than good.

This change makes it disabled by default but keeps an easy option to
re-enable it per mesh using LOD parameters for now until we get more
confidence and can remove the code outright.

Because the long term plan would be to disable this feature entirely,
the scripting API isn't changed, and it's just off-by-default there with
no way to re-enable.
2024-07-02 10:18:15 -07:00
Hugo Locurcio
33e1f570ff
Fix GPUParticles Inherit Velocity breaking with physics movement
GPUParticles' Inherit Velocity property used to act strangely
if the physics tick rate was lower than the rendered FPS, as velocity
was tracked in the process and not in the physics process. This
means that on certain rendered frames, the velocity was effectively
0 since there was no movement since the last rendered frame.
2024-07-02 01:46:57 +02:00
kleonc
88b29539f7 Fix AtlasTexture::draw_rect flipping for non-zero margin 2024-07-01 21:22:25 +02:00
Rémi Verschelde
a05237f5d0
Merge pull request #93785 from TokageItLab/fix-bezier-init
Fix Bezier track init value on caching without RESET animation
2024-07-01 10:07:37 +02:00
Ainsley Su
819c392ca3
Notify item_rect_changed before resized. 2024-07-01 11:54:07 +08:00
Silc Lizard (Tokage) Renew
e8c2edefd1 Fix Bezier track init value on caching 2024-07-01 01:20:43 +09:00
kobewi
b83c64faac Speed up scene group scanning for text scenes 2024-06-29 21:30:38 +02:00
Rémi Verschelde
4ab8fb8093
Merge pull request #93747 from KoBeWi/layer_of_bugs
Fix some TileMapLayer editing problems
2024-06-29 19:54:30 +02:00
Alvin Wong
cc45c2cdd3 Change GUI controls pixel snap to round halfway to +ve infinity 2024-06-30 00:33:37 +08:00
kobewi
92b0375785 Fix some TileMapLayer editing problems 2024-06-29 18:18:54 +02:00
Mark DiBarry
6b17d51425 Add alternative pixel rounding 2024-06-29 10:33:39 -04:00
semensanyok
5dffb9b5e6 fix RichTextLabel fade set start_index to command offset 2024-06-28 23:15:21 +02:00
Rémi Verschelde
d71c85ce5f
Merge pull request #92016 from KoBeWi/pick_layers_like_a_boss
Allow selecting TileMapLayers by clicking them
2024-06-28 15:55:10 +02:00
Rémi Verschelde
a365cf59c8
Merge pull request #93635 from Chaosus/shader_fix_vec4_uniform
Use `PackedVector4Array` instead of float array for vec4 array uniform
2024-06-28 14:42:57 +02:00
Yuri Rubinsky
72c7e51905 Use PackedVector4Array instead of float array for vec4 array uniform 2024-06-28 13:34:43 +03:00
Rémi Verschelde
17a0a080e7
Merge pull request #93672 from KoBeWi/duplicarray
Fix duplicating nodes with Array properties
2024-06-28 11:35:14 +02:00
Rémi Verschelde
a647789c5b
Merge pull request #93656 from vgezer/fixmissingsep
Add missing punctuation to the default TextEdit word separators
2024-06-28 11:35:11 +02:00
Rémi Verschelde
11db60e9c5
Merge pull request #93482 from TokageItLab/reset-attachment
Reset when disabling override pose in BoneAttachment3D
2024-06-28 11:34:55 +02:00
kobewi
bef2e62c88 Fix duplicating nodes with Array properties 2024-06-27 19:17:50 +02:00
Volkan Gezer
76b2e5b2c8 add missing punctuation to the default list 2024-06-27 17:51:21 +02:00
Silc Lizard (Tokage) Renew
c57a8114d4 Reset when disabling override pose in BoneAttachment3D 2024-06-28 00:48:26 +09:00
Rémi Verschelde
3f4bcfeef1
Merge pull request #93607 from kitbdev/fix-text-edit-move-lines
CodeEdit: Fix move lines up/down viewport and selection issues
2024-06-27 17:08:23 +02:00
Rémi Verschelde
0364443d12
Merge pull request #93346 from RandomShaper/gds_cyc_alt
GDScript: Enhance handling of cyclic dependencies
2024-06-26 18:15:16 +02:00
Pedro J. Estébanez
c1391489e3 GDScript: Enhance handling of cyclic dependencies 2024-06-26 17:44:32 +02:00
Robocraft999
dc6e664fda Fix AnimationSprite2D/3D::play using wrong end_frame
On playing a different animation to the current backwards will start the new animation on the last animations last frame not the new ones
2024-06-26 13:50:44 +02:00
Rémi Verschelde
1f94de2612
Merge pull request #93504 from TokageItLab/fix-physical-bone-raycast
Rework migration of `animate_physical_bones` for compatibility
2024-06-26 11:08:35 +02:00
Rémi Verschelde
5ca01c4847
Merge pull request #93490 from bruvzg/vp_subw_os
Fix subwindow titlebar redraw on oversampling change.
2024-06-26 11:08:24 +02:00
kit
a7da814c6b CodeEdit Fix move lines up/down viewport and selection issues 2024-06-25 15:31:20 -04:00
Silc Lizard (Tokage) Renew
793f3832e5 Rework migration of animate_physical_bones to compatibility 2024-06-25 18:54:59 +09:00
Rémi Verschelde
9de37ab680
Merge pull request #93505 from TokageItLab/disable-cache-when-adding-animation
Make AnimationTrackCaches invalid when animation is added
2024-06-25 10:01:54 +02:00
Rémi Verschelde
b071472fa2
Merge pull request #93502 from TokageItLab/optimize-modifier-flag
Optimize update flag by SkeletonModifier
2024-06-25 10:01:50 +02:00
Rémi Verschelde
b63df071bd
Merge pull request #92514 from /addWordSeparators 2024-06-25 09:19:35 +02:00
Volkan Gezer
e60678f193 enable custom separators to treat different characters as words 2024-06-24 20:43:13 +02:00
Rémi Verschelde
bf20231140
Merge pull request #93179 from TheSofox/tree-nav-crash
Fix engine crashing when using Down Arrow selection on Tree with no selection
2024-06-24 11:14:06 +02:00
Silc Lizard (Tokage) Renew
e82ec1a8ce Make AnimationTrackCaches invalid when animation is added 2024-06-23 23:33:55 +09:00
Thaddeus Crews
cc6dd8d02c
Style: Optimize .svg files with svgo 2024-06-23 08:15:19 -05:00
Silc Lizard (Tokage) Renew
5774d57496 Optimize update flag by SkeletonModifier 2024-06-23 17:01:01 +09:00
bruvzg
c689823c60
Fix subwindow titlebar redraw on oversampling change. 2024-06-23 00:01:56 +03:00
Sofox
d86e02580c Fix engine crashing when using Down Arrow selection on Tree with no selection 2024-06-22 18:40:21 +01:00
Rémi Verschelde
04bf7d4cad
Merge pull request #93467 from anniryynanen/progress-circle-atlas
Fix atlas texture positioning in circular TextureProgressBar
2024-06-22 16:22:30 +02:00
Rémi Verschelde
e526f12c6f
Merge pull request #93444 from JaviARodriguez/Open-source-Contribution
Fix FlowContainer scale from also scaling wrap point
2024-06-22 16:22:24 +02:00
Rémi Verschelde
1e0c741fe5
Merge pull request #93430 from KoBeWi/I_store_NodePaths,_you_store_Nodes,_we_are_not_the_same
Fix storing of Node Array properties
2024-06-22 16:22:17 +02:00
Rémi Verschelde
022b5a1f54
Merge pull request #93426 from smix8/poly_good_locking
Fix thread-use causing navigation polygon data corruption
2024-06-22 16:22:14 +02:00
Anni Ryynänen
2c5befde43
Fix atlas texture positioning in circular TextureProgressBar
In 4.2 TextureProgressBar needed to position its atlas texture, but in 4.3
`draw_polygon()` handles it.
2024-06-22 16:07:26 +03:00
Javi Rodriguez
d6e17b8a0d Fix FlowContainer scale from also scaling wrap point
When a FlowContainer was scaled, the point at which a line wraps would
also be scaled. This would cause a FlowContainer to have lines that did
not fit the container.

FlowContainer no longer factors its scale when resorting children.

Fixes #93439
2024-06-21 19:13:43 -04:00
Hugo Locurcio
281e0e6a5b
Allow BaseMaterial3D height/dither fade to work with Compatibility rendering
Compatibility is based on OpenGL ES 3.0, so the height shader
(including deep parallax) and distance fade dither modes work
just fine with no adjustments required.
2024-06-22 00:57:22 +02:00
kobewi
74cc9e8d93 Fix storing of Node Array properties 2024-06-21 15:49:48 +02:00
Adam Scott
e8212f1849
Remove superfluous non-working sample playing check 2024-06-21 07:17:28 -04:00
smix8
eba3acadac Fix thread-use causing navigation polygon data corruption
Fixes navigation polygon  data corruption caused by thread-use that changed vertices or polygons while the navigation polygon was processed, e.g. by server region sync, navmesh baking or user thread updates.
2024-06-21 12:58:03 +02:00
Rémi Verschelde
04a530f91f
Merge pull request #93407 from smix8/lock_this_geometry_up
Fix thread-use causing navigation source geometry data corruption
2024-06-21 10:14:38 +02:00
smix8
fd727ab994 Fix thread use causing navigation mesh data corruption
Fixes navigation mesh data corruption caused by thread use that changed vertices or polygons while the navigation mesh was processed, e.g. by server sync or baking.
2024-06-21 09:39:16 +02:00
smix8
d4722b9e1f Fix thread-use causing navigation source geometry data corruption
Fixes navigation source geometry data corruption caused by thread-use that changed vertices or indices while the source geometry data was used in a parsing process or read from by the navmesh baking.
2024-06-21 08:06:14 +02:00