Commit Graph

14165 Commits

Author SHA1 Message Date
风青山 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
Rémi Verschelde c17d73f140
i18n: Sync translations with Weblate 2023-11-29 17:21:35 +01:00
bruvzg 27ca31f359 [Editor] Save and restore previous window mode when toggling full-screen. 2023-11-27 12:44:30 +02:00
clayjohn 549a83eee2 Suppress surface upgrade warnings when showing SurfaceUpgradeTool warning
Also ensure the EditorProgress dialogue shows correct numbers
2023-11-22 15:35:50 -07:00
Rémi Verschelde fa4a65387e
Merge pull request #85227 from KoBeWi/when_two_IDs_fight_the_editor_suffers
Fix crash caused by conflicting menu option IDs
2023-11-22 21:57:14 +01:00
Yuri Sizov 10b70e2498 Rework the surface upgrade tool to inform users without blocking
This removes the immediate confirmation dialog and insteads prints the
message to the editor log (and it also appears as a toast). The immediate dialog
is a devil's plaything, and it cannot be used in this scenario (if it can be used
anywhere at all). The condition that triggers the SUT can happen during any
attempt by the rendering server to read a mesh. This means it will conflict
with a number of editor processes, like loading, importing, preview
generation, export, CLI mode, etc.

So while this is less on the nose as far as informing users goes, it's also
our best option to use the log and the toaster.
2023-11-22 19:03:14 +01:00
kobewi c6fec68a3e Fix crash caused by conflicting menu option IDs 2023-11-22 17:28:40 +01:00
Rémi Verschelde a34814b0b6
Merge pull request #85205 from jsjtxietian/grab-focus
Set some window in visual shader editor to be exclusive
2023-11-22 13:59:50 +01:00
Rémi Verschelde ca245295ae
Merge pull request #85193 from TokageItLab/fix-seek-mixer
Fix seeking bug in AnimationPlayerEditor
2023-11-22 13:59:45 +01:00
Rémi Verschelde 51bca1b586
Merge pull request #85154 from KoBeWi/yo_dawg_I_heard_you_like_saving_scen-JUST_STOP_IT
Avoid saving scene while already saving the scene
2023-11-22 13:59:37 +01:00
jsjtxietian b7ba667dcf Set some window in visual shader editor to be exclusive 2023-11-22 17:58:18 +08:00
Silc Lizard (Tokage) Renew 21833f3dfd Fix seeking bug in AnimationPlayerEditor 2023-11-22 06:43:26 +09:00
Rémi Verschelde 7022271291
i18n: Sync translations with Weblate 2023-11-21 16:08:36 +01:00
Rémi Verschelde c2f8fb3015
Merge pull request #85039 from RandomShaper/mingwthreads
Use mingw-std-threads in MinGW builds
2023-11-21 15:44:18 +01:00
Rémi Verschelde fa259a77cd
Codestyle: Fix some comment issues 2023-11-21 15:26:53 +01:00
Rémi Verschelde 9c0692f30e
Merge pull request #85169 from jsjtxietian/fix-project-name-overriden
Fix project name being overwritten everytime `show_dialog` is called
2023-11-21 15:06:55 +01:00
jsjtxietian b8d7a43f73 Fix project name being overwrite everytime `show_dialog` is called 2023-11-21 19:50:01 +08:00
kobewi d84ba48d8f Avoid saving scene while already saving the scene 2023-11-20 21:57:21 +01:00
kobewi 2c72558ad0 Add Save As... option to EditorResourcePicker 2023-11-20 21:05:17 +01:00