summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2022-12-22Use TileSet navigation layer layers when TileMap generates navigation polygonsreejk
2022-12-21Merge pull request #69688 from smix8/navagent_stop_origin_automove_4.xRémi Verschelde
Stop NavigationAgents without a target from moving to world origin
2022-12-21Merge pull request #67111 from DarkKilauea/nav-queries-linkRémi Verschelde
Added signal to NavigationAgent when entering a link
2022-12-20Fix double get_singleton()Quentin Guidée
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com>
2022-12-20Merge pull request #70244 from DarkKilauea/nav-fix-abbrev-compatRémi Verschelde
[4.x] Fix typo and ensure backwards compatibility for changed property names
2022-12-20Fix typo and ensure backwards compatibility for changed property namesJosh Jones
Changes to the name of the `navmesh` and `navpoly` properties on `NavigationRegion` caused navigation data to be lost on load. This PR creates uses `_set`/`_get` to handle compatibility with the older names on load, preserving the data. Also fixes a typo on `get_vertices_per_polygon` in `NavigationMesh`, and renames the property to remove the `polygon_` prefix which doesn't match the setter/getter. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-12-19Merge pull request #70263 from reduz/restore-rotation_degreesRémi Verschelde
Restore 'rotation_degrees' properties.
2022-12-19TileSet Simplify tile shape polygonskleonc
2022-12-19Restore 'rotation_degrees' properties.Juan Linietsky
By popular demand, restoring the helper properties to rotate objects in degrees. Affected are local and global rotations for: * Node2D * Node3D * Control
2022-12-17Add support for emitting a signal when entering a NavLinkJosh Jones
2022-12-17Fix Navigation API abbreviations inconsistencysmix8
Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
2022-12-17Move NavigationPolygon to dedicated resource filesmix8
Moves NavigationPolygon resource class from NavigationRegion2D file to a dedicated file in resource folder.
2022-12-17Merge pull request #70118 from clayjohn/tilemap-layersRémi Verschelde
Use large offset for tilemap layer level canvas items
2022-12-15Queue redraw when MultiMesh instance transform changesbmolyneaux
Fixes: #66849 This is a 4.0 version of #54899.
2022-12-15Use large offset for tilemap layer level canvas itemsclayjohn
This matches the logic in _rendering_update_dirty_quadrants
2022-12-15Remove a confusing TileMap warningGilles Roudière
2022-12-13Merge pull request #70003 from clayjohn/GLES3-ccRémi Verschelde
Various fixes and documentation for CanvasGroup
2022-12-13Various fixes and documentation for CanvasGroupclayjohn
Properly apply custom materials with CanvasGroups in the GLES3 backend Properly blur backbuffer when using a partial rect in forward_plus and gl_compatibility renderers Properly set fit_margin when clear_margin is set Fix shader error during backbuffer clear in mobile renderer
2022-12-12Remove single-element groups from GPUParticles2Dkobewi
2022-12-12Merge pull request #69629 from smix8/agent_wild_callback_pointer_4.xRémi Verschelde
Fix Navigation agent callback wild pointer crash
2022-12-12Fix Navigation agent callback wild pointer crashsmix8
Fixes crash in sanitizer builds when callback agent or object are already freed.
2022-12-12Merge pull request #69950 from kleonc/tile-map-const-refs-for-the-winRémi Verschelde
`TileMap` Pass some parameters by `const &` instead of by value
2022-12-12Merge pull request #69922 from adamscott/fix-tilemap-tileset-heap-use-after-freeRémi Verschelde
Fix `heap-use-after-free` error in `TileMap::~TileMap()`
2022-12-12Merge pull request #67050 from KoBeWi/syrtRémi Verschelde
Warn if isometric TileMap is not Y-sorted
2022-12-12TileMap Pass some parameters by `const &` instead of by valuekleonc
2022-12-12Fix `heap-use-after-free` error in `TileMap::~TileMap()`Adam Scott
Co-authored-by: Gilles Roudiere <gilles.roudiere@gmail.com>
2022-12-10Enable assigning an owner to navigation regions and linksJosh Jones
This allows users of the server APIs to get back the nodes that created certain regions and links.
2022-12-09Merge pull request #69644 from radenling/fix-viewport-update-in-editorRémi Verschelde
Fix for 2D viewport not updating in the editor when the camera moves
2022-12-09Fix TileMap drawing itself twice on creationVladislav Slobodenyuk
Adds a check before calling `item_rect_changed()` in `_recompute_rect_cache()` of `scene/2d/tile_map.cpp`. Makes sure TileMap is only redrawn if the rect is actually changed. Fixes #69754
2022-12-09Merge pull request #69774 from ↵Rémi Verschelde
Calinou/backbuffercopy-only-show-rect-when-relevant Fix BackBufferCopy `rect` property appearing when not relevant in inspector
2022-12-08Fix BackBufferCopy `rect` property appearing when not relevant in inspectorHugo Locurcio
The `rect` property is only effective if `copy_mode` is Rect.
2022-12-08TouchScreenButton: Fix screen capability checkRémi Verschelde
Fixes #69572.
2022-12-07Merge pull request #69713 from groud/rename_get_surrounding_tilesRémi Verschelde
Rename get_surrounding_tiles to get_surrounding_cells
2022-12-07Rename get_surrounding_tiles to get_surrounding_cellsGilles Roudière
2022-12-07Fix Determining Window for TouchscreenMarkus Sauermann
DisplayServer::screen_is_touchscreen will likely never utilize its parameter p_screen. This PR replaces this function by DisplayServer::is_touchscreen_available() with the same functionality. This solves the problem, that a SubViewport was used for determining the screen, which resulted in error messages.
2022-12-06Stop NavigationAgents without a target from moving to world originsmix8
Stops NavigationAgents moving to the world origin without anyone telling them to do so.
2022-12-06Fix Path2D fish bone directionYaohua Xiong
2022-12-06Fix for 2D viewport not updating in the editor when the camera movesRichard Adenling
This fixes a problem with 2D viewports not taking the camera position into consideration when previewed in the editor. Fixes #40441
2022-12-06Path2D: Fix build issue after conflicts between #68860 and #69115Rémi Verschelde
2022-12-06Merge pull request #68860 from xiongyaohua/path3d_fishbonesRémi Verschelde
Draw fish bones for Path3D and Path2D in the Editor
2022-12-05Refactor baking code for Curve2DYaohua Xiong
The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. A similar refacor had been applied to Curve3D. The test cases for Curve2D is updated, comparing floating point with is_equal_approxmiate() instead of `==`, in order to avoid float precision problem.
2022-12-05draw fish bones for Path2D and Path3DYaohua Xiong
These fish bones are add to indicate the direction and local transforms alone the path.
2022-11-29Move z_index, z_as_relative and y_sort_enabled from Node2D to CanvasItemHendrik Brucker
2022-11-28Merge pull request #68486 from smix8/navpoly_outline_convex_error_4.xRémi Verschelde
Add detail to NavigationPolygon outline error msg
2022-11-28Merge pull request #59801 from Sauermann/fix-node2d-viewport-root-orderRémi Verschelde
Fix Viewport root order after Node2D raise
2022-11-25Merge pull request #69146 from clayjohn/Polygon2D-errorRémi Verschelde
Ensure that mesh instance is properly freed when freeing Polygon2D
2022-11-25Fix inspector not showing name for LabelSettings.fontHaoyu Qiu
2022-11-24Ensure that mesh instance is properly freed when freeing Polygon2Dclayjohn
2022-11-24Merge pull request #67330 from KoBeWi/immortal_scenesRémi Verschelde
Don't free instanced scenes when recreating tiles
2022-11-22Fix AudioStreamPlayer2D and 3D's `playing` not updating right awayMicky