Commit Graph

14183 Commits

Author SHA1 Message Date
Rémi Verschelde
474589eb83
Merge pull request #87782 from aaronfranke/4.2-fix-crash-mesh-root
[4.2] Fix crash when previewing a scene with a mesh as the root node
2024-02-07 10:08:57 +01:00
Rémi Verschelde
991454b8bd
i18n: Sync translations with Weblate
Still tracking 4.2 translations for now.
2024-02-02 10:47:57 +01:00
Aaron Franke
424a6a6bf5
[4.2] Fix crash when previewing a scene with a mesh as the root node 2024-01-31 07:43:25 -06:00
Haoyu Qiu
beadc92e4f Clear sub-resources list when no sub-resource exists
(cherry picked from commit 6e49ff91c0)
2024-01-25 18:32:37 +01:00
Yuri Sizov
eb25ef6062 Optimize scanning routines in the project manager
(cherry picked from commit 3d4b33df33)
2024-01-25 18:32:37 +01:00
jsjtxietian
bce0ada5f4 Prompt require editor restart to user when gizmo color changed
(cherry picked from commit b0ccd5c84f)
2024-01-25 18:32:37 +01:00
kobewi
06a94ecc14 Load project metadata file only when needed
(cherry picked from commit 3dc47b0b84)
2024-01-25 18:32:36 +01:00
Saracen
49031b24e5 Fix setting bezier track handle mode from inspector.
(cherry picked from commit 09a4aa3ce8)
2024-01-25 18:32:36 +01:00
kobewi
1f677eb279 Properly select the newly duplicated file
(cherry picked from commit 0ae1241304)
2024-01-25 18:32:36 +01:00
Nancy Zhang
88526a23a5 Fix unable to deselect audio effects
(cherry picked from commit cf39cc985b)
2024-01-25 18:32:36 +01:00
wilto938
6a2a048753 Reset TileMap editor drag_type by using the _stop_dragging() function when the toolbar mode is not selected
(cherry picked from commit 5a3de5bc30)
2024-01-25 18:32:36 +01:00
detomon
4bc567d27a Fix creating and updating plugin with dot in folder name
(cherry picked from commit 46253bd9e9)
2024-01-25 18:32:36 +01:00
Yuri Sizov
5dbe105f22 Fix theme access in the Groups editor
(cherry picked from commit 0244f8318f)
2024-01-25 18:32:36 +01:00
kevmorg
8633f7bcdb Hide Node dock successfully on undo/redo and deletion
Fixes #84530.

(cherry picked from commit da84489b27)
2024-01-25 18:32:35 +01:00
Yuri Sizov
dd665988d7 Correctly enforce minimum window size in editor
Also set the maximum size for the language
picked in the project manager.

(cherry picked from commit 416e594eb3)
2024-01-25 18:08:45 +01:00
jsjtxietian
5a7c19f6c4 Fix "Class name cannot be empty" error when sorting no import files by type
(cherry picked from commit 5b57db2637)
2024-01-25 18:08:45 +01:00
MewPurPur
28818d1d6c Add Texture2D and Texture3D icons
(cherry picked from commit 6cdd406c3d)
2024-01-25 18:08:45 +01:00
clayjohn
771db18a5d Uses screen-aligned quads for origin lines to avoid issues on NVidia
While we are add it, use alpha-antialised lines to make them look nice

(cherry picked from commit 5591f289d7)
2024-01-25 18:08:44 +01:00
风青山
f5ecaec1a4 Set an appropriate minimum size for labels in windows that display incorrectly
When the label's `autowrap_mode` is `AUTOWRAP_WORD_SMART` and the initial `text`
is set at the same time, it may have a higher height.

Set an appropriate minimum size for labels in windows that display incorrectly
so that these controls display properly.

(cherry picked from commit f932c6548e)
2024-01-25 17:19:42 +01:00
A Thousand Ships
79179351a3 [Editor] Fix threading problems with TileMap preview
(cherry picked from commit dbcd82ba67)
2024-01-25 17:03:57 +01:00
jsjtxietian
d41639a4cb Use render method from OS in compositor RD; Update related UI
(cherry picked from commit 453c2246b6)
2024-01-25 17:03:57 +01:00
Raul Santos
e6ea82344a Ignore directory entries in TPZ
Zip files may contain directory entries, they always end with a path
separator and zip entries always use forward slashes for path separators.

There's no need to create the directories included in the zip file,
since they'll already be created when creating the individual files.

(cherry picked from commit 59a5a1eb70)
2024-01-24 16:38:28 +01:00
Lyuma
80bf0cff65 gltf: fix three bugs which prevented extracted textures from being refreshed.
1. Extracted texture paths in `GLTFDocument::_parse_image_save_image` at the project root started with res:/// which broke cache invalidation
2. md5 hashes were not being written to generator_parameters for new imports, which led Godot to think the file was manually created.
3. `EditorFileSystem::reimport_append` must emit the `resources_reimported` signal in order for the resource cache to be updated.

(cherry picked from commit fea4165ca8)
2024-01-24 16:38:28 +01:00
Bartłomiej T. Listwon
c8bb637c57 Prevent overriding file info of another file when reimport creates files
(cherry picked from commit aae48ac2b6)
2024-01-24 16:38:28 +01:00
A Thousand Ships
b7c01ed6e9 Fix invalid 3-to-4 renames of add_animation to add_animation_library
This rename breaks `SpriteFrames` and also isn't valid as the new method
takes an `AnimationLibrary`, not an `Animation`

(cherry picked from commit 4b7ea9fe47)
2024-01-24 16:38:09 +01:00
Hugo Locurcio
16b6190408 Make the rendering method dropdown also affect mobile if compatible
This prevents visual discrepancies between desktop and mobile platforms
after switching rendering methods using this dropdown.

