Commit graph

11100 commits

Author SHA1 Message Date
Rémi Verschelde
5b47bb8446 Merge pull request #66662 from akien-mga/editorspinslider-fix-grabber-action-area
EditorSpinSlider: Make sure grabber doesn't get hidden during grabbing
2022-10-03 14:50:53 +02:00
Rémi Verschelde
4e237ed9ef Merge pull request #66795 from manueldun/loadSavedMaterial
fix error dialog from appearing after loading material res
2022-10-03 09:30:11 +02:00
Rémi Verschelde
498844f687 Merge pull request #65276 from aaronfranke/shader
Separate TextShaderEditor and ShaderEditorPlugin into different files
2022-10-03 09:24:51 +02:00
Rémi Verschelde
adee79d7b5 Merge pull request #66715 from YeldhamDev/script_hide_port
Remember scripts panel's visibility state
2022-10-03 09:22:58 +02:00
Rémi Verschelde
56918f25c8 Merge pull request #66689 from MewPurPur/property-editor-renames
Rename Copy/Paste Property –> Copy/Paste Value
2022-10-03 09:22:47 +02:00
Rémi Verschelde
f3e7f275c2 Merge pull request #66668 from Anutrix/allow-open-files
Fixed shader editor not allowing open files when there is no files already open
2022-10-03 09:20:38 +02:00
Rémi Verschelde
88f70dfacd Merge pull request #66656 from magian1127/4.0DelAutotile
TileMap mouse right can delete autotile
2022-10-03 09:19:58 +02:00
Manuel Dun
e9d8847e29 fix error dialog from appearing after loading material res 2022-10-02 21:09:54 -04:00
Aaron Franke
252963166d
Separate TextShaderEditor and ShaderEditorPlugin into different files 2022-10-02 02:19:38 -05:00
Aaron Franke
38cb2f8afc
Rename ShaderEditor that edits text shaders to TextShaderEditor 2022-10-02 02:18:46 -05:00
Michael Alexsander
3f5086990a Remember scripts panel's visibility state 2022-10-01 14:23:13 -03:00
Anutrix
119e1a2937 Fixed shader editor when no files are currently in shader list 2022-10-01 00:33:13 +05:30
Rémi Verschelde
e69b7083d4 Merge pull request #65903 from groud/improve_terrain_painting
Right-click to erase TileSet terrains and bugfixes
2022-09-30 17:44:48 +02:00
Rémi Verschelde
ef8834a642 Merge pull request #64784 from yedpodtrzitko/yed/ci-add-mypy
ci: add Python static analysis check via mypy
2022-09-30 17:44:39 +02:00
VolTer
cb310a229b Rename Copy Property –> Copy Value 2022-09-30 16:44:27 +02:00
Magian
7e30343a5c TileMap mouse right can delete autotile 2022-09-30 21:15:15 +08:00
DNKpp
1dd75ef660 EditorSpinSlider: Make sure grabber doesn't get hidden during grabbing
Fixes #63544.
2022-09-30 14:34:10 +02:00
Rémi Verschelde
166df0896c Fix typos with codespell
Using codespell 2.3-dev from current git.

And fix typo in `methods.py` for `vsproj=yes` option (still won't work
though).
2022-09-30 14:23:36 +02:00
Jiri Suchan
c5bd2f9dce ci: add Python static analysis check via mypy 2022-09-30 19:03:17 +07:00
Rémi Verschelde
f47979f087
Merge pull request #66242 from akien-mga/scons-unify-tools-target 2022-09-30 12:28:50 +02:00
Rémi Verschelde
fe9f056623 Merge pull request #66640 from gotnospirit/master-project_converter-json-print
Project converter: JSON.print -> JSON.stringify
2022-09-30 09:59:04 +02:00
Rémi Verschelde
d0cc7cf192 Merge pull request #66636 from gotnospirit/master-project_converter-os-get_datetime
Project converter: OS.get_datetime -> Time.get_datetime_dict_from_system
2022-09-30 09:58:40 +02:00
Rémi Verschelde
4c73e8ba1a Merge pull request #66632 from RedMser/script-override-gutter-docs-fix
Fix wrong docs opening in script override gutter
2022-09-30 09:58:30 +02:00
Rémi Verschelde
7a0500d9a3 Merge pull request #66626 from danboo/fix-typo-run-debug-collisons
Fix typos - "collison" -> "collision"
2022-09-30 09:58:25 +02:00
James
c8132ee279 Project converter: JSON.print -> JSON.stringify 2022-09-30 10:30:42 +08:00
James
6ec19b3681 Project converter: OS.get_datetime -> Time.get_datetime_dict_from_system 2022-09-30 10:10:16 +08:00
RedMser
dc3990fea4 Fix wrong docs opening in script override gutter 2022-09-30 02:11:52 +02:00
danboo
eba8be6e45 Fix typo - "collison" -> "collision" 2022-09-29 13:56:26 -08:00
Rémi Verschelde
176da47ffd Merge pull request #66590 from akien-mga/animation-workaround-disable-onion-skinning
Animation editor: Disable onion skinning temporarily due to rendering bug
2022-09-29 15:34:02 +02:00
Rémi Verschelde
a593c45f1c Merge pull request #66575 from MewPurPur/indent-dedent-in-scriptedit
Rename Indent Left/Right options in the Script Editor to Indent/Unindent
2022-09-29 15:33:55 +02:00
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