1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00
Commit Graph

6841 Commits

Author SHA1 Message Date
Rémi Verschelde
0e0ccc4adf ImageLoader: Remove references to unsupported svgz extension
I don't see any reference to gzip/svgz supported in the nanosvg library,
and the handful of test gzip compressed svgz files I tried failed loading.

Also cleaning a couple missing includes in platform export code.

(cherry picked from commit 1ee44b2366)
2022-01-25 18:41:01 +01:00
Michael Alexsander
9cd5f05a27 Fix undo/redo operations in Input Map
(cherry picked from commit d00e183512)
2022-01-25 18:38:42 +01:00
Rémi Verschelde
71066cd63b Update copyright statements to 2022
Happy new year to the wonderful Godot community!

(cherry picked from commit a627cdafc5)
2022-01-13 16:00:37 +01:00
SaracenOne
efe56e5e88 Prevent saving branches in foreign scenes
(cherry picked from commit 2056e8b028)
2022-01-12 16:09:06 +01:00
Rémi Verschelde
dd002197db i18n: Sync editor translations with Weblate (last 3.4 sync)
Next sync will be with the `3.x` branch to prepare the 3.5 translations.
2022-01-07 12:44:59 +01:00
Rémi Verschelde
2e8fdd0112 Fix typos with codespell
Using codespell 2.1.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```

(cherry picked from commit b197de6f5f)
2022-01-07 00:17:47 +01:00
bruvzg
0868f6af62 Fix decoding UTF-8 filenames on unzipping.
(cherry picked from commit d2573c1636)
2022-01-06 00:58:32 +01:00
SaracenOne
721bbfd4c8 Clean preview_node of all none VisualInstances
(cherry picked from commit 5935cee298)
2022-01-06 00:58:31 +01:00
Yuri Sizov
1908e3fe9e Make the theme editor correctly stop updating after it was hidden
(cherry picked from commit b32acc57f3)
2022-01-06 00:58:31 +01:00
kleonc
a5d7d6ff29 EditorAtlasPacker Fix incorrectly deducing zero height in some cases
(cherry picked from commit 46eebf11ca)
2022-01-06 00:58:29 +01:00
Rémi Verschelde
0fe94ee6e5 i18n: Sync editor translations with Weblate 2021-12-21 12:23:20 +01:00
Haoyu Qiu
b90bec546d Make --doctool locale aware
* Adds `indent(prefix)` to `String`
* Moves the loading of tool/doc translation into
  `editor/editor_translation.{h,cpp}`
* Makes use of doc translation when generating XML class references, and
  setup the translation locale based on `-l LOCALE` CLI parameter.

The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.

(cherry picked from commit c11b1850c4)
2021-12-16 17:06:52 +01:00
Rémi Verschelde
8a30e04fd1 i18n: Sync editor translations with Weblate 2021-12-16 15:09:10 +01:00
Zae
22d8216780 Fix ViewportPreview upside-down in 3.x.
(cherry picked from commit 1426df66a8)
2021-12-14 17:30:37 +01:00
Rémi Verschelde
6fb47a271f i18n: Remove deleted translations from PO files
Since we bundle the whole files in the editor binary, they actual impact the
binary size needlessly.

Automate it via `make merge`.
2021-12-10 11:49:04 +01:00
Rémi Verschelde
fd86272ca0 i18n: Sync editor translations with Weblate 2021-12-10 11:39:33 +01:00
Cory Petkovsek
686780e289 Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
(cherry picked from commit 3d20218dae)
2021-12-09 22:02:00 +01:00
Raul Santos
a10372fe9a Expose ScriptEditor::edit to scripting
Exposes a method in `EditorInterface` to open scripts on a specified
line and column. This method handles if the internal or the external
editor should be used.

(cherry picked from commit 9535831866)
2021-12-09 12:06:12 +01:00
Yuri Sizov
e77c6aaba7 Sort and group theme properties in docs, improve formatting for theme and enums
(cherry picked from commit ebd8101546)
2021-12-07 12:14:59 +01:00
Haoyu Qiu
8ba1b94187 Fix EditorPlugin.remove_inspector_plugin() instance cleanup
(cherry picked from commit da94b61d09)
2021-12-07 09:14:32 +01:00
Marcel Admiraal
ca3ab75697 Allow any kind of Mesh to be added to an EditorSpatialGizmo
(cherry picked from commit e0729b9c79)
2021-12-07 09:14:31 +01:00
Yuri Sizov
3d0676a588 Allow scrolling theme preview when the control picker is active
(cherry picked from commit eb98210be4)
2021-12-07 09:14:31 +01:00
Raul Santos
34bdca36de Skip script property in remote object property list
(cherry picked from commit ba3e1d6ced)
2021-12-07 09:14:30 +01:00
Yuri Sizov
2b9a1e0d2c Fix a crash in editor's script parent class check
(cherry picked from commit 62c34a6be7)
2021-12-01 14:36:24 +01:00
Wilson E. Alvarez
07767fc676 Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor
(cherry picked from commit 1a2153eb0a)
2021-11-29 16:44:21 +01:00
kobewi
4876686cf7 Improved some editor checkboxes
(cherry picked from commit 5dc7346ab4)
2021-11-25 23:13:15 +01:00
Haoyu Qiu
c6927a9790 Fix Theme Editor crash when clicking the element picker
(cherry picked from commit abd41dedb0)
2021-11-25 23:13:15 +01:00
kleonc
ac56f95685 TileSetEditor Fix selecting next/previous subtile
(cherry picked from commit 97e9165de4)
2021-11-25 23:13:14 +01:00
Giwayume
fd558de972 Fix edge case where 1px cut off from right of image
Backward loop should remain -1

(cherry picked from commit 88c1411051)
2021-11-25 23:13:12 +01:00
Giwayume
27f0a9547f Fix texture atlas generation when source sprite is larger than generated atlas
(cherry picked from commit 0093bda767)
2021-11-25 23:13:12 +01:00
kobewi
0a519fed25 Fix TileSet editor workspace breaking
(cherry picked from commit f3d5ef6f7b)
2021-11-25 21:04:14 +01:00
Rémi Verschelde
7ca1be5f37 i18n: Sync editor translations with Weblate 2021-11-19 09:48:42 +01:00
Rémi Verschelde
63b5d5de64 Modules: Make sure to include modules_enabled.gen.h where needed
Fixes #51677.

Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
(cherry picked from commit 6f4858f184)
2021-11-15 22:36:02 +01:00
Hugo Locurcio
89cefee947 Swap rest pose actions in the Skeleton2D editor
The texts were changed before, but the actions weren't swapped around.
This led to unexpected behavior.

(cherry picked from commit 4ff1431993)
2021-11-15 22:33:49 +01:00
Ryan Roden-Corrent
a9a3702d69 Clamp rotation for up/down orbiting shortcuts.
This prevents the viewport from going upside-down.

This was suggested at:
https://github.com/godotengine/godot/pull/51984#issuecomment-948614191:

> For 3.4, I think we can just clamp the angle value when using the
> camera orbiting shortcuts. We can investigate what to do with panning
> and freelook in 3.5 and 4.0.

(cherry picked from commit 3bd7c4f2a9)
2021-11-15 22:30:27 +01:00
kobewi
0f422ad35b Fix editor saving blank scenes (for real)
(cherry picked from commit 8144ac79cf)
2021-11-15 22:26:45 +01:00
Brian Semrau
1cbc17247c Prevent obj importer from printing misleading error
(cherry picked from commit bd0d15c5be)
2021-11-15 22:24:45 +01:00
Rémi Verschelde
0b694eb8e7 i18n: Sync classref translations with Weblate
German (de) is now above the threshold for inclusion.
2021-11-03 15:00:52 +01:00
Rémi Verschelde
74bcf37f90 i18n: Sync editor translations with Weblate
Latvian (lv) is now above the threshold for inclusion.
2021-11-03 14:56:44 +01:00
Yuri Sizov
5ff11a2c5c Add a flag to EditorResourcePicker to differentiate selection contexts 2021-11-02 14:15:14 +03:00
Chained Lupine
44a532e99e Fix crash in ResourceImporterTexture::_save_stex if webp disabled
Fixes #51535.

(cherry picked from commit 79d4edfca7)
2021-11-02 09:28:46 +01:00
Rémi Verschelde
e4996887ca Merge pull request #48625 from The-O-King/compression_options 2021-11-02 08:58:22 +01:00
Omar El Sheikh
203295f17d Added Mesh Compression Import Options
Fleshed out the "Optimize Mesh" options found in the mesh import UI
Gave a checkbox to every vertex attribute that can be compressed

Surfaced option to enable/disable Octahedral compression for
normal/tangent vectors

Also surfaces the vertex position compression option which previously
inaccessible because the defaults did not compress vertex positions

Supports all current importers (obj, fbx, collada, gltf)
2021-11-01 12:54:28 -04:00
Rémi Verschelde
8580cfb122 EditorSpinSlider: Add arg name for _value_input_gui_input binding 2021-11-01 15:02:44 +01:00
Rémi Verschelde
87c80f529f clang-format: Enable BreakBeforeTernaryOperators
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 14:50:33 +02:00
Rémi Verschelde
1b65550ec7 clang-format: Various fixes to comments alignment from clang-format 13
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 14:50:32 +02:00
Rémi Verschelde
42d385b312 clang-format: Disable alignment of operands, too unreliable
Sets `AlignOperands` to `DontAlign`.

`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Max Hilbrunner
e29126914d Save all 64 bits of get_ticks_msec() in more cases
(cherry picked from commit 5dc02eb8b0)
2021-10-26 18:23:31 +02:00
Yuri Sizov
7fe0dab69b Add focus font color to Button and derivatives 2021-10-26 17:40:51 +03:00
Rémi Verschelde
c3bdcb4516 Merge pull request #53706 from Calinou/action-editor-list-physical-key-first 2021-10-24 23:33:44 +02:00