The restart dialog now displays which rendering methods will be used,
and the dropdown tooltip also lists caveats related to specific platforms.

(cherry picked from commit 57f3bdb1e5)
2024-01-24 16:01:58 +01:00
Rémi Verschelde
ed06389a34 Style: Mark clang-format 16 as supported for pre-commit hook
It only introduced a difference in a .glsl file, which I've worked
around by removing an empty line. This keeps formatting consistent
between clang-format 15 and 16.

Also added a change in the 3-to-4 project converter to fix bogus
formatting in clang-format < 17.

(cherry picked from commit 49f4860ce3)
2024-01-24 15:57:59 +01:00
Ricardo Subtil
74374b02a7 Fix DAP breakpoints being cleared on closed scripts
(cherry picked from commit 760ff2e933)
2024-01-24 15:56:51 +01:00
kit
c4383c0d47 fix dock visibility issues
(cherry picked from commit a2674463fa)
2024-01-24 15:56:50 +01:00
Rémi Verschelde
1dee633c91
i18n: Sync translations with Weblate 2023-12-11 22:08:59 +01:00
Rémi Verschelde
daeb1c7292
i18n: Sync translations with Weblate 2023-12-07 11:13:02 +01:00
Yuri Sizov
7931c04544
Fix size and visuals of the InputEventConfigurationDialog
(cherry picked from commit 44ec0d19d8)
2023-12-07 10:27:09 +01:00
aXu-AP
351bede5ae
Fix UV editor not showing polygon correctly
Fix polygon not showing correctly if UVs have been moved around. Show the actual contents of the polygon instead.

(cherry picked from commit a45db4d616)
2023-12-07 10:27:09 +01:00
jsjtxietian
2167526f2f
Fix SnapGrid is almost invisble in light theme
(cherry picked from commit 926e22d2ab)
2023-12-07 10:27:09 +01:00
Yuri Sizov
511b4f822a
Make sure Window's title is respected before we compute the size
Also removes some suspicious and outdated code that forced this particular
dialog to change size when the warning message changed.

(cherry picked from commit d9677be0ca)
2023-12-07 10:27:08 +01:00
Danil Alexeev
d25e28d9ae
Inspector: Fix clearing array/dictionary element with <Object#null>
(cherry picked from commit ed86c33002)
2023-12-07 10:27:08 +01:00
Haoyu Qiu
5db5f0b52b
Set language encoding flag when using ZIPPacker
When non-ASCII filenames are used, this indicates that the encoding is
UTF-8. Programs like ZIPReader can then parse the filename correctly.

(cherry picked from commit 08b1354b36)
2023-12-07 10:27:08 +01:00
Haoyu Qiu
476bc362e5
Allow dragging editable children
But not allow dropping inside the scene tree editor.

(cherry picked from commit 3f00d713b8)
2023-12-07 10:27:07 +01:00
Jordyfel
bd7d37b5ee
Fix errors on file rename or move in the Filesystem Dock
(cherry picked from commit 76c7190d21)
2023-12-07 10:27:07 +01:00
Yuri Sizov
d93fcf824f
Fix theme application in various editor dialogs
99% of the time we shouldn't rely on the signal, we
should use the notification instead. I left some comments
in places where I couldn't quickly improve the code.

(cherry picked from commit 01888ae7ab)
2023-12-07 10:27:06 +01:00
Yuri Sizov
4564a8513a
Correctly check scripts that must inherit EditorPlugin
Also updates some error messages related to this kind of check
across the codebase.

(cherry picked from commit bc1949d797)
2023-12-07 10:27:06 +01:00
Sofox
21a510b5ea
Restored Control layout properties you undo a parenting of a Control to a Container
(cherry picked from commit 5614e6d61c)
2023-12-07 10:27:06 +01:00
Michael Wörner
b642489dc4
Fixed reading WAV files with odd chunk sizes.
These require a padding byte not included in the chunk size.

(cherry picked from commit 29810376b8)
2023-12-07 10:27:04 +01:00
oeelis
4ddcfb5fb3
Fix issue with 3D scene drag and drop preview node
(cherry picked from commit 834ccb9698)
2023-12-07 10:27:04 +01:00
Hugo Locurcio
7fb0ec04c2
Only allow MeshInstance3D-inherited nodes in MultiMesh Populate Surface dialog
(cherry picked from commit dc3194f668)
2023-12-07 10:27:04 +01:00
Hugo Locurcio
f84ee53a9a
Only allow MeshInstance3D-based nodes in particles emission shape node selector
This applies to both GPUParticles3D and CPUParticles3D, as
CPUParticles3DEditor inherits from GPUParticles3DEditorBase.

(cherry picked from commit c6a16b176e)
2023-12-07 10:27:04 +01:00
Saracen
7b9bf3df64
Fix imported track flag on sliced animations.
(cherry picked from commit 57f1e5dcdc)
2023-12-07 10:27:03 +01:00
Juan Linietsky
bd2cad52ed
Comment the shader template light function by default
This is a minor usability tweak.

The light functions replace the default ones, so even if empty
they will avoid the current shader to have proper lighting and
users will have no idea why.

Code was changed to have the shader function commented by default,
indicating that uncommenting replaces the default function.

(cherry picked from commit c430ff2396)
2023-12-07 10:27:03 +01:00
aXu-AP
ffe935815e
Fix UV editor not using texture transform
(cherry picked from commit d7e5c25e4a)
2023-12-07 10:27:02 +01:00
Yuri Sizov
3a67eb2675 Disable a prohibitively slow code branch when reparenting nodes 2023-11-29 17:39:39 +01:00