Commit Graph

13199 Commits

Author SHA1 Message Date
aXu-AP e7db7b552d 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)
2024-01-23 20:22:01 +01:00
Haoyu Qiu 32a3b2bf9c 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)
2024-01-23 20:22:00 +01:00
aXu-AP 8a395124e6 Fix UV editor not using texture transform
(cherry picked from commit d7e5c25e4a)
2024-01-23 20:22:00 +01:00
Fredia Huya-Kouadio f6a9129219 Preserve the output from the gradle build command
Updates `EditorNode#execute_and_show_output(...)` to return the output of the executed command.

(cherry picked from commit 136b7f9c52)
2024-01-23 19:15:03 +01:00
Guilherme 2762ae69d4 Fix wrong shader rename
Co-authored-by: BrunoArmondBraga <abraga3547bruno@gmail.com>
(cherry picked from commit 7a76d5e6ea)
2024-01-23 19:15:02 +01:00
Haoyu Qiu c5e94ad9de Fix texture region editor not selecting restored snap mode
(cherry picked from commit 64fb22e17b)
2024-01-23 19:15:02 +01:00
Stanislav Labzyuk 4100743a62 Fix undo methods for DELETE in EditorAutoloadSettings
(cherry picked from commit 3462ecf2fb)
2024-01-23 19:09:45 +01:00
kobewi 0a7af396c4 Fix missing arrows in integer vector properties
(cherry picked from commit aff49d3a76)
2024-01-23 19:09:45 +01:00
jsjtxietian a966068f09 Fix _get_debug_tooltip will crash if tooltip string is too large
(cherry picked from commit 155d738163)
2024-01-23 17:45:44 +01:00
kobewi 1bd63576b8 Remove margins from editor scrollbars
(cherry picked from commit a3172ae8c5)
2024-01-23 17:38:29 +01:00
Hugo Locurcio 3d4f1ce21f Improve headings for the export mode in the Export dialog
"Export as dedicated server" now uses a less confusing heading.

(cherry picked from commit 73c1b212f7)
2024-01-23 17:36:49 +01:00
Raul Santos 6d1401cb8d Enable new addon after hiding ProjectSettings
- Enabling newly created addons can show a warning dialog, doing so before hiding the `ProjectSettingsEditor` dialog causes rendering glitches.
- Remove unused `PuginConfigDialog` in `EditorNode`. The one actually being used is an instance in `EditorPluginSettings`.

(cherry picked from commit 7b34fa8dd2)
2024-01-23 17:36:31 +01:00
RealMadvicius 8ed4af259a Fix crash when clicking on "Interpolation Mode" with nonexistent node path
issue reference [https://github.com/godotengine/godot/issues/81769]

- adding a nullptr check on a Node pointer obtained from get_node(NodePath) in case it is null now we wont execute the next instruction

> ClassDB::get_property_info(nd->get_class(), prop, &prop_info);

Which then prevents the crash

(cherry picked from commit e7a35d1521)
2024-01-23 16:53:22 +01:00
Brian MacIntosh 04bd9cc06c "Whole Words" search can detect word boundaries inside the search term.
For example, searching for ".func" will now match in "a.func" even with Whole Words enabled.

(cherry picked from commit 676627e1d1)
2024-01-23 16:03:16 +01:00
Silc Lizard (Tokage) Renew 37e6267c6b Improve retarget auto-mapping algorithm
(cherry picked from commit c1c4a09527)
2024-01-23 16:03:15 +01:00
Rindbee 52d56d806d Fix rename animation in SpriteFramesEditor/AnimationNodeStateMachineEditor
When the name suffix grows, the old name is used if it is obtained first.

Fix the case where the following error message would appear when renaming
an animation.

```
ERROR: Animation '' doesn't exist.
   at: get_frame_count (scene/resources/sprite_frames.cpp:71)
```

(cherry picked from commit e9cd29cf22)
2024-01-23 15:56:09 +01:00
warriormaster12 9e315e7c79 Make SkeletonIk3D node usable
(cherry picked from commit ddf93f3f59)
2023-10-25 12:23:48 +02:00
ajreckof 5abac84a9e Fix paste value emptying an array on some right click location
(cherry picked from commit f2758d8591)
2023-10-24 20:15:34 +02:00
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