1
0
Fork 0
Commit Graph

2426 Commits

Author SHA1 Message Date
arkology 698cc24416 Fix `Camera2D` limits drawing 2025-02-15 10:02:58 +03:00
Stuart Carnie 1272310a14 Sprite2D: Use correct name to hide `region_filter_clip_enabled` 2025-02-13 10:06:30 +11:00
kobewi 842421ea61 Prevent errors when Line2D has 0 length 2025-02-12 17:43:53 +01:00
Rémi Verschelde 65b81646a4 Merge pull request #102688 from caleb98/master
Fix TileMapLayer bug where dirty cells could be marked twice
2025-02-11 10:54:39 +01:00
Caleb Cassady 7404873b66 Fix TileMapLayer bug where dirty cells could be marked twice
When using runtime data in a TileMapLayer, calling notify_runtime_tile_update
can cause error messages to be printed to the console if the same cell has been
set or erased in the same frame. This could be partially worked around by using
call_deferred on notify_runtime_tile_update, but the problem could re-emerge if
those updates were being made in coroutines.

This commit addresses the issue by adding an additional check to the dirty cell
marking of the TileMapLayer when notify_runtime_tile_update is called. This
check ensures that the cell has not already been added to the dirty cell list,
preventing the condition that causes the error message.
2025-02-10 22:18:10 -05:00
lawnjelly e46993f0db Physics Interpolation - Auto-reset on `set_physics_interpolation_mode()`
Fixes historical bug where auto-reset wasn't working correctly.
Also fixes process modes on Cameras when mode is changed.
2025-02-10 10:19:54 +00:00
Qbieshay 2f3f6f69d9 Fix seed not randomizing for particles. Fix seed being stored when fixed seed is off 2025-02-04 12:17:21 +01:00
Thaddeus Crews 3d6821b724
Merge pull request #101808 from markdibarry/parallax-remove-editor-offset-guard
Fix editor `Parallax2D` grid snap movement
2025-01-31 09:15:47 -06:00
Thaddeus Crews b15b24b087
Merge pull request #101688 from TCROC/fix-gpu-particles-2d-set_one_shot-seed-randomization
Fix `gpu_particles_2d` not randomizing seed when `set_one_shot` is called
2025-01-24 09:05:44 -06:00
Ricardo Buring 56fc0fd175 CPUParticles2D - Add ability to follow physics interpolated target
Allows a non-interpolated particle system to closely follow an interpolated target without tracking ahead of the target, by performing fixed timestep interpolation on the particle system global transform, and using this for emission.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2025-01-24 14:13:20 +01:00
Travis Lange 3973c0b644 fix gpu_particles_3d randomizing seed when set_one_shot is called 2025-01-22 11:29:52 -05:00
Mark DiBarry ce139f7577 Fix editor parallax grid snap movement 2025-01-21 08:21:46 -05:00
Qbieshay c8b0509b7c Fixed cpuparticles randomness regression caused by #92089 2025-01-21 13:23:55 +01:00
Thaddeus Crews 86002e1a3c
Merge pull request #100882 from smix8/node_navmesh_geo_parsers
Make nodes handle their respective navigation source geometry
2025-01-16 17:18:01 -06:00
Rémi Verschelde a69ccee151 Merge pull request #101505 from smix8/region_bounds
Add functions to get axis-aligned bounds of navigation regions
2025-01-14 15:06:06 +01:00
Rémi Verschelde 763e8ceb3b Merge pull request #100227 from clayjohn/particles-texture
Move texture property back to the top level of the Particles inspector.
2025-01-13 20:21:38 +01:00
Rémi Verschelde 133db1fd60 Merge pull request #92089 from QbieShay/qbe/particle_seek
Implement particle seek request and seed options.
2025-01-13 20:21:28 +01:00
smix8 a7520fca6a Add functions to get axis-aligned bounds of navigation regions
Adds functions to get the navigation mesh Rect2 of a NavigationRegion2D or AABB of a NavigationRegion3D.
2025-01-13 20:18:33 +01:00
Rémi Verschelde 23e05b7c2f Merge pull request #101449 from dsnopek/gdextension-virtual-method-compat-merged-hash
Use `MethodInfo::get_compatibility_hash()` to generate the hash for `MethodBind::get_hash()` and other GDExtension hash clean up
2025-01-12 18:07:28 +01:00
Rémi Verschelde 194894d937 Merge pull request #100597 from Zshandi/position-follow-editor-default-float-step
Node2D/3D: Make position follow default float step
2025-01-12 18:07:07 +01:00
smix8 0ed2cb0439 Make nodes handle their respective navigation source geometry
Makes nodes handle their respective navigation source geometry.
2025-01-12 13:14:46 +01:00
David Snopek 696285f23a Use `MethodInfo::get_compatibility_hash()` to generate the hash for `MethodBind::get_hash()` and other GDExtension hash clean up 2025-01-11 15:57:42 -06:00
QbieShay e9eb0b6082 Implemented tools around particles seed randomization.
The purpose of this code is to expose the necessary
functions for users and engine devs to develop tooling
for properly timing and seeking inside particles.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-11 16:31:24 +01:00
Hugo Locurcio 13a1391e73
Draw fewer fishbones to improve Path gizmo readability and performance
This affects both Path2D and Path3D.
2025-01-09 16:08:29 +01:00
Aarni Koskela f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
arkology 3fa775b844 Speed up `Line2D._edit_get_rect()` 2025-01-03 20:32:08 +03:00
smix8 8dd0579bcd Add NavigationLink debug direction indicator
Adds direction indicator arrows to the NavigationLink debug depending on if a link is onewyay or bidirectional.
2025-01-02 01:07:26 +01:00
Thaddeus Crews df2b117ec2
Merge pull request #100317 from TCROC/fix-collision-shape-debug-color-breaks-gdextension
Fix collision shape debug color breaking GDExtension
2024-12-30 08:58:41 -06:00
A Thousand Ships a1846b27ea
Improve use of `Ref.is_null/valid`
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Travis Lange f0c077deb8 fix collision shape debug color breaking gdextension 2024-12-23 15:02:54 -05:00
Thaddeus Crews e109ac21fb
Merge pull request #100708 from smix8/navobstacle2d_debug
Improve NavigationObstacle2D debug visuals and performance
2024-12-23 11:15:06 -06:00
Yufeng Ying 73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +08:00
smix8 23ea3ab8d1 Improve NavigationObstacle2D debug visuals
Improves NavigationObstacle2D debug visuals by aligning them closer to their aleady improved 3D counterpart.
2024-12-21 19:53:17 +01:00
Thaddeus Crews 37d1e7fc89
Merge pull request #99268 from Meorge/add-volume-linear
Add `volume_linear` property and getter/setter methods for audio-related classes
2024-12-19 19:59:47 -06:00
Zshandi Krahn 0d40fe46e3 Node2D/3D: Make position follow default float step 2024-12-19 00:11:39 -08:00
Malcolm Anderson 2f5b97c7f9 Add `volume_linear` property and methods for audio-related classes
Remove default value from `volume_linear` property documentation

