Commit Graph

11121 Commits

Author SHA1 Message Date
VolTer ded10214bf Rename Indent Left/Right to Indent/Dedent 2022-09-29 14:42:46 +02:00
Rémi Verschelde 6bbc3cbf04 Animation editor: Disable onion skinning temporarily due to rendering bug
Works around #53870.
2022-09-29 12:23:13 +02:00
Rémi Verschelde 315a71103e Merge pull request #66565 from clayjohn/canvas-lights
Clean up canvas light shader API.
2022-09-29 10:43:42 +02:00
clayjohn 1a0890122f Clean up canvas light shader API.
Expose LIGHT_ENERGY and LIGHT_IS_DIRECTIONAL.
Add LIGHT_DIRECTION
2022-09-28 11:46:58 -07:00
Rémi Verschelde 0e53dd642c Fix MSVC warning C4706: assignment within conditional expression
Part of #66537.
2022-09-28 16:05:07 +02:00
Rémi Verschelde 73f5683c34 Merge pull request #58049 from jmb462/fix-distraction-mode-docks-tab
Prevent docks to be reset to first tab when switching dock visibility
2022-09-28 00:16:08 +02:00
Rémi Verschelde fdb2456ccb i18n: Sync editor translations with Weblate (3.5 branch)
(cherry picked from commit 7ee90a080f)
2022-09-27 23:51:05 +02:00
Rémi Verschelde c2f66648f1 Merge pull request #66244 from GuilhermeGSousa/tilemap-dock-release-fix
Fix mouse release leaving dock area
2022-09-27 15:52:11 +02:00
Guilherme Sousa 1ae1a02098 Fix mouse release leaving dock area 2022-09-27 13:35:01 +02:00
kobewi 1bf741c277 Fix wrong DirAccess function in project converter 2022-09-27 13:12:31 +02:00
Rémi Verschelde 43eac58e31 Merge pull request #66441 from Calinou/editor-fix-play-buttons-disappearing
Fix project run/stop buttons disappearing in the editor
2022-09-27 09:53:44 +02:00
Yuri Rubinsky 84f2c68c84
Merge pull request #66440 from Chaosus/shader_completion_defines 2022-09-26 18:18:24 +03:00
Rémi Verschelde 39facb35a0 SCons: Unify tools/target build type configuration
Implements https://github.com/godotengine/godot-proposals/issues/3371.

New `target` presets
====================

The `tools` option is removed and `target` changes to use three new presets,
which match the builds users are familiar with. These targets control the
default optimization level and enable editor-specific and debugging code:

