Commit Graph

145 Commits

Author SHA1 Message Date
Michael Alexsander f1fbc06cc3 Add option for 3D viewports to override the GridMap editor axis 2026-06-24 11:11:22 -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
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 a76a7d83b4 Fix MeshLibrary editor taking priority over GridMap when it shouldn't 2026-04-16 12:51:06 -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
Michael Alexsander 96edb55fcd Fix mouse wheel zoom scrolling contents in the GridMap editor 2026-03-15 12:26:36 -03: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
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
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
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
Michael Alexsander 513d869839 Make possible to undo rotation of selected GridMap cells. 2026-02-20 21:24:01 -03:00
Michael Alexsander 61f6005ca4 Fix undoing GridMap move operations resulting in deleted cells 2026-02-20 15:00:20 -03:00
Rémi Verschelde d364a63b88 Merge pull request #113396 from KoBeWi/Grock
Change GridMap and Replication to EditorDock
2026-02-20 11:16:26 +01:00
kobewi d6975dac11 Add FilterLineEdit to unify editor filter field navigation 2026-02-03 15:37:20 +01:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
kobewi fbcb94cf19 Change GridMap and Replication to EditorDock 2026-01-26 13:19:48 +01:00
Michael Alexsander a45bdce763 Add and adjust more scroll hints in the editor 2025-12-17 11:15:33 -03:00
Rémi Verschelde ff610712f5 Merge pull request #109878 from ryevdokimov/fix-grid-map-move
Fix `GridMap` Move Action Undo/Redo/Cancel
2025-12-04 13:21:31 +01:00
Rémi Verschelde cbeb7339b5 Merge pull request #112301 from smix8/grid_curser
Fix GridMap `cursor_instance` transparency error spam
2025-11-26 23:43:42 +01:00
kobewi 67735cf213 Make bottom panel into available dock slot 2025-11-21 18:52:13 +01:00
smix8 fccba5b859 Fix GridMap cursor_instance transparency error spam
Fixes GridMap cursor_instance transparency error spam.
2025-11-02 00:32:08 +01:00
mchlopecki 3ee7bf459a Add Bresenham Line to GridMap Drawing 2025-10-26 11:40:03 +03:00
Thaddeus Crews 45502d1f04 Merge pull request #104510 from fstxz/gridmap-preview-scale
GridMap: fix cell scale not applying to the cursor mesh
2025-09-30 20:10:43 -05:00
Aaron Franke 9fbf5808a0 Rename server "free" functions to "free_rid" to match exposed API 2025-09-30 16:52:25 -07:00
robert yevdokimov 812c94a20c Fix GridMap Move Action Undo/Redo/Cancel 2025-09-25 12:21:58 -05:00