Commit Graph

13181 Commits

Author SHA1 Message Date
Haoyu Qiu ac57043a34 Don't auto translate theme type list
(cherry picked from commit 26b21f110a)
2023-10-24 19:50:22 +02:00
Haoyu Qiu 1ebfd2f510 Fix garbled text in editor toasters
(cherry picked from commit 3006394a69)
2023-10-24 19:00:16 +02:00
GrammAcc 3c3fad858c AssetLib: Fix long plugin names breaking the UI
The UI was extending past the screen width when loading a page diplaying
a plugin with an especially long title in the asset store plugin.

I implemented a new `EditorAssetLibraryItem::clamp_width` method that
checks that the title text is not longer than the column width minus
some padding and truncates it if it is.

I also noticed that the nav buttons for paginated results were causing the UI to extend past
the screen width on higher editor scales since they were hardcoded to
show ten page buttons if there were enough results. I modified the
pagination slightly to display a dynamic number of nav buttons based on
the editor scale in order to fix this other cause of the same problem.

I had to use the font of the `title`, which is a `LinkButton` in order
to determine the text width, so I added a public getter `get_button_font` to the `LinkButton` class.

(cherry picked from commit d63a88bef1)
2023-10-24 18:17:02 +02:00
Eric Liu 3bc614bb1c Fix conversion of hex color strings in project converter
(cherry picked from commit d94ad09903)
2023-10-24 18:17:01 +02:00
Saracen 314dac441b Fix dependency menu not showing up if scene failed to load.
(cherry picked from commit c0e872c05b)
2023-10-24 17:23:21 +02:00
Gilles Roudière 89325e8f13 Fix TileMap editor so that pressing control deselects cells correctly
(cherry picked from commit 83f1e31483)
2023-10-24 16:52:59 +02:00
Alexander Hartmann e19f868e09 Fix go to parent folder in EditorFileDialog
(cherry picked from commit 40046bcf60)
2023-10-24 16:33:53 +02:00
David Nikdel 4d498e18ec Remove nondeterminism in pck_packer
PCK files (like other build products) should be deterministic based on their inputs. Removed calls to Math::rand() that are being used to generate padding.

Looks like these were introduced as part of adding encryption support, but the padding being random does not have any cryptographic significance. This can be trivially inferred since file blocks that happen to be aligned don't get padding anyway.

If there's a desire to indroduce something that functions as a nonce it should probably be added explicitly and only if encryption is enabled.
remove Math::rand() calls in editor_export_platform.cpp

follow up to make consistent with pck_packer

(cherry picked from commit 067807c1cb)
2023-10-24 16:33:53 +02:00
Hugo Locurcio 8d6493fae4 Initialize View Frame Time estimates to match 120 FPS
This prevents the estimation from being extremely high (close to 100,000 FPS)
until enough time has passed to display an accurate estimation.

(cherry picked from commit 15b31f0891)
2023-10-24 16:06:29 +02:00
Rakka Rage 22560c5bf0 Convert TileSet Atlas Merge input images to RGBA8 to match output, if needed
(cherry picked from commit dc2aa69c46)
2023-10-24 16:05:00 +02:00
Kirill Diduk eaa2485a5d [bugfix] Fix reimporting scene withh default values selected
This commit fixes #78140

When the scene was re-imported with non-default values of some settings, re-importing it again using default values for those settings didn't have the effect.

The problem was that when handling the reimport, a wrong dictionary of the settings was used.

(cherry picked from commit 8b729e5b7e)
2023-10-24 16:04:59 +02:00
jsjtxietian efa82d5025 fix CollisionShape3D Shape Size handle will missing
when Script editor floating

(cherry picked from commit fec0396cac)
2023-10-19 21:49:00 +02:00
Raul Santos 85ab269796 C#: Fix line in OpenInExternalEditor
(cherry picked from commit 132a1daf1a)
2023-10-19 21:21:02 +02:00
Ninni Pipping 5cc85fb119 Fix indentation in script templates
(cherry picked from commit 39353462ac)
2023-10-19 21:21:02 +02:00
Haoyu Qiu 2192c717a4 Make indentation indicators translatable
(cherry picked from commit a552103531)
2023-10-19 21:17:46 +02:00
Haoyu Qiu 188d9040d3 Fix typo in ResourceImporterImageFont
(cherry picked from commit 80728bdf1e)
2023-10-19 21:06:12 +02:00
Hugo Locurcio c8bd1259af Allow using floating-point bone sizes and outline widths in the 2D editor
This is useful when animating pixel art sprites in the 2D editor,
as a value of `1` is often too large when zoomed in.

(cherry picked from commit a39190a18f)
2023-10-19 21:06:11 +02:00
Rémi Verschelde aae20e5b10
Fix various typos with codespell
Also includes typo fixes from #79993, #80068, #80276, and #80303.

Co-authored-by: betalars <contact@betalars.de>
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com>
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>

(cherry picked from commit faaf27f284)
2023-10-03 20:45:35 +02:00
Rémi Verschelde c966bdf358
i18n: Sync translations with Weblate (last 4.1 sync) 2023-10-02 17:01:20 +02:00
Yuri Sizov d5fab0ec4c Fix leak when closing theme editor preview tabs
(cherry picked from commit 5e3229b7ed)
2023-09-27 21:03:23 +02:00
A Thousand Ships c941715850 Remove leftover debug print in `FileSystemDock`
(cherry picked from commit 1589efb350)
2023-09-21 15:48:10 +02:00
Chia-Hsiang Cheng e65172237c Avoid duplicating the 'Filters' section
(cherry picked from commit e0cbbe4bbd)
2023-09-21 15:28:24 +02:00
Chia-Hsiang Cheng bad5e93945 Remove animation tracks with correct indices
(cherry picked from commit 3d7facd21c)
2023-09-21 15:28:24 +02:00
trollodel 5e8654decb Make the single window mode check more strict
Check the "interface/editor/single_window_mode" editor settings.