Remove `volume_linear` internal property from `AudioBusLayout`

Update doc/classes/AudioEffectAmplify.xml [no ci]

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>

Make documentation more concise [no ci]
2024-12-18 12:41:57 -08:00
Rémi Verschelde 46c8f8c5c5
Merge pull request #100093 from dalexeev/fix-collision-shape-2d-3d-debug-color
Fix `CollisionShape{2D,3D}.debug_color` inconsistencies
2024-12-18 18:23:54 +01:00
Rémi Verschelde 90555e6b4d
Merge pull request #100378 from clayjohn/particles-preprocess
Reduce slider range for Particles preprocess to discourage setting a preprocess time of 10 minutes
2024-12-18 00:39:49 +01:00
Hugo Locurcio 7a04d85ec3
Only allow valid types in Decal, Light3D projector, PointLight2D texture and CSGMesh3D mesh
If an invalid type is supplied (which can still be done from a script),
a warning is printed (along with a workaround for ViewportTexture).

This also adds support for "negative" resource hints such as
"Texture2D,-ViewportTexture" to exclude one or more subclasses
from a class hint.

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-12-17 20:41:12 +01:00
Thaddeus Crews 9ecdeb3723
Merge pull request #98747 from tetrapod00/standardize-renderer-strings
Standardize terms for renderers in error strings
2024-12-13 16:19:37 -06:00
clayjohn f2a993aa1d Reduce slider range for Particles preprocess to discourage setting a preprocess time of 10 minutes 2024-12-13 11:36:36 -08:00
Thaddeus Crews c4aaad6aa2
Merge pull request #100183 from smix8/collision_polygon_shape_edit
Add basic editor editing for `ConvexPolygonShape2D` and `ConcavePolygonShape2D`
2024-12-11 17:35:55 -06:00
smix8 476479419b Despaghettify NavigationServer path queries
Despaghettify NavigationServer path queries.
2024-12-11 22:29:48 +01:00
smix8 7c84eba663 Add basic editor editing for ConvexPolygonShape2D and ConcavePolygonShape2D
Adds basic editor tooling to move the existing points of a ConvexPolygonShape2D or move the  segments of a ConcavePolygonShape2D while a CollisionShape2D node is selected.
2024-12-11 02:31:42 +01:00
Thaddeus Crews b88fd31687
Merge pull request #99397 from yosoyfreeman/master
Allow `apply_floor_snap` to preserve the horizontal position regardless of `stop_on_slopes`
2024-12-10 14:15:59 -06:00
clayjohn 4c0fb2110b Move texture property back to the top level of the Particles inspector.
This property needs to be set before the particles can be used. It should not be hidden away in an unrelated sub menu
2024-12-09 16:13:24 -08:00
YoSoyFreeman 72650f9787 Allow apply_floor_snap to preserve the horizontal position after the snapping independently of stop_on_slopes 2024-12-07 23:00:46 +01:00
Danil Alexeev 8bf2afd341
Fix `CollisionShape{2D,3D}.debug_color` inconsistencies 2024-12-06 15:12:20 +03:00
Daylily-Zeleen 4eba3d8377 Hide NavigationRegion2D debug instance instead of free it, and hide it when navigation_polygon is set to null. 2024-12-04 17:58:12 +08:00
Rémi Verschelde ca1440fafb
Merge pull request #99759 from Mickeon/audio-stream-player-3d-seek-fix-for-real
Fix AudioStreamPlayer2D/3D's `get_playback_position` returning `0` right after calling `seek`
2024-12-02 15:51:38 +01:00