- `editor`: Replaces `tools=yes target=release_debug`.
  * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2`
- `template_debug`: Replaces `tools=no target=release_debug`.
  * Defines: `DEBUG_ENABLED`, `-O2`/`/O2`
- `template_release`: Replaces `tools=no target=release`.
  * Defines: `-O3`/`/O2`

New `dev_build` option
======================

The previous `target=debug` is now replaced by a separate `dev_build=yes`
option, which can be used in combination with either of the three targets,
and changes the following:

- `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`),
  enables generating debug symbols, does not define `NDEBUG` so `assert()`
  works in thirdparty libraries, adds a `.dev` suffix to the binary name.

Note: Unlike previously, `dev_build` defaults to off so that users who
compile Godot from source get an optimized and small build by default.
Engine contributors should now set `dev_build=yes` in their build scripts or
IDE configuration manually.

Changed binary names
====================

The name of generated binaries and object files are changed too, to follow
this format:

`godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]`

For example:
- `godot.linuxbsd.editor.dev.arm64`
- `godot.windows.template_release.double.x86_64.mono.exe`

Be sure to update your links/scripts/IDE config accordingly.

More flexible `optimize` and `debug_symbols` options
====================================================

The optimization level and whether to generate debug symbols can be further
specified with the `optimize` and `debug_symbols` options. So the default
values listed above for the various `target` and `dev_build` combinations
are indicative and can be replaced when compiling, e.g.:

`scons p=linuxbsd target=template_debug dev_build=yes optimize=debug`
will make a "debug" export template with dev-only code enabled, `-Og`
optimization level for GCC/Clang, and debug symbols. Perfect for debugging
complex crashes at runtime in an exported project.
2022-09-26 16:31:46 +02:00
Rémi Verschelde 59f6233075 Merge pull request #66416 from MewPurPur/dependency-editor-improvements
Add ability to open multiple scenes in the Dependency Editor
2022-09-26 15:51:07 +02:00
Rémi Verschelde 1e14795f75 Merge pull request #66382 from MewPurPur/replace-in-files-forever
Make Replace in Files always visible in Search
2022-09-26 15:51:01 +02:00
Rémi Verschelde 46635342a1 Merge pull request #66309 from RedMser/focus-search-bar-scene-tree-dialog
focus search bar by default
2022-09-26 15:50:52 +02:00
Yuri Rubinsky 344aa610e3 Add defines to completion list in shaders 2022-09-26 16:04:19 +03:00
Hugo Locurcio a98e2eb36f
Fix project run/stop buttons disappearing in the editor 2022-09-26 14:53:26 +02:00
Rémi Verschelde 49fcf4ffad Style: Cleanup header guards for consistency
Fix file names for {Static,Lightmap}RaycasterEmbree.
2022-09-26 13:51:17 +02:00
Rémi Verschelde 94d511f43b Merge pull request #64756 from Calinou/editor-rename-run-project-shortcuts
Rename editor run/pause/stop shortcuts and tooltips for consistency
2022-09-26 08:20:26 +02:00
Rémi Verschelde c380c30c7f Merge pull request #66404 from KoBeWi/advancement
Remember advanced state of connection dialog
2022-09-26 08:20:12 +02:00
Rémi Verschelde e406badafd Merge pull request #66405 from Rindbee/fix-gd-not-sync-via-lsp
Fix out of sync when the script is edited externally via lsp
2022-09-26 08:20:04 +02:00
VolTer 8b6ce982db Add ability to open multiple scenes in the Dependency Editor 2022-09-25 22:20:16 +02:00
kobewi bb458d82ea Remember advanced state of connection dialog 2022-09-25 20:22:44 +02:00
Hugo Locurcio 74b324c434
Rename editor run/pause/stop shortcuts and tooltips for consistency
The new naming better suits non-game applications and is more explicit.
2022-09-25 20:17:58 +02:00
Rindbee 412e87349a Fix out of sync when the script is edited externally via lsp
Previously, external editing via lsp would modify the modified time of the script,
which caused the internal display of the script to not be refreshed when refocusing
the engine.

Now saving the script externally via lsp will automatically refresh the internal
display.
2022-09-25 23:30:35 +08:00
Rémi Verschelde d456dce8af Merge pull request #65535 from RedMser/script-editor-inheritance-icon
Show override icon in script editor gutter
2022-09-25 17:08:45 +02:00
Rémi Verschelde eae7d27578 Merge pull request #66233 from DorianSzlachcic/3-to-4-converter-issue
Prevent 3-to-4 project converter from adding extra line for move_and_slide
2022-09-25 17:05:47 +02:00
DorianSzlachcic bf6d84b8bb Prevent 3-to-4 project converter from adding extra line for move_and_slide
Fixes #66054
2022-09-25 11:54:33 +02:00
Rémi Verschelde 919d8b3711 Merge pull request #65290 from requizm/fix/65081/cannot_set_escape
Disabled "Escape" button when closing the shortcut window
2022-09-25 11:06:18 +02:00
Rémi Verschelde a5b538bdb2 Merge pull request #66289 from Rindbee/fix-scene-export
Fix sub-scene root nodes not getting the correct inheritance chain when exporting
2022-09-25 11:04:45 +02:00
VolTer 882a226d12 Make Replace in Files always visible in Search 2022-09-25 02:49:53 +02:00
Rémi Verschelde 632dbab226
Merge pull request #66338 from asmaloney/some-include-cleanups
Remove unused includes & move some includes to top of file
2022-09-25 00:22:17 +02:00
Rémi Verschelde c9e75a7c3c
Merge pull request #65531 from Mickeon/project-converter-missing-entries
Add a few missing entries in Project Converter
2022-09-25 00:22:00 +02:00
Andy Maloney 49ff3d5489 Remove unused includes & move some includes to top of file 2022-09-23 19:06:31 -04:00
RedMser 3183b7371d SceneTreeDialog: focus search bar by default 2022-09-23 18:04:48 +02:00
Rindbee 6973abd458 Fix sub-scene root nodes not getting the correct inheritance chain when exporting 2022-09-23 18:34:07 +08:00
Rémi Verschelde 3a8e711e33 Merge pull request #66254 from bruvzg/macos_title
[macOS extend-to-title] Add scene/project name to the editor title, and fix window button placement.
2022-09-23 09:44:37 +02:00
Rémi Verschelde ca88b23a3b Merge pull request #66248 from akien-mga/warnings-gcc-Wmaybe-uninitialized
Fix various -Wmaybe-uninitialized warnings from GCC 12.2.1
2022-09-23 09:42:53 +02:00
bruvzg 0dab11afa4
[macOS extend-to-title] Add scene/project name to the editor title, fix incorrect window button position/order when system primary language is RTL. 2022-09-22 23:09:56 +03:00
Nong Van Tinh 59f933b0e1 Fixed root name invalid at scene creation. 2022-09-22 17:02:07 +07:00
Rémi Verschelde d1a155e3cd Fix various -Wmaybe-uninitialized warnings from GCC 12.2.1
Not sure why I didn't get those before, it may be due to upstream
changes (12.2.1 is a moving target, it's basically 12.3-dev), or simply
rebuilding Godot from scratch with different options.
2022-09-22 11:29:48 +02:00
Rémi Verschelde 6d6f7f3de8 Merge pull request #66240 from bruvzg/ftr_hide
[Font Inspector Plugin] Hide "Add Feature" button if supported feature list is empty.
2022-09-22 08:27:18 +02:00
bruvzg 4351af30c8
[Font Inspector Plugin] Hide "Add Feature" button if supported feature list is empty. 2022-09-22 08:20:40 +03:00
kobewi 3a2abf7486 Automatically use class name for empty renames 2022-09-22 00:43:38 +02:00
Rémi Verschelde 0b06f8b0bd Merge pull request #65816 from bruvzg/proj_settings_missing_flags
Add missing initial window flags and window mode to the project settings.
2022-09-21 18:56:31 +02:00
Rémi Verschelde f37143b20a Merge pull request #65933 from Mickeon/remove-scene-tree-dock-unused
Remove unused `import_subscene()` in Scene Tree Dock
2022-09-21 18:55:39 +02:00
Rémi Verschelde e82a237f99 Merge pull request #65934 from YuriSizov/editor-theme-big-thumb
Improve icon generation in the editor theme
2022-09-21 18:55:33 +02:00
Rémi Verschelde f3373e8311 Merge pull request #66212 from kleonc/script-text-editor-fix-check-if-script-used-within-scene
`ScriptTextEditor` Fix checking if script is attached to any node belonging to scene
2022-09-21 18:55:18 +02:00
Rémi Verschelde 7817a472f3 QuickOpen: Disable loading resources for now, too slow
As expected while reviewing #62417 this is indeed not practical
without a better system to retrieve this information.

Fixes #66179.
2022-09-21 17:02:43 +02:00
kleonc 7f7966e10a Fix checking if script is attached to any node belonging to scene 2022-09-21 15:46:30 +02:00
Rémi Verschelde 53d2a9acdd Merge pull request #63576 from KoBeWi/list_clicker
Simplify script list click logic
2022-09-21 15:38:41 +02:00
Rémi Verschelde a1d7404efc Merge pull request #66056 from Rindbee/fix-EditorInspectorCategory-minimum-size-calculation
Fix `EditorInspectorCategory` minimum size calculation
2022-09-21 15:36:55 +02:00
Rémi Verschelde 057dd292e4 Merge pull request #62666 from AThousandShips/tree_folding
Tree recursive folding (like Scene Tree Dock)
2022-09-21 15:36:43 +02:00
Rindbee e9465825cd Fix EditorInspectorCategory minimum size calculation
Calculated using the same theme property values as in `NOTIFICATION_DRAW`, keeping the width at `0` and calculating only the height.
2022-09-21 19:56:19 +08:00
Ninni Pipping df9eaf5f47 Tree recursive folding 2022-09-21 13:28:29 +02:00
Rémi Verschelde 74765691cb Merge pull request #66191 from MewPurPur/fix-dragndrop-crash-when-scene-closed
Fix possible crash when drag and dropping nodes
2022-09-21 13:26:16 +02:00
Rémi Verschelde 7bf61e3912 Merge pull request #64359 from Mickeon/rename-camera-rotating
Reverse Camera2D.`rotating` to `ignore_rotation`
2022-09-21 11:06:41 +02:00
Rémi Verschelde aa6d2b58af Merge pull request #60478 from KoBeWi/compect_dialog
Reorganize connection dialog
2022-09-21 11:05:04 +02:00
VolTer bdff928f6d Fix crash with drag and dropping nodes 2022-09-21 03:08:54 +02:00
Micky ee16de583f Reverse Camera2D.`rotating` to `ignore_rotation`
`rotating` is misleading, as Camera2D is affected by `rotation` and `global_rotation` like any other Node2D

Updates description in the docs, as well.
2022-09-21 01:52:12 +02:00
RedMser a9b394d5bc Show method override icon in script editor gutter
Combines with the connection slot icon when both apply.
Can be clicked to jump to the method declaration (or documentation for
built-in classes).
2022-09-21 01:49:54 +02:00
Rémi Verschelde 1a0943e0f8
Merge pull request #65957 from EricEzaM/GH-65956-fix-ed-shortcut-section-order
Update Editor Shortcuts tree creation to always have sections in same order
2022-09-21 00:00:45 +02:00
Rémi Verschelde 658bfb0395 Merge pull request #66159 from MewPurPur/fix-animated-tiles-offset-unit
Remove px unit from animation_separation in TileSet atlas editor
2022-09-20 15:45:41 +02:00
VolTer 6a1d1f1f75 Remove px unit from animation_separation in TileSet atlas editor (as it's tile-based, not pixel-based) 2022-09-20 15:04:26 +02:00
RedMser 0a5cbca803 Run svgcleaner on MemberAnnotation.svg 2022-09-20 15:00:21 +02:00
Hugo Locurcio 375ea5558a
Fix error string referring to invalid metadata name in Movie Maker dialog 2022-09-20 14:53:19 +02:00
bruvzg 0ed4cc6287
[macOS] Add an option to align window buttons in "extend to title" mode. 2022-09-20 12:55:59 +03:00
Rémi Verschelde 7da532275b Merge pull request #65541 from clayjohn/renderer-setting
Split rendering driver project setting into renderer_name and rendering_driver
2022-09-20 09:43:59 +02:00
Rémi Verschelde 7a4faba136 Merge pull request #66127 from RedMser/vs-cleanup
Further cleanup of VisualScript references
2022-09-20 08:41:47 +02:00
Rémi Verschelde a293f2204c Merge pull request #65134 from Mickeon/editor-unique-name-toggle
Make "Access as Unique Name" a shortcut
2022-09-19 22:03:00 +02:00
Rémi Verschelde 82961dda3d Merge pull request #66108 from Zylann/editor_inspector_get_selected_path
Expose `EditorInspector.get_selected_path`
2022-09-19 22:01:32 +02:00
RedMser 5c5c3ab90e Further cleanup of VisualScript references 2022-09-19 21:37:26 +02:00
clayjohn 4a1c7de57c Split rendering driver project setting into renderer_name and rendering_driver. To differentiate between a driver (e.g. Vulkan or D3D12) and a renderer (e.g. clustered or mobile renderer). 2022-09-19 10:26:10 -07:00
kobewi 36fd92ff58 Reorganize connection dialog 2022-09-19 18:39:10 +02:00
Micky f7231b67e1 Make "Access as Unique Name" a shortcut
The shortcut's name is "scene_tree/toggle_unique_name", not mapped to anything by default.

It also dynamically changes the text based on whether or not the unique name is going to be enabled or disabled.

Finally, it spaces the shortcut in the menu close to "Copy Node Path" if possible.
2022-09-19 17:16:50 +02:00
Marc Gilleron cee8bd9e76 Expose `EditorInspector.get_selected_path` 2022-09-19 15:20:34 +01:00
Rémi Verschelde 6f5704d86f Merge pull request #65630 from aaronfranke/no-defer-ste-warn-ch
_warning_changed` signal connection
2022-09-19 15:43:23 +02:00
Rémi Verschelde ec60c4ee9e Merge pull request #65271 from KoBeWi/FirAccess🌲
Replace File/Directory with FileAccess/DirAccess
2022-09-19 15:33:24 +02:00
Rémi Verschelde 166ab6e80e Merge pull request #66101 from KoBeWi/help,_it_crashed
Fix possible crash in editor help
2022-09-19 15:32:34 +02:00
Rémi Verschelde d4f8418582 Merge pull request #66080 from Zylann/editor_property_set_read_only
Expose `EditorProperty._set_read_only` virtual method
2022-09-19 15:32:16 +02:00
Rémi Verschelde aa42b4f0cb Merge pull request #65995 from MinusKube/tileset-size-bug
Fix atlas view drawing roots having zoom applied twice
2022-09-19 15:32:01 +02:00
kobewi 1eda8c2432 Fix possible crash in editor help 2022-09-19 13:26:50 +02:00
Marc Gilleron 056a418862 Expose `EditorProperty._set_read_only` virtual method 2022-09-19 11:56:49 +01:00
bruvzg d104a4cdbd
Add missing initial window flags and window mode to the project settings. 2022-09-19 12:30:10 +03:00
kobewi 9f2dc68279 Replace File/Directory with FileAccess/DirAccess 2022-09-19 11:03:31 +02:00
kobewi b3997191d8 Change UndoRedo to use Callables 2022-09-18 23:52:50 +02:00
Yuri Rubinsky 908795301b
Merge pull request #66040 from jeffres/fix-closing-shader-file-with-middle-mouse-click 2022-09-18 22:26:15 +03:00
Rémi Verschelde e5594c26b1
Merge pull request #44143 from KoBeWi/callable_multiplayer 2022-09-18 13:47:04 +02:00
jeffres b9d9528c45 Close shader under cursor when middle mouse clicking in editor list
Previously middle mouse clicking resulted in the currently selected
file to be closed, which is not the behavior commonly expected.
2022-09-18 13:25:13 +02:00
Tomasz Chabora 882a4f8906 Port remaining connections to callable_mp 2022-09-18 13:08:54 +02:00
Rémi Verschelde 7a0a3fea94 Merge pull request #62417 from willnationsdev/gdres-quickopen
Enable QuickOpen to see scripted resources
2022-09-18 10:53:53 +02:00
Rémi Verschelde 469eb3dfd7 Merge pull request #62413 from willnationsdev/gdres-inspector
Script-class-aware Inspector & related controls.
2022-09-18 10:53:47 +02:00
Rémi Verschelde 58e5863f9a Merge pull request #66031 from qarmin/compile_regex_editor
Add missing constructor, to compile editor without regex module
2022-09-18 10:52:45 +02:00
Rémi Verschelde c6e5c76536 Merge pull request #65561 from ryburnj/inconsistent-cap-scene-file-name
Fix inconsistent scene file name casing
2022-09-18 10:49:00 +02:00
Rafał Mikrut 4e7cf3d919 Add missing constructor, to compile editor without regex module 2022-09-18 08:16:36 +02:00
willnationsdev cc5a736c0b Enable QuickOpen to see scripted resources. 2022-09-17 20:35:58 -05:00
ryburnj 9d6af9323a Fix inconsistent scene file name casing by moving existing Name_Casing code to separate function in editor_node, and adding a call from both editor_node and scene_tree_dock. 2022-09-18 11:17:22 +10:00
willnationsdev d32f2700ff Script-class-aware Inspector & related controls. 2022-09-17 18:34:57 -05:00
Rémi Verschelde 24115beb3c Merge pull request #66000 from KoBeWi/clear_'_clear_undo_history'
Remove unused `_clear_undo_history` method
2022-09-18 00:43:54 +02:00