(cherry picked from commit 0f6327b59b)
2023-09-21 15:28:23 +02:00
Spencer Chang c339abe1aa Added path to output of missing import texture metadata
(cherry picked from commit 57d9e3bb0e)
2023-09-21 15:14:04 +02:00
jsjtxietian 1238554f05 Use ui_text_submit to confirm and close text prompts
Fix press space when enter editor layout name will
confirm and save layout, same in theme editor

(cherry picked from commit ba41910967)
2023-09-21 15:14:04 +02:00
David Snopek 113cfdfc69 Fix overriding _export_begin, _export_file and _export_end from GDExtension
(cherry picked from commit d09843c5ae)
2023-09-21 15:14:04 +02:00
Hugo Locurcio 2d480eb632 Uncollapse favorites by default in the editor FileSystem dock
(cherry picked from commit 075bd4b281)
2023-09-21 14:57:13 +02:00
A Thousand Ships c4be3487ca Make editor camera speed indicator use `m/s` and `m`
(cherry picked from commit 8d7a2c615c)
2023-09-21 14:09:19 +02:00
Yuri Sizov 08bd6ba734 Check the native base of scripts when resolving icons
(cherry picked from commit 21c5f86d5d)
2023-09-21 13:35:31 +02:00
kobewi a5b59b596f Don't grab theme icons for scripts
(cherry picked from commit 51f92d1100)
2023-09-21 13:34:46 +02:00
kobewi ef1d0cda30 Automatically add path to built-in scripts
(cherry picked from commit ed6ad376c6)
2023-09-20 22:44:04 +02:00
Dario f6f2b0897a Propagate error correctly when max texture size for lightmaps is too small.
Add error handling for BAKE_ERROR_LIGHTMAP_TOO_SMALL, which was previously ignored. Fixes #81453.

(cherry picked from commit 7dfb854556)
2023-09-20 22:44:04 +02:00
jsjtxietian f2b6eda210 Fix a crash when enable a plugin uses `make_mesh_previews`
The bug happens when plugin tree is propagating mouse events
(so it is blocked), but EditorProgress's dtor will make main editor
focused and call update_plugins immediately
 which will update the blocked tree.

(cherry picked from commit 7e3a762369)
2023-09-20 22:44:04 +02:00
Hrvoje Varga 8f32e968b8 Fix scene tab close
(cherry picked from commit 51923fc528)
2023-09-20 22:44:03 +02:00
Rindbee 5f46bca824 Fix history mismatch
Set the properties of the resource's proxy instead of setting the resource's
properties directly. (For action "Set ...")

Update the path of the edited scene when saving the scene. (For action "Add
atlas source")

(cherry picked from commit 28db5e7649)
2023-09-20 22:44:03 +02:00
Rémi Verschelde f2c8eea60e
i18n: Sync translations with Weblate 2023-09-08 12:10:22 +02:00
Markus Sauermann 2d607d7c5c Include Display Server Type in Copy System Info
Add info about X11 or Wayland to System Information on LinuxBSD.

(cherry picked from commit 1712b78e18)
2023-08-31 20:19:31 +02:00
MewPurPur 2c154348fc Make Help.svg not look disabled
(cherry picked from commit 963a63708e)
2023-08-31 20:19:31 +02:00
Haoyu Qiu b0ceeb2341 Hide explicitly specified flag value in Inspector
(cherry picked from commit de83b7166c)
2023-08-31 19:48:16 +02:00
MineBill 4ec566fae2 Set the VoxelGIData path before saving, otherwise the ResourceSave will revert it to an empty String
(cherry picked from commit c34d5627fb)
2023-08-31 19:48:16 +02:00
Rémi Verschelde 7a86ffc034
i18n: Sync translations with Weblate 2023-08-17 13:23:50 +02:00
kobewi b45e7f0f63 Emit history_changed on merged UndoRedo actions
(cherry picked from commit b6bb0d505d)
2023-07-17 12:05:43 +02:00
WiseNoodle 085b16b1bb Add missing word to text of the alert dialog
(cherry picked from commit d1c70cf7d4)
2023-07-17 12:05:42 +02:00
stmSi 74efa063cc Fix: ESC (ui_cancel) not closing FindReplaceBar
(cherry picked from commit 7eb517c27f)
2023-07-17 12:05:42 +02:00
Septian c1ddd0485b Fix dragged nodes have icon size
(cherry picked from commit 837df886f3)
2023-07-17 12:05:42 +02:00
Aaron Franke e3cfc023b4 Improve text in popup warning, remove "upgrade or downgrade" text
(cherry picked from commit 95ccbdea4b)
2023-07-11 12:21:28 +02:00
Aaron Franke 5729e40035 Improve user-friendliness of project version mismatch message
(cherry picked from commit 3b8a81d361)
2023-07-10 18:09:58 +02:00
Aaron Franke ec6d258db0 Fix property hint class name type string restriction and replace mode
(cherry picked from commit 58a65591f5)
2023-07-10 18:09:58 +02:00
kobewi a79160ebd2 Collapse bottom panel if there is no active tab
(cherry picked from commit 59ae7e2445)
2023-07-10 18:09:58 +02:00