summaryrefslogtreecommitdiff
path: root/editor/plugins/tiles
AgeCommit message (Collapse)Author
2022-11-04Fix pathological corner case in drawing tileset editorclayjohn
Interleaving draw_rect calls with and without a texture forces every rect to have its own draw call. In this case it meant that there is a draw call for every single tile in the atlas. This change makes it so the renderer can batch draw calls which reduced the draw call count by a factor of 512
2022-11-03Fix incorrect drawing of alternative tilesNinni Pipping
2022-11-02Unify usage of undo_redo in editorkobewi
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-31Merge pull request #67445 from Zylann/rename_queue_deleteRémi Verschelde
Rename queue_delete => queue_free
2022-10-31Merge pull request #67580 from KoBeWi/little_thingsRémi Verschelde
Minor code improvements
2022-10-24Rename queue_delete => queue_freeMarc Gilleron
# Conflicts: # editor/plugins/tiles/tiles_editor_plugin.cpp
2022-10-20Make terrain painting not change neighbors centers bitsGilles Roudière
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-18Minor code improvementskobewi
2022-10-15Fix case where mutex is never unlockedMarc Gilleron
2022-10-15Merge pull request #63332 from KoBeWi/static_images_aka_photosRémi Verschelde
Make some Image methods static
2022-10-15Separate Line and CurveLinear iconskobewi
2022-10-14Make some Image methods statickobewi
2022-10-13Merge pull request #59468 from EricEzaM/fix-zoom-shortcutsRémi Verschelde
Fix zoom in/out keyboard shortcuts not working
2022-10-11Fix source sort not saving in TileMap editorkobewi
2022-10-10Fix crashing when editing the `TileSet` fieldKongfa Waroros
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-04Disconnect TileSet from source editor if no sourceskobewi
2022-10-03Merge pull request #66713 from KoBeWi/remembuh_meRémi Verschelde
Remember tile source sort between sessions
2022-10-03Merge pull request #66656 from magian1127/4.0DelAutotileRémi Verschelde
TileMap mouse right can delete autotile
2022-10-02Remember tile source sort between sessionskobewi
2022-09-30Merge pull request #65903 from groud/improve_terrain_paintingRémi Verschelde
Right-click to erase TileSet terrains and bugfixes
2022-09-30TileMap mouse right can delete autotileMagian
2022-09-27Fix mouse release leaving dock areaGuilherme Sousa
2022-09-24Fix zoom in/out keyboard shortcuts not working since the introduction of ↵Eric M
EditorZoomWidget. Add KP shortcuts to zoom in/out.
2022-09-20Merge pull request #66159 from MewPurPur/fix-animated-tiles-offset-unitRémi Verschelde
Remove px unit from animation_separation in TileSet atlas editor
2022-09-20Remove px unit from animation_separation in TileSet atlas editor (as it's ↵VolTer
tile-based, not pixel-based)
2022-09-17Fix atlas view drawing roots having zoom applied twiceMinusKube
2022-09-16Right-click to erase TileSet terrains and bugfixesGilles Roudière
2022-09-10Fix broken patterns on TileMap layer changekobewi
2022-09-08Make `Vector2i` values paired with `EDSCALE` be just `Vector2`Michael Alexsander
2022-09-08Merge pull request #65241 from bruvzg/no_keymap_ambiguityRémi Verschelde
Fix key mapping changes when moving from macOS to other platform.
2022-09-07Fix key mapping changes when moving from macOS to other platformbruvzg
Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
2022-09-07Remove / Replace old Navigation Debug Visualizationsmix8
- removes / replaces leftovers from old navigation debug code - cleanes SceneTree and ProjectSettings from old navigation debug
2022-09-07Fix tile source selection from pickingkobewi
2022-09-06Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky
For consistency. Every other exposed `one_shot` is spaced out like this.
2022-09-06Merge pull request #64661 from Mickeon/rename-tilemap-worldRémi Verschelde
Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`
2022-09-05Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`Micky
For both TileMap and GridMap: - `world_to_map` -> `local_to_map` - `map_to_world` -> `map_to_local` Also changes any mention of "world" in this context to "local" to avoid future confusion. Finally, updates the docs of both methods for consistency. In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
2022-09-04Replace Rect2(i) has_no_area with has_areaAaron Franke
2022-09-02Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
2022-08-29Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde
NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
2022-08-28Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde
Rename `hint_tooltip` to `tooltip_text` & setter getter
2022-08-27Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record
2022-08-27Rename `hint_tooltip` to `tooltip_text` & setgetMicky
`hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
2022-08-26Merge pull request #64601 from MinusKube/alternative-tile-popup-bugRémi Verschelde
Fix alternative tile popup menu not being openable
2022-08-25Fix alternative tile popup menu not being openableMinusKube
2022-08-25Fix tileset image and background sometimes disappearingMinusKube
2022-08-22Add per-scene UndoRedokobewi