Age | Commit message (Collapse) | Author |
|
They are based on:
- Boolean arithmetic simplifications
- setting variables that are not accessed
- constant variables
|
|
Last rebase was too old, didn't include this API rename.
|
|
MisterMX/fix/tileset-custom-data-type-reload-editor
fix(tileset): Recreate custom data editor if type has changed
|
|
Properly center labels in the TileMap/Set editors
|
|
|
|
|
|
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
|
|
|
|
|
|
Unify usage of GLOBAL/EDITOR_GET
|
|
Rename queue_delete => queue_free
|
|
Minor code improvements
|
|
# Conflicts:
# editor/plugins/tiles/tiles_editor_plugin.cpp
|
|
|
|
|
|
|
|
|
|
Make some Image methods static
|
|
|
|
|
|
Fix zoom in/out keyboard shortcuts not working
|
|
|
|
|
|
change warnings=all to use /W4.
|
|
|
|
Remember tile source sort between sessions
|
|
TileMap mouse right can delete autotile
|
|
|
|
Right-click to erase TileSet terrains and bugfixes
|
|
|
|
Signed-off-by: MisterMX <mbxd12@web.de>
|
|
|
|
EditorZoomWidget. Add KP shortcuts to zoom in/out.
|
|
Remove px unit from animation_separation in TileSet atlas editor
|
|
tile-based, not pixel-based)
|
|
|
|
|
|
|
|
|
|
Fix key mapping changes when moving from macOS to other platform.
|
|
Removes separate `Command` key (use `Meta` instead).
Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
|
|
- removes / replaces leftovers from old navigation debug code
- cleanes SceneTree and ProjectSettings from old navigation debug
|
|
|
|
For consistency. Every other exposed `one_shot` is spaced out like this.
|
|
Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`
|
|
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.
|
|
|
|
|
|
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`.
|
|
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()`).
|