Commit graph

2571 commits

Author SHA1 Message Date
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
Sch1nken
a9ac00f8f7 Added multimesh physics interpolation for 2D transforms (MultiMeshInstance2D)
Replicated MultimeshInstance3D behaviour to MultiMeshInstance2D and added mesh_storage for 2D transform

Also call VisualInstance::_physics_interpolated_changed()

Use Node instead of VisualInstance. Addded comment

Fixed typo :)

Using CanvasItem instead of Node now. Made CanvasItem::_physics_interpolated_changed() protected
2025-06-18 16:04:51 +02: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
Rémi Verschelde
c27c87b852
Merge pull request #105245 from timothyqiu/canvas-layer-range
Relax the range hint for canvas layer properties
2025-06-05 13:10:50 +02:00
Nessa Teal
cf59d74b15 Expose Camera2D current rotation 2025-06-04 00:22:18 +03:00
Thaddeus Crews
f3f76df0cd
Merge pull request #103504 from lawnjelly/fti_warn_physics_non_interp4
Physics Interpolation - Add editor configuration warnings
2025-05-26 11:24:39 -05:00
Thaddeus Crews
b144bbb510
Merge pull request #106553 from Lazy-Rabbit-2001/sprite-dragging-improved
Reintroduce the dragging method of Sprite2D's region_rect
2025-05-26 11:24:34 -05:00
Lazy-Rabbit-2001
3a7e45c0e7 Reintroduce the dragging method of Sprite2D's region_rect 2025-05-24 19:41:05 +08:00
Logan Detrick
1a427d3dec Add feature hint string and "On" text for checkable groups 2025-05-21 14:56:55 -07:00
David Nikdel
5afb64e167 Fix for camera limits
This commit makes 2D camera limits have a well defined behavior for cases when the limits are smaller than the screen rect.

Presently the RIGHT and TOP limit take prescidence simply because they are applied second. This change adjusts behavior to split the difference in cases where both the LEFT/RIGHT or TOP/BOTTOM limits would both apply.
2025-05-20 11:09:47 -04:00
Thaddeus Crews
1c4b660312
Merge pull request #96611 from Dynamic-Pistol/master
Add `PROPERTY_HINT_INPUT_NAME` for use with `@export_custom` to allow using input actions
2025-05-13 16:22:25 -05:00
Thaddeus Crews
d9c8376fe0
Merge pull request #105825 from Alex-Onceanu/playground
Fix `Camera2D` right and bottom limit to depend on bottom right corner
2025-05-13 16:22:24 -05:00
Alex Onceanu
1bdf237558
Fix Camera2D right and bottom limit to depend on bottom right corner 2025-05-12 19:05:08 +02:00
Thaddeus Crews
42b50abf15
Merge pull request #106113 from lodetrick/add-dictionary-type-hints
Add missing dictionary and array type hints
2025-05-07 12:48:04 -05:00
Logan Detrick
247520b348 Add missing dictionary and array type hints 2025-05-06 12:35:19 -07:00
Thaddeus Crews
fd1168620f
Merge pull request #105718 from aaronfranke/nav-const-caps
Capitalize global navigation constants
2025-05-06 08:38:07 -05:00
kobewi
34b485d62b Remove empty constructors and destructors from scene/ 2025-05-06 14:46:54 +02:00
Aaron Franke
783728fcb4
Capitalize global navigation constants 2025-05-05 12:08:15 -07:00
Thaddeus Crews
c20ac6c01e
Merge pull request #106000 from funkysandwich/one_char_pr
Fix AudioStreamPlayer3D's `layer_mask` property using the wrong property hint (+ misc related fixes)
2025-05-05 11:24:09 -05:00
funkysandwich
721b1a3d64 Fix AudioStreamPlayer3D's layer_mask property using the wrong property hint
Also remove unnecessary physics layer property hints from some bool properties on raycast and shapecast nodes
2025-05-05 10:58:46 -05:00
Thaddeus Crews
da462c093a
Merge pull request #105147 from Lazy-Rabbit-2001/sprite_stretching
Allow `Sprite2D` being dragged to change their `region_rect`
2025-05-02 09:25:27 -05:00
lawnjelly
f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Thaddeus Crews
627547cb7d
Merge pull request #105861 from groud/fix_flipped_tile_rendering
Fix rotated/flipped tiles rendering origin
2025-04-28 14:10:48 -05:00
Thaddeus Crews
0bae1116af
Merge pull request #105473 from rbaker87/camera2d_smoothing_fix
Fix process callback state getting overwritten by calls to `set_process_smoothing_speed`
2025-04-28 10:01:26 -05:00
Lazy-Rabbit-2001
1410bca5ce Allow Sprite2D being dragged to change their region_rect 2025-04-28 22:43:41 +08:00
Gilles Roudière
52aee9c325 Fix rotated/flipped tiles rendering origin 2025-04-28 13:34:39 +02:00
Ryan Baker
b7200d1e73 Fix process callback state getting overwritten by calls to set_process_smoothing_speed 2025-04-27 20:40:43 -04:00
Thaddeus Crews
3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Dynamic-Pistol
c8fed1e1d0 Add PROPERTY_HINT_INPUT_NAME
Added PROPERTY_HINT_INPUT_NAME for StringName based off https://github.com/godotengine/godot-proposals/discussions/7559
2025-04-23 22:23:44 +02:00