Commit Graph

6875 Commits

Author SHA1 Message Date
Danny Chung
fd799e459f Increase AnimationPlayer position SpinBox to fit more decimals
Fixed UI bug where it appeared that pushing the up or down incrementing
arrows did not increment the SpinBox value appropriately. Just needed
to increase the size of the box horizontally, to display four decimal
points consistently.

(cherry picked from commit 09658f7e3b)
2022-07-07 14:10:46 +02:00
Haoyu Qiu
81fa4a4268 Fix scene tree dock focus after using "Add Child Node" button
(cherry picked from commit 512b70858c)
2022-07-07 14:10:21 +02:00
kleonc
5fa879bd62 EditorPropertyArray Fix crash when drag-reordering elements in the inspector
(cherry picked from commit 33b2970492)
2022-07-07 14:08:34 +02:00
bruvzg
d23e6b8f00 Fix incorrect encoding used in _error_handler functions
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
(cherry picked from commit b5d5515a2b)
2022-07-07 14:07:31 +02:00
Haoyu Qiu
d506718736 Fix crash when editing pinned StyleBox
(cherry picked from commit 4b013a9c96)
2022-07-07 14:07:05 +02:00
kleonc
d700434b7d AnimationTrackEditor Fix signal connection on root exiting the tree
(cherry picked from commit 2ede2bac0b)
2022-07-07 14:07:05 +02:00
Rémi Verschelde
59ae873e50
Merge pull request #62609 from akien-mga/3.4-android-preset-target-sdk-warning 2022-07-03 18:47:54 +02:00
Yuri Sizov
7a87fd232b Fix return type for the exposed EditorResourcePicker method
(cherry picked from commit d9bf3e5e35)
2022-07-03 18:30:41 +02:00
Rémi Verschelde
431558d419 Android: Only warn when Target SDK is non default
The validation logic for Min Sdk and Target Sdk was flawed as it triggers
errors for users not using Custom Build even if they never modified the
values themselves.

The default values for those settings get saved in `export_presets.cfg` and
thus the error gets triggered when moving from 3.4.4 or earlier to 3.4.5, as
the target SDK changed from 30 to 31.

So instead we just show a warning to make users aware of this non-default
Min Sdk or mostly Target Sdk that might be in their preset.

We also warn when they do use Custom Build as the target SDK 30 would likely
still be an upgrade issue and not an intentional choice, especially given
that Google Play will now require SDK 31.

The export info dialog is now exclusive so that when it doesn't auto-close,
i.e. when it errors, you don't close it by mistake by clicking outside.

The valid range for both options is no longer limited to Godot's own default
target SDK, but can accept higher values (they are not guaranteed to work,
but they might).

To be able to display warning, the relevant code is backported from 30ee208bd.

Fixes #62465 without breaking compatibility for 3.4.5.
2022-07-03 17:44:34 +02:00
Rémi Verschelde
afe8492241 Fix typos with codespell
Using codespell 2.2-dev from current git.

Fix a couple incorrect uses of gendered pronouns.
2022-06-19 14:06:55 +02:00
kobewi
01ba2e5e81 Expose tile_texture property
(cherry picked from commit 0b5289cadf)
2022-05-05 15:47:01 +02:00
FireForge
a3d032eea3 Fix UndoRedo in Gradient editor
(cherry picked from commit a384031326)
2022-05-05 15:15:36 +02:00
Haoyu Qiu
5ca5e7d0c0 Fix custom class icon when it inherits from a script
(cherry picked from commit 42448d7587)
2022-05-05 15:14:42 +02:00
FireForge
d9ad611639 Fix EditorProperty text and icon overlap bugs
(cherry picked from commit dbc380af59)
2022-05-05 15:12:24 +02:00
Haoyu Qiu
1a95a0e999 Fix popup dialog UI in AnimationTreePlayer editor
(cherry picked from commit 65aac2cfae)
2022-04-13 12:18:45 +02:00
Haoyu Qiu
4640071104 Clip animation track keyframe rects
(cherry picked from commit c7e06e2202)
2022-04-13 12:18:45 +02:00
Haoyu Qiu
496d2843c4 Hide smart snapping line when guideline dragging ends
(cherry picked from commit b255efba7c)
2022-03-13 15:35:46 +01:00
Haoyu Qiu
ecac71ff5e Fix text color of TileMap editor info overlay
(cherry picked from commit 86bcac5a5e)
2022-03-10 15:59:08 +01:00
Igor Kordiukiewicz
2c88a947c1 Fixed issue where Extend Script option would show up even without script attached to the node
(cherry picked from commit dc361d3201)
2022-03-07 08:33:41 +01:00
lawnjelly
e03a2cec58 Fix GIProbe gizmo out of bounds crash
The GIProbe gizmo was writing values in 3 dimensions to Vector2s. This error was previously being masked by the Vector2 accessor, but now results in a crash or ERR_FAIL message.

This PR removes the Vector2s as they were unused.

(cherry picked from commit e3f84916de)
2022-02-24 10:18:48 +01:00
Ricardo Subtil
df24144a4c Fix decompression functions not returning errcodes
(cherry picked from commit 61790a03f5)
2022-02-19 16:00:17 +01:00
Hugo Locurcio
30a36f0d20 Only store _edit_use_anchors_ metadata if value is not the default
The default value is assumed to be `false`, so this metadata
only needs to be stored if the value is `true`.

(cherry picked from commit 3b25190494)
2022-02-19 15:59:32 +01:00
Jean-Michel Bernard
285c2d3a84
Hide Polygon2D lines and handles when node is not visible in tree.
(cherry picked from commit b0ebbd8ece)
2022-02-17 10:38:49 +01:00
Jean-Michel Bernard
c761613826
Hide CollisionShape2D handles when node is not visible in tree.
(cherry picked from commit ef995b222e)
2022-02-17 10:38:24 +01:00
Jason Knight
07cc27692d
Use ScriptServer::get_global_class_base instead of script_class_get_base in script_class_is_parent.
(cherry picked from commit 6f7cef601a)
2022-02-17 10:23:59 +01:00
kleonc
a5b85c331e
SpriteFramesEditor Fix crash when selecting non-Texture file for splitting
(cherry picked from commit 87b4db9e63)
2022-02-17 10:23:29 +01:00
Haoyu Qiu
eb9a847566
Revert "Fix ViewportPreview upside-down in 3.x."
This reverts commit 1426df66a8.

(cherry picked from commit aeb9925615)
2022-02-17 10:22:21 +01:00
Rémi Verschelde
e33a73d66e
EditorProperty: Fix range hint parsing with optional step
This could lead to have a step of 0 when parsing e.g. "1,10,is_greater".

(cherry picked from commit 80306cc88a)
2022-02-17 10:21:54 +01:00
Ryan Roden-Corrent
7dc7f31825
Merge create_physical_skeleton undo entries.
Pressing `ctrl+z` after clicking "Create Physical Skeleton" will now
undo the creation of all physical bones by that operation.

Previously undo would remove one bone at a time.

Fixes https://github.com/godotengine/godot/issues/55351.

(cherry picked from commit c9cce53983)
2022-01-31 21:32:28 +01:00
Haoyu Qiu
c9f3719417
Fix crash after renaming an animation node
(cherry picked from commit 5ea4a8b421)
2022-01-25 18:56:36 +01:00
Navdeep Singh Rathore
a182b65455
Added the smart word wrap property to preview label
(cherry picked from commit 0b55eedc52)
2022-01-25 18:51:58 +01:00
Ricardo Buring
51911952c5
Fix "Convert to MeshLibrary" not respecting collision transforms
(cherry picked from commit 025d7b9332)
2022-01-25 18:45:58 +01:00
jmb462
e8f3dad898
Prevent renaming to an unkown extension from FileSystem dock.
(cherry picked from commit c24433f500)
2022-01-25 18:45:17 +01:00
Haoyu Qiu
987c43f060
Fix crash when undoing node creation of BlendTree editor
(cherry picked from commit 19634bd1a1)
2022-01-25 18:43:26 +01:00
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