Commit Graph

590 Commits

Author SHA1 Message Date
Michael Alexsander dd63bdfff1 Fix GridMap editor cursor starting at the wrong position 2026-06-23 20:30:37 -03:00
Thaddeus Crews c3e6b2c093 Merge pull request #119319 from YeldhamDev/meshlib_categories
Add categories to `MeshLibrary`
2026-06-23 14:49:16 -05:00
Thaddeus Crews cf1bf73aa7 Merge pull request #118583 from YeldhamDev/gridmap_show_octants
Add octant visualization to `GridMap`
2026-06-19 15:09:24 -05:00
smix8 eb00a8546d Split Node3DEditorViewport into a dedicated file
Splits `Node3DEditorViewport` into a dedicated file.

The main `Node3DEditorPlugin` file was one if the biggest files of the entire engine. It was getting way too big to be viewed, parsed and displayed effectively (e.g. GitHub, certain IDEs). While still big after this PR it at least splits it more or less in half.

- Moves `Node3DEditorViewport` and related helper classes to its own file `node_3d_editor_viewport` file.
- Moves the (shared) constexpr to its own file `node_3d_editor_constants` file.
- Forward declares many more classes.
- Removes unnecessary includes.
- Fixes classes that needed the actual Node3DViewport class.
2026-06-19 17:30:50 +02:00
Michael Alexsander ebcbd78fbf Add categories to MeshLibrary
Co-authored-by: smix8 <52464204+smix8@users.noreply.github.com>
2026-05-15 10:45:25 -03:00
Michael Alexsander e36a8e266a Fix incorrect grid floor position before input in the GridMap editor 2026-05-04 20:47:42 -03:00
Michael Alexsander aec922ab29 Fix GridMap editor's grid not showing unless the scene is reopened 2026-04-27 15:15:29 -03:00
Michael Alexsander d243f7c6d4 Improve GridMap collider navmesh baking performance when using bake bounds
Co-authored-by: smix8 <52464204+smix8@users.noreply.github.com>
2026-04-22 19:40:01 -03:00
Michael Alexsander a76a7d83b4 Fix MeshLibrary editor taking priority over GridMap when it shouldn't 2026-04-16 12:51:06 -03:00
Michael Alexsander 157b16f9ef Add octant visualization to GridMap 2026-04-15 21:57:04 -03:00
Michael Alexsander ba709f1226 Add octant querying to GridMap 2026-04-07 12:43:28 -03:00
kobewi d62f1c8900 Add type filters to create dialog 2026-03-31 17:17:23 +02:00
Thaddeus Crews a644e7ff38 Merge pull request #114861 from dalexeev/improve-editor-only-class-checking
Improve editor-only class checking
2026-03-30 13:35:14 -05:00
Danil Alexeev 32d1f518fa Improve editor-only class checking 2026-03-25 17:07:39 +03:00
Michael Alexsander 76b2ed7c24 Make GridMap editor show mesh previews as a fallback 2026-03-24 11:32:16 -03:00
Rémi Verschelde 8416dbe3d9 Merge pull request #117525 from YeldhamDev/gridmap_ignore_repeat_selections
Make the `GridMap` editor ignore empty and repeated selections
2026-03-23 22:34:58 +01:00
Rémi Verschelde 86b84d861b Merge pull request #117521 from YeldhamDev/gridmap_view_selection_fix
Fix 3D viewport selection getting stuck when editing a `GridMap`
2026-03-23 22:34:54 +01:00
Michael Alexsander c766fb1ce8 Create a proper editor for MeshLibrary 2026-03-21 11:16:26 -03:00
Michael Alexsander 1d77e2f10f Fix 3D viewport selection getting stuck when editing a GridMap 2026-03-17 15:45:31 -03:00
Michael Alexsander 690f409998 Make the GridMap editor ignore empty and repeated selections 2026-03-17 15:12:01 -03:00
Thaddeus Crews 642f14b5bb Merge pull request #117402 from akien-mga/clangd-unused-includes-modules
Remove unused includes in `modules` with clangd-tidy
2026-03-16 11:33:07 -05:00
Rémi Verschelde 6d309c858e Remove unused includes in modules with clangd-tidy 2026-03-16 16:40:39 +01:00
Michael Alexsander 96edb55fcd Fix mouse wheel zoom scrolling contents in the GridMap editor 2026-03-15 12:26:36 -03:00
kobewi 9a0c0bf757 Remove redundant _has_main_screen() overrides 2026-03-13 13:10:09 +01:00
Thaddeus Crews 83f396d0dd Merge pull request #116973 from YeldhamDev/we_need_coordination
Add cursor coordinates to the `GridMap` editor
2026-03-06 12:40:33 -06:00
Thaddeus Crews 363de27105 Merge pull request #116814 from YeldhamDev/gridmap_selection_paste_fixes
Fix problems with undoing selection and pasting in `GridMap` editor
2026-03-06 12:40:31 -06:00
Thaddeus Crews cac8aad359 Merge pull request #116685 from YeldhamDev/gridmap_reset_button
Add button to clear rotation in the `GridMap` editor
2026-03-06 12:40:29 -06:00
Michael Alexsander 27c86165f7 Add View3DController for editor 3D view manipulation 2026-03-05 12:51:48 -03:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Rémi Verschelde 18edfa5245 Explicitly include scene_tree.h where used
Pre-requisite before removing `scene_tree.h` from `node.h`
which has cascading consequences on most of the codebase.
2026-03-05 10:43:25 +01:00
Thaddeus Crews fe6f78a4c7 Merge pull request #117036 from YeldhamDev/tile_grid_focus_out
Stop drag actions in the `TileMapLayer` and `GridMap` editors when focus is lost
2026-03-04 21:03:51 -06:00
Thaddeus Crews c53c5a1f49 Merge pull request #116565 from YeldhamDev/you_unspin_me_round_round
Make possible to undo rotation of selected `GridMap` cells.
2026-03-04 14:32:42 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 765362b033 Explicitly include core/config/engine.h where used 2026-03-04 10:17:10 +01:00
Michael Alexsander bbacc674b8 Stop drag actions in the TileMapLayer and GridMap editors when focus is lost 2026-03-03 16:13:40 -03:00
Thaddeus Crews d89e19f556 Merge pull request #116683 from YeldhamDev/grid_map_rotation_fix
Fix wrong rotation of cells while being pasted in the `GridMap` editor
2026-03-02 15:53:55 -06:00
Thaddeus Crews 524d230927 Merge pull request #116546 from YeldhamDev/where_did_that_cell_go
Fix undoing `GridMap` move operations resulting in deleted cells
2026-03-02 15:53:54 -06:00
Michael Alexsander 6c98eda54c Add cursor coordinates to the GridMap editor
Co-authored-by: Bad Sector <badsector@runtimeterror.com>
2026-03-02 15:56:07 -03:00
Michael Alexsander 4d012fe73c Fix problems with undoing selection and pasting in GridMap editor 2026-02-27 16:28:45 -03:00
Thaddeus Crews 95535167b3 Merge pull request #116778 from YeldhamDev/orbiting_around_the_world
Fix `GridMap` editor pasting when orbiting using the "Alt" key
2026-02-27 08:49:39 -06:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Michael Alexsander 8882d0efb9 Fix GridMap editor pasting when orbiting using the "Alt" key 2026-02-26 18:10:07 -03:00
Thaddeus Crews fc572669de Merge pull request #116555 from YeldhamDev/gridmap_editor_touchups
Fix some UI issues with the `GridMap` editor
2026-02-26 08:15:19 -06:00
Michael Alexsander 683950826b Fix some UI issues with the GridMap editor 2026-02-25 21:37:36 -03:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
Thaddeus Crews 36dac9c6c9 Merge pull request #103005 from Scarface1809/grid_map_show_colliders
Add support for displaying `GridMap` collider in editor
2026-02-25 09:27:33 -06:00
Michael Alexsander 0c83b58b36 Add button to clear rotation in the GridMap editor 2026-02-23 19:29:06 -03:00
Michael Alexsander 1842f22a15 Fix wrong rotation of cells while being pasted in the GridMap editor 2026-02-23 16:44:09 -03:00
Scarface1809 e658da74e4 Feat: Support to show GridMap collider in editor 2026-02-21 01:31:15 +00:00
Michael Alexsander 513d869839 Make possible to undo rotation of selected GridMap cells. 2026-02-20 21:24:01 -03:00