Commit Graph

139 Commits

Author SHA1 Message Date
kobewi ea2cc82451 Fix first tile not being randomized 2026-06-08 17:06:13 +02:00
kobewi 4ff30699fd Improve some strings in ScenePaint2DEditor 2026-05-29 20:33:58 +02:00
Thaddeus Crews 441b63a91d Merge pull request #116691 from DexterFstone/improve-scene-paint-tool
Fix scene paint tool updating info
2026-05-07 11:13:28 -05:00
Thaddeus Crews 9c36ef4749 Merge pull request #116905 from KoBeWi/slashtableflip
Overhaul scene loading and edit state management
2026-05-07 11:13:25 -05:00
Thaddeus Crews bd4003e581 Merge pull request #119173 from kleonc/tile_set_editor_terrain_icon_show_raw_color
Fix `TileSet` editor terrain preview icons in paint mode
2026-05-06 14:56:29 -05:00
Thaddeus Crews 176b795177 Merge pull request #119174 from StarryWorm/remove-classdb-pragmas
Fix pragma includes
2026-05-04 12:40:40 -05:00
Enzo Novoselic 7b82c0fe01 Remove unnecessary class_db.h includes 2026-05-02 13:08:34 -04:00
kleonc a7156f48e7 Fix TileSet editor terrain preview icons in paint mode 2026-05-02 15:30:34 +02:00
Michael Alexsander b005890f06 [Update layer selector when modifying the TileMap in the inspector 2026-04-29 17:40:53 -03:00
kobewi 8cd87c2c16 Overhaul scene loading and edit state management 2026-04-14 16:53:30 +02:00
Thaddeus Crews 780b49ca3b Merge pull request #118315 from KoBeWi/taming_the_rng
Preview random tiles when painting
2026-04-09 17:41:19 -05:00
kobewi 6abd41799a Preview random tiles when painting 2026-04-08 15:34:03 +02:00
Rgeditv1 568c6104f9 Fix labels for TileSet Paint
Signed-off-by: Rgeditv1 <rgeditv1@protonmail.com>

Co-authored-by: KrakenByte <KrakenByte@users.noreply.github.com>
2026-04-04 02:32:22 -04:00
Thaddeus Crews 6a6162070d Merge pull request #117369 from KoBeWi/wrong_port_in_your_viewport
Fix broken panning in floating editors
2026-04-01 18:10:21 -05:00
Thaddeus Crews e1bd3176ce Merge pull request #117574 from KoBeWi/unleash_the_power_of_RefCounted
Rework TileSet editor proxy objects
2026-04-01 12:55:10 -05:00
kobewi e1ebc537ce Fix broken panning in floating editors 2026-03-30 16:48:19 +02:00
StarryWorm d610492fef Separate ResourceFormat* methods from main classes 2026-03-27 07:16:20 -04:00
StarryWorm 4ae336740d Add missing resource_*.h includes
Add missing `resource_importer.h` includes
Add missing `resource_loader.h` includes
Add missing `resource_saver.h` includes
2026-03-27 07:03:39 -04:00
Rémi Verschelde 7484a2e256 Merge pull request #117730 from KoBeWi/no_edit_only_read
Properly handle readonly resources in shapes editors
2026-03-23 22:36:11 +01:00
Filipe Abreu 106bbaa2e8 Fix #116636: Undoing terrain set move duplicates terrain in second set
Undoing a terrain set move could corrupt terrain data where a
terrain from the first set appears duplicated in the second set.

This happens because UndoRedo restores terrain properties without
clearing the existing terrain container first, causing the previous
state to be overlaid on top of the current one.

Fix this by clearing the terrains in the affected terrain
sets before restoring their properties during undo.
This ensures the terrain container is rebuilt from the
saved properties instead of merging with the current state.
2026-03-23 14:56:26 +00:00
kobewi ce2f416e82 Properly handle readonly resources in shapes editors 2026-03-22 16:16:56 +01:00
kobewi 41e0cf8185 Rework TileSet editor proxy objects 2026-03-18 18:17:15 +01:00
Rémi Verschelde 98868393cc Style: Enforce #include validation hook 2026-03-18 10:41:59 +01:00
Rémi Verschelde e33e98a26f Style: Apply clang-format grouping rules 2026-03-17 20:11:01 +01:00
Rémi Verschelde 005e054245 Remove unused includes in editor with clangd-tidy
Also includes the few changes flagged in `main`.
2026-03-15 20:47:05 +01:00
kobewi 9a0c0bf757 Remove redundant _has_main_screen() overrides 2026-03-13 13:10:09 +01:00
Rémi Verschelde 8028b65442 Remove unused includes in scene with clangd-tidy 2026-03-10 16:40:00 +01: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
StarryWorm 3cb2d376f8 Get rid of all unnecessary class_db.h includers 2026-03-04 17:40:05 -05: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 727b06a79f Move ProcessID typedef out of OS
This allows decoupling a number of files from `os.h`.
2026-03-04 15:00:45 +01:00
Rémi Verschelde f332faf46b Explicitly include core/os/os.h where used 2026-03-04 09:54: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 e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06: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
Dexter 141605da27 improve scene paint tool 2026-02-24 01:56:36 +03:30
Thaddeus Crews 953e6e8116 Merge pull request #109360 from DexterFstone/add-a-scene-painter-tool
Add a scene painter tool
2026-02-23 11:59:08 -06:00
DexterFstone 69f4719e05 Add a scene painter tool 2026-02-23 14:34:10 +03:30
kobewi 404ab3e2bd Fix error in TileSetEditor 2026-02-21 00:10:50 +01:00
Thaddeus Crews 02451893cc Merge pull request #115008 from KoBeWi/tileanslation
Improve auto-translation of tile editors
2026-02-20 14:34:29 -06:00
Lukas Tenbrink d6540e4aa7 Add move semantics to RBMap and RBSet. Make copy constructors explicit. 2026-02-20 20:47:15 +01:00
kobewi 0d01c01c7b Improve auto-translation of tile editors 2026-02-20 09:56:32 +01:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
Rémi Verschelde 1cdf69b88f Merge pull request #113594 from lodetrick/tilemap-fixes
Fix TileMap Dock button placement and errors
2026-01-19 10:45:40 +01:00
Logan Detrick eeaf88daaf Fix TileMap wide button errors 2026-01-15 16:08:57 -08:00
kobewi d70866bce8 Fix TileSet dock becoming focused when switching TileMapLayers 2026-01-15 16:46:32 +01:00
passivestar 922a3c2566 Don't tint menu button icons in context toolbar 2026-01-12 11:54:49 +04:00