Commit Graph

7416 Commits

Author SHA1 Message Date
d6672d8fe4 Make create folder popup support nested folders 2023-04-25 10:15:07 +08:00
e31b1a76f8 Make EditorPropertyLayersGrid responsive to touch taps 2023-04-23 07:12:39 -07:00
3943de2e6c Merge pull request #71875 from m4gr3d/editor_optimization_3x
[3.x] Add benchmark logic
2023-04-22 20:18:45 -07:00
0f24d6ecf7 Update make_rst.py to match the master version
This does not include master-specific concepts, like
constructors, operators, annotations, and bitfields.
2023-04-10 20:47:01 +02:00
f3cdff46fc Add benchmark logic
Add benchmarking measuring methods to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
2023-03-20 23:29:36 -07:00
7173565250 Backport a simpler version of the accent color for check icons 2023-03-01 20:35:59 -03:00
424bda217c TileSet: Fix resizing collision shape when vertex is outside the tilesheet
Fixes #34970.
2023-02-13 13:20:48 +01:00
0876a16bde Default update_vital_only to true for Android and Web editor
Android devices will typically be powered from battery. This PR defaults the editor on Android to use `update_vital_only` mode, using as little power as possible, in order to conserve battery.
Also shows the update spinner by default, to emphasize that vital updates only is occurring, and allow easy switching out of the mode.
2023-02-09 17:58:18 +00:00
8170b7ae1e Add a theme usability setting which updates the touch area of UI elements (e.g: scrollbar) for the editor on touchscreen devices 2023-01-22 07:09:48 -08:00
6a45e56e5c i18n: Sync editor translations with Weblate (3.5 branch)
(cherry picked from commit b06d93aec6)
2023-01-20 12:31:04 +01:00
606101cacd Merge pull request #70555 from stmSi/3.x-suggest-filename-save-branch-remote-tree
[3.x] suggest filename save branch remote tree
2023-01-20 12:12:51 +01:00
1426cd3b3a One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".

Backported from #70885.
2023-01-10 15:26:54 +01:00
bdcfb0877b Fix error when dropping script into script editor 2022-12-26 14:35:33 +08:00
18f44a4b67 Suggest Filename in Remote Tree File Dialog 2022-12-25 19:37:32 +06:30
ac589edb36 Merge pull request #69939 from timothyqiu/open-packed-scene-3.x
[3.x] Add open scene button in Inspector for PackedScene resource
2022-12-22 08:57:30 +01:00
b59b566325 Merge pull request #70262 from Maran23/3-x-editor-inspector-section-click
[3.x] EditorInspectorSection is not (un)folded when clicking under the font
2022-12-22 08:56:37 +01:00
76bcc90da8 Merge pull request #70228 from Calinou/add-transparent-viewport-project-setting-3.x
Add a project setting to make the root viewport transparent (3.x)
2022-12-22 08:55:21 +01:00
e771804e78 Fix some Clang -Wunused-but-set-variable warnings 2022-12-21 12:15:52 +01:00
51859286a6 EditorInspectorSection is not folded when clicking under the font 2022-12-18 16:22:44 +01:00
Zak
f974bcf074 Add uri property for LinkButton
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit d73a9b56b0)
2022-12-18 10:43:39 +08:00
4951f50b0f Keep property values when extending script
(cherry picked from commit 44cf3c22ac)
2022-12-18 10:32:04 +08:00
daa4be06b0 Enable material editor preview to be rotated.
(cherry picked from commit d4ee903004)
2022-12-18 10:32:04 +08:00
9056cc9c2a Fix property link not working in MultiNodeEdit
This is due to the `p_field` in the `EditorProperty::emit_changed`.
`p_field` only works for `MultiNodeEdit`, not for other objects.

(cherry picked from commit b6fdd0815c)
2022-12-18 10:32:04 +08:00
9499ebecee Add vector value linking
Co-authored-by: redlamp <244062+redlamp@users.noreply.github.com>
(cherry picked from commit 5553e27fe8)
2022-12-18 10:32:04 +08:00
65465f309c Add a project setting to make the root viewport transparent
This allows creating a project with a transparent window without having
to write any script.
2022-12-18 00:38:05 +01:00
7779164096 Add math operators to Visual Shader node names
This change makes it easy, in the "Create Shader Node" dialog, to search for VS nodes by just typing the operator. For example, instead of typing "multiply", you can just type "*" and multiply nodes will be listed.

This feature is inspired by Unreal Engine node graph editor's UX.

