Commit Graph

2127 Commits

Author SHA1 Message Date
A Thousand Ships c6ae98ab60
[TileMap] Fix forcing cleanup on exiting tree/canvas 2024-03-28 13:26:55 +01:00
Rémi Verschelde e771e2e379
Don't access Node3D/Node2D/Control global transform in `reparent` unless needed
Fixes #89002.

Co-authored-by: Tamás Gálffy <ezittgtx@gmail.com>
(cherry picked from commit 810a0dbff1)
2024-03-11 23:24:22 +01:00
kleonc 903dfb91a7
Fix animated tile random start time not scaled to animation duration
(cherry picked from commit 7dfd0c45e9)
2024-03-11 23:07:35 +01:00
Nikolai Davydov 18d497d744
Fix virtual calls for GDExtension in `CollisionObject2D` for _mouse_enter, _mouse_exit, _mouse_shape_enter, _mouse_shape_exit
(cherry picked from commit 0517000e6f)
2024-03-11 18:10:06 +01:00
Danni 138b3ded67
Ensure Camera2D scroll is updated on transform like 3.x
(cherry picked from commit 734166f796)
2024-03-11 15:00:43 +01:00
A Thousand Ships 36e611fa83
Prevent threading problems in `TileMap` 2024-02-27 16:02:54 +01:00
Micky a92a2015f0 Fix missing autocompletion for inheriting classes
(cherry picked from commit ca2f340384)
2024-01-25 18:45:01 +01:00
Micky 873a77d8e9 Add autocompletion options for AnimatedSprite's other play methods
(cherry picked from commit d5a7c7818c)
2024-01-25 18:45:01 +01:00
Mika Viskari c2d38b4388 Fix invalid frame index when Sprite2D's hframes or vframes has been changed
(cherry picked from commit 484c5b5aff)
2024-01-25 18:32:37 +01:00
kobewi a1c32a9462 Only update particle velocity when it changes
(cherry picked from commit cb0a37f61a)
2024-01-25 17:19:41 +01:00
kleonc b3977ad4c6 Fix Polygon2D to Skeleton2D transform calculation
(cherry picked from commit 41e4f3c215)
2024-01-24 15:56:50 +01:00
ShirenY 045b1d5990 Transform mesh's AABB to skeleton's space when calculate mesh's bounds.
(cherry picked from commit 27f71c4e78)
2024-01-24 15:56:50 +01:00
Gilles Roudière 6e043b80f6 Fixes TileMap occluders
(cherry picked from commit fcb8d19de0)
2023-12-11 11:41:58 +01:00
Gilles Roudière 77383e63a6
Keep scene tiles even if the TileMap is invisible
(cherry picked from commit 25e927e56b)
2023-12-07 10:27:06 +01:00
smix8 90f7b2b8cf
Fix NavigationRegion2D transform update
Fixes NavigationRegion2D transform update.

(cherry picked from commit 6fdb16af47)
2023-12-07 10:27:03 +01:00
smix8 fc7cc46b02
Fix missing NavigationLink property updates in constructor
Fixes missing NavigationLink property updates in constructor.

(cherry picked from commit 2f1668804c)
2023-12-07 10:27:02 +01:00
smix8 dfcfc79e3f
Fix missing NavigationRegion property updates in constructor
Fixes missing NavigationRegion property updates in constructor.

(cherry picked from commit 25bf20d7a5)
2023-12-07 10:27:02 +01:00
smix8 ece0c0c4a4
Fix missing NavigationAgent property updates in constructor
Fixes missing NavigationAgent property updates in constructor.

(cherry picked from commit 9640179f93)
2023-12-07 10:27:02 +01:00
smix8 5c709cfc7b
Fix missing NavigationObstacle property updates in constructor
Fixes missing NavigationObstacle property updates in constructor.

(cherry picked from commit 618d9492d9)
2023-12-07 10:27:02 +01:00
Rémi Verschelde efe5c856b8
TileMap: Fix compatibility code for old `cell_quadrant_size` property name
Fixes #85423.
2023-11-28 12:44:07 +01:00
Rémi Verschelde 4065266119
Merge pull request #84968 from groud/fix_tilemap_reparenting
Update tilemap physics' world2D on reparenting
2023-11-16 14:53:15 +01:00
Gilles Roudière dae641625a Update tilemap physics' world2D on reparenting
Co-authored-by: Alon Ran <newdefectus@gmail.com>
2023-11-16 11:31:42 +01:00
Mikael Hermansson a3278c772e Fix transform sync in `RigidBody*D::_body_state_changed` 2023-11-15 01:45:45 +01:00
kobewi 4296f0a771 Fill remaining global scope constant descriptions 2023-11-13 15:17:10 +01:00
Mikael Hermansson 21a3ed1715 Fix transform changes in `_integrate_forces` being overwritten 2023-11-12 19:32:08 +01:00
Rémi Verschelde 491160c33d
Merge pull request #83888 from KoBeWi/remove_all_properties_instead_of_adding_one
Fix TileMap layer reverts and defaults
2023-11-08 19:08:19 +01:00
kobewi b63533bf3f Fix rotated tile collision not working at runtime 2023-10-31 18:22:26 +01:00
A Thousand Ships 3ef6314980 Fix invalid return from some more `_get/_set`
Invalidly returned `true` on the non-matched path
2023-10-27 21:26:13 +02:00
Rémi Verschelde d3fb6c17b6
Merge pull request #83560 from groud/allow_physics_for_hidden_tilemap
Allow TileMap physics/navigation to still work when hidden
2023-10-27 11:36:57 +02:00
Gilles Roudière 9d90f1774c Allow TileMap physics/navigation to still work when hidden 2023-10-26 16:54:35 +02:00
Gilles Roudière 3b5a288bc8 Fix Y-sort origin not working when set in TileMap runtime updates 2023-10-26 15:45:30 +02:00
Gilles Roudière a2bc599450 Fixes get_used_rect, get_used_cells and get_used_cells_by_id in TileMap after a call to clear() 2023-10-24 14:43:43 +02:00
kobewi 99262705a8 Fix TileMap layer reverts and defaults 2023-10-24 13:44:07 +02:00
A Thousand Ships 72fccd82c5 [Audio] Fix pausing stream on entering tree
The paused notifications are only sent when pause status is changed,
this ensures that streams that are non-processing do not play when added
to the tree. Also ensures that the `process_mode` property applies
generally.
2023-10-22 22:35:32 +02:00
Eoin O'Neill f17a569ccf Fix bug where TileMap will not update material correct on assignment
This seemed to be a simple case of a missing condition in an if
statement with a few different flags. I'm not super familiar with the
tilemap code but hopefully this is the correct place to add this check.

Fixes #83474
2023-10-16 21:02:46 -07:00
Rémi Verschelde 2ba83f2578
Merge pull request #83427 from kleonc/camera2d-screen-center-position-when-rotated
Fix screen center position returned for rotated Camera2D
2023-10-16 13:01:23 +02:00
Rémi Verschelde cbfa941061
Merge pull request #83365 from Malcolmnixon/fix-disabled-nav-region
Fix enabling NavigationRegion3D saved disabled
2023-10-16 13:00:35 +02:00
Rémi Verschelde 75b4fd84e3
Merge pull request #83323 from Rindbee/fix-not-update-remote-local-transform-in-2d
Fix cannot update remote after disabling `use_global_coordinates` in `RemoteTransform2D`
2023-10-16 13:00:12 +02:00
kleonc 836d80b306 Fix screen center position returned for rotated Camera2D 2023-10-16 09:02:49 +02:00
Malcolm Nixon 0646b230e4 Fix enabling NavigationRegion3D saved disabled
This PR fixes issue #83364 by always registering the region when it enters the tree, and instead using region_set_enabled to control whether its enabled. The same logical changes have been applied to NavigationRegion2D.
2023-10-14 23:17:57 -04:00
风青山 30904ed3bc Fix cannot update remote after disabling `use_global_coordinates` in `RemoteTransform2D`
Due to the optimization in `CanvasItem`, `global_transform` is only
updated when `get_global_transform()` is called, and then notify
`NOTIFICATION_TRANSFORM_CHANGED`. That is, in the case where
`global_transform` is not obtained, the notification will not be sent.

So we use `NOTIFICATION_LOCAL_TRANSFORM_CHANGED` in this case. Use in
combination to prevent certain optimizations.

Same change for `RemoteTransform3D`, to prevent the same optimization
from being used in `Node3D` in the future.
2023-10-15 00:16:52 +08:00
A Thousand Ships bea7cc784d Make error suggestion less ambiguous 2023-10-14 14:56:05 +02:00
Rémi Verschelde 1d3854665f
Merge pull request #83273 from groud/disable_tilemap_navigation
Allow disabling the built-in tilemap navigation
2023-10-13 22:19:48 +02:00
Gilles Roudière c820c8d1e6 Allow disabling the built-in tilemap navigation 2023-10-13 17:42:28 +02:00
Rémi Verschelde 9957f1ad4e
Merge pull request #83151 from kleonc/tile-map-layer-draw-index-update
Update `TileMap` layer draw index when it's dirty
2023-10-11 18:31:12 +02:00
kleonc a529bf81b8 Update TileMap layer draw index when it's dirty 2023-10-11 16:55:19 +02:00
Gilles Roudière a3bfd9b797 Warn users when TileMap is set as Y-sorted but no layer is 2023-10-11 13:44:28 +02:00
QbieShay c228fe1a0d Particle internal refactor and additions for more artistic control
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: Mew Pur Pur <85438892+MewPurPur@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2023-10-10 20:03:35 +02:00
Rémi Verschelde 72cdb0b4c5
Merge pull request #82393 from jrouwe/body_changed_state
Fix performance regression in RigidBody2D/3D and PhysicalBone3D
2023-10-04 15:35:30 +02:00
bitsawer 12a2177967 Fix notification thread guards 2023-10-02 19:31:54 +03:00