Commit Graph

2547 Commits

Author SHA1 Message Date
Aaron Franke 754d49ac81 Skip copying values constructed immediately before returning 2025-09-26 19:13:58 -07:00
Thaddeus Crews a078895ad2 Merge pull request #109243 from precup/tile-map-optimizations
Avoid unnecessary updates in `TileMapLayer`
2025-09-25 12:13:57 -05:00
A Thousand Ships bd65cfa876 Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
2025-09-25 13:48:53 +02:00
Lukas Tenbrink 8ef4a43ada Replace many uses of is_class with derives_from. 2025-09-23 19:59:00 +02:00
Thaddeus Crews a20ca7bbfe Merge pull request #110459 from YeldhamDev/let_the_poor_ints_slide
Allow to use sliders for integers in `EditorSpinSlider`
2025-09-22 13:28:52 -05:00
Thaddeus Crews 035f5d3055 Merge pull request #110763 from Ivorforce/object-derives-from
Use `AncestralClass` to speed up `Object::cast_to` when possible.
2025-09-22 13:28:45 -05:00
Michael Alexsander f16ff829f0 Allow to use sliders for integers in EditorSpinSlider 2025-09-22 11:23:15 -03:00
Lukas Tenbrink 96619d46a1 Use AncestralClass to speed up Object::cast_to when possible. 2025-09-22 13:21:51 +02:00
kobewi 98a4b46b6a Add more PROPERTY_HINT_GROUP_ENABLE uses 2025-09-20 21:11:12 +02:00
Thaddeus Crews 149a4b4ca1 Merge pull request #107868 from lawnjelly/quick_ancestry4
Provide quick access to `Object` ancestry
2025-09-20 13:41:39 -05:00
Thaddeus Crews c227126764 Merge pull request #109820 from groud/fix_one_way_collision_tilemaplayer
Fix one-way-collision polygons being merged despite being on different Y-origins in TileMapLayer
2025-08-22 16:11:53 -05:00
Gilles Roudière e992c7d1fd Fixes one-way-collision polygons being merged despite being on different Y-origins in TileMapLayer 2025-08-22 21:34:04 +02:00
Thaddeus Crews 925fd8a9cc Merge pull request #109736 from Rubonnek/tilecolfree
Free TileMapLayer debug quadrant meshes when clearing
2025-08-21 06:24:21 -05:00
Wilson E. Alvarez 261734adb6 Free TileMapLayer debug quadrant meshes when clearing 2025-08-18 10:10:14 -04:00
Mikael Hermansson 6c907c2d37 Fix move_and_slide forcing synchronization with physics thread
Co-authored-by: Ricardo Buring <ricardo.buring@gmail.com>
2025-08-14 18:58:36 +02:00
Mike Precup adfb0d8c1d Optimize TileMapLayer 2025-08-04 11:05:57 -07:00
nocommentsgood 65a2d733b7 Rename Camera2D set_position_smoothing_enabled parameter 2025-07-30 16:05:30 -05:00
Gilles Roudière 8637922926 Fix debug rendering in TileMapLayer 2025-07-25 11:17:03 +02:00
aaronp64 7f60546f05 Fix CPUParticles2D repeatedly scaling particles with 0 velocity and Align Y
CPUParticles2D with Align Y turned on would update particles' transforms based on the velocity when velocity was non-zero, but would not set the transform for zero velocity.  This left the transfrom value from the previous call, which may have already been scaled.  In this case, each call to _particles_process would apply the scale again, causing the particle to repeatedly grow (or shrink for scales < 1.0).

Updated the Align Y logic to always normalize the transform values before scale is applied.
2025-07-09 11:09:37 -04:00
A Thousand Ships f11aff3841 Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
Thaddeus Crews 6340fa0813 Merge pull request #108207 from KoBeWi/spamygon2d
Fix error spam caused by `internal_vertex_count` property
2025-07-04 10:09:04 -05:00
Thaddeus Crews 6caf4c698f Merge pull request #107915 from QbieShay/fix_emitting_reset
Fix particles resetting properties when emitting is toggled
2025-07-04 10:09:03 -05:00
kobewi 3eb85431f1 Fix error spam caused by internal_vertex_count property 2025-07-02 18:20:41 +02:00
kobewi 9a941441c4 Fix smoothed camera position with limits 2025-07-02 13:54:30 +02:00
Thaddeus Crews e750950dc6 Merge pull request #107568 from Rudolph-B/Issue-92708
Fix floating point precision errors when setting particle trail length
2025-07-01 17:57:58 -05:00
Thaddeus Crews db28859774 Merge pull request #107591 from timothyqiu/group-enable-default
Make `PROPERTY_HINT_GROUP_ENABLE` hide properties by default
2025-06-24 18:34:28 -05:00
Qbieshay b93f6fa1ba Fix particles resetting properties when emitting is toggled 2025-06-24 12:16:42 +02:00
lawnjelly 583c72f999 FTI - Change SceneTree global setting to static
Also fixup FTI configuration warnings so that they only output when the project is using FTI.
2025-06-23 10:19:24 +01:00
lawnjelly 14a814586a Provide quick access to Object ancestry 2025-06-23 07:11:11 +01:00
Haoyu Qiu a7ab249a2a Make PROPERTY_HINT_GROUP_ENABLE hide properties by default 2025-06-16 20:03:49 +08:00
Rémi Verschelde 31892b13b5 Merge pull request #107559 from groud/remove_get_used_cells_where_possible
Remove `get_used_cells` to avoid unecessary allocations in navigation baking
2025-06-16 01:52:54 +02:00
Rémi Verschelde c13218580f Merge pull request #107528 from timothyqiu/direct-x
Don't put main properties of `AnimatedSprite2D` inside a group
2025-06-16 01:52:44 +02:00
Rudolph Bester 3c5d4a2410 Fix floating point precision errors when setting particle trail length 2025-06-15 20:38:50 +02:00
Gilles Roudière a39f6b1c64 Remove get_used_cells to avoid unecessary allocations in navigation baking 2025-06-15 13:42:39 +02:00
Haoyu Qiu 1d40df286b Don't put main properties of AnimatedSprite2D inside a group 2025-06-14 19:20:58 +08:00
smix8 4476fc7099 Only repath a NavigationAgent with a target position
Only repaths a NavigationAgent with a target position.
2025-06-14 01:26:36 +02:00
smix8 cbd446ac29 Add navigation path query parameter limits
Adds navigation path query parameter limits.
2025-06-13 14:42:26 +02:00
Rémi Verschelde f485f6c1c2 Merge pull request #107360 from KoBeWi/spamilion
Fix Sprite2D error spam in exported project
2025-06-13 01:30:51 +02:00
kobewi efbc5aabe1 Allow overriding 2D editor cursor 2025-06-12 14:00:19 +02:00
kobewi 2bb3217819 Add a dedicated editor for Camera2D limits 2025-06-12 13:49:59 +02:00
LuoZhihao 8ba4656ea3 Compile out editor-only logic within validate_property in games 2025-06-12 12:54:19 +08:00
kobewi bf8a374a92 Fix Sprite2D error spam in exported project 2025-06-10 16:54:20 +02:00
smix8 e64fe63f17 Improve Path2D debug performance
Improves Path2D node debug performance by changing the debug to use mesh and multimesh instead of slower canvas draw functions.
2025-06-09 17:25:06 +02:00
Rémi Verschelde abacf0d313 Merge pull request #107263 from smix8/capsule_outline
Fix CapsuleShape2D outline for navmesh baking
2025-06-09 00:45:42 +02:00
Rémi Verschelde 151db00f2c Merge pull request #107256 from smix8/avoidance2dcallback
Change `NavigationServer2D` avoidance callbacks from `Vector3` to `Vector2`
2025-06-09 00:45:39 +02:00
smix8 58c11e557b Fix CapsuleShape2D outline for navmesh baking
Fixes CapsuleShape2D outline for navmesh baking
2025-06-07 20:32:07 +02:00
smix8 0ce53ffc69 Change 2D avoidance callbacks from Vector3 to Vector2
Changes 2D avoidance callbacks from Vector3 to Vector2.
2025-06-07 14:21:28 +02:00
smix8 03e5d64dd9 Match avoidance defaults for NavigationAgent and NavigationServer NavAgent
Matches avoidance defaults for NavigationAgent and NavigationServer NavAgent. The node had different properties than the server agent and the 2d version still used outdate defaults form the 3d version.
2025-06-07 13:49:12 +02:00
kleonc f397e4f752 Fix rotated/flipped tiles destination rect calculations 2025-06-05 14:50:00 +02:00
Rémi Verschelde 590225f3d1 Merge pull request #106690 from NessaTeal/expose-camera2d-current-rotation
Expose Camera2D current rotation
2025-06-05 13:12:07 +02:00