Backported from https://github.com/godotengine/godot/pull/67905
2022-12-15 17:21:37 +01:00
6963ba631e Fix typos with codespell 2022-12-15 12:26:59 +01:00
d79699041a Merge pull request #70038 from m4gr3d/update_navigation_controls_toggle_3x
[3.x] Update the visibility logic for the spatial editor navigation controls
2022-12-14 11:35:41 +01:00
0825859a94 Update the visibility logic for the spatial editor navigation controls 2022-12-13 16:17:22 -08:00
e25d6a0ec2 i18n: Sync editor translations with Weblate (3.5 branch)
(cherry picked from commit ee8986e146)
2022-12-13 14:37:34 +01:00
b5bf60e04f Fix crash in EditorPropertyArray
(cherry picked from commit d80a2a89f0)
2022-12-12 14:49:23 +01:00
433be4aa3e Add open scene button in Inspector for PackedScene resource 2022-12-12 16:10:00 +08:00
9983df9210 Merge pull request #69526 from m4gr3d/polish_navigation_controls_opacity_3x
[3.x] Minor tweaks/polish to the navigation controls to prevent interference
2022-12-05 11:33:43 +01:00
bf7f93d236 Merge pull request #69384 from asalazar516/3.x_delete_nodes_request_param
[3.x] Add missing argument to `AnimationNodeBlendTreeEditor::_delete_nodes_request`
2022-12-05 00:13:31 +01:00
cbc8ccbe20 Add more info to WAV import errors
Print mismatched header contents and file size, which can provide more clues to users when debugging.

(cherry picked from commit f5d256b118)
2022-12-04 20:19:50 +08:00
3f8bb6fb53 Improvements to EditorResourcePicker
(cherry picked from commit 9568789a9d)
2022-12-04 19:18:17 +08:00
f1e6ecd3b5 Minor tweaks/polish to the navigation controls to prevent interference:
- Reduce controls size
- Enable opacity on hover to increase visibility
2022-12-02 23:33:14 -08:00
fd101d9def [3.x] Add missing argument to AnimationNodeBlendTreeEditor::_delete_nodes_request 2022-12-02 11:12:38 -08:00
4d5ef72669 Merge pull request #69434 from timothyqiu/editor-title
[3.x] Update project window title when a project setting was changed
2022-12-01 18:13:58 +01:00
9ea2ef7c44 Update project window title when a project setting was changed
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-12-01 12:54:10 +08:00
fdc21747be Improve editor property capitalization
* Captialize stop words when they are the last word.
* Add stop words logic in `extract.py`.

(cherry picked from commit c0e9d928e6)
2022-12-01 12:12:25 +08:00
2363d0f9ba Improve editor property capitalization
- Don't capitalize stop words such as "at", "in" or "to".
- Add more acronyms to capitalize.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit aafa816946)
2022-12-01 12:08:40 +08:00
57c429975c Make Camera3D gizmo clickable
(cherry picked from commit ca9063fe4e)
2022-12-01 11:55:09 +08:00
22ecc0561d Create reset tracks with the right update mode
(cherry picked from commit b46a2aaa4b)
2022-12-01 10:31:28 +08:00
1b607b04b4 Advance animation after confirming
(cherry picked from commit 798f9c8632)
2022-12-01 10:12:37 +08:00
7f0b3bc2a0 Add editor setting for AcceptDialog OK/Cancel buttons positioning
The position (left/right) of the Cancel and OK buttons in AcceptDialog
are DisplayServer specific, as Windows uses OK/Cancel and macOS uses Cancel/OK.

Linux/X11 currently uses the macOS convention which is also the GTK+/GNOME one,
though it's not consistent with Qt/KDE applications which follow the Windows
convention.

Since that can't satisfy everyone, it's best if it's configurable also for the
editor (it's already configurable for the project).

Fixes #59379.

(cherry picked from commit 9bb05de89f)
2022-12-01 09:50:51 +08:00
3b35454ac3 Stopped edge stripping when using Find in Files
(cherry picked from commit 0179791e85)
2022-11-30 15:34:50 +01:00
9a340a2868 Project Manager: Fix hacky code for project rename
Instantiating a new ProjectSettings is *not* the way to go.
ConfigFile works just fine to read/change a single value.

Fixes memory leaks as the instantiated ProjectSettings was never freed.
Forbid doing this to prevent such problems.

Fixes #25661.

(cherry picked from commit f21f75eb6f)
2022-11-30 15:34:27 +01:00
d3735d8b21 Cast dragged file extension name to lowercase, closes #68104
(cherry picked from commit 07e367cb0b)
2022-11-30 15:34:27 +01:00
7f2c318e6e SpriteFramesEditor Fix calculating frame index from mouse position
(cherry picked from commit d135957987)
2022-11-30 15:34:27 +01:00