2494 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
d506718736 Fix crash when editing pinned StyleBox
(cherry picked from commit 4b013a9c96)
2022-07-07 14:07:05 +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
1a95a0e999 Fix popup dialog UI in AnimationTreePlayer editor
(cherry picked from commit 65aac2cfae)
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
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
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
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
Ricardo Buring
51911952c5 Fix "Convert to MeshLibrary" not respecting collision transforms
(cherry picked from commit 025d7b9332)
2022-01-25 18:45:58 +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
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
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
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
Zae
22d8216780 Fix ViewportPreview upside-down in 3.x.
(cherry picked from commit 1426df66a8)
2021-12-14 17:30:37 +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
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
Wilson E. Alvarez
07767fc676 Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor
(cherry picked from commit 1a2153eb0a)
2021-11-29 16:44:21 +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
kobewi
0a519fed25 Fix TileSet editor workspace breaking
(cherry picked from commit f3d5ef6f7b)
2021-11-25 21:04:14 +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
Yuri Sizov
5ff11a2c5c Add a flag to EditorResourcePicker to differentiate selection contexts 2021-11-02 14:15:14 +03: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
Haoyu Qiu
bd39b8649e Update view name after processing orbit view shortcuts
(cherry picked from commit 392d529247)
2021-10-23 11:52:20 +02:00
Ryan Roden-Corrent
76255d89af Implement camera orbiting shortcuts.
Fixes godotengine/godot-proposals#2051.
Relates to godotengine/godot-proposals#1215.

Implements shortucts for adjusting the camera rotation in 15-degree
increments, similar to Blender.

I did not add corresponding menu entries for these, as I didn't feel
like they would be too useful from a menu, and didn't want to make the
menu too long.

(cherry picked from commit cb15ec20bb)
2021-10-18 11:24:37 +02:00
Hugo Locurcio
52b16f0984 Increase object snapping distances in the 3D editor
- Increase drag-and-drop snapping to 50 units
  (from 10 units).
- Increase Snap Object to Floor maximum height to 500 units
  (from 20 units).
- Increase Snap Object to Floor negative margin to 1 unit
  (from 0.2 units).

(cherry picked from commit 7a3d0b79b4)
2021-10-15 12:51:42 +02:00
Haoyu Qiu
e7b67fe8ee Fix make sub-resource crash in AnimationTreeEditor
(cherry picked from commit 274ed82283)
2021-10-10 12:27:51 +02:00
Rémi Verschelde
d4b2db5c3a Merge pull request #51438 from timothyqiu/selection-box-sep-3x 2021-10-05 13:55:36 +02:00
Rémi Verschelde
7f58b6322e Merge pull request #53067 from Calinou/add-script-nav-extra-mouse-button-3.x 2021-10-05 11:57:51 +02:00
Yuri Sizov
8fe6fceb02 Safeguard against BitMap fonts in the CanvasItem editor
Co-authored-by: ArrowInAKnee <gatexxl@gmail.com>
2021-10-04 22:54:04 +03:00
kobewi
0fa8d3431a Fix editor stuck dimmed because of unsaved script 2021-09-29 17:06:12 +02:00
Hugo Locurcio
1ff98bfa1b Add history navigation in the script editor using extra mouse buttons
This feature is enabled by default, but it can be disabled in the editor
settings in case it interferes with other uses of the extra buttons
(such as push-to-talk in a VoIP program).
2021-09-25 20:33:57 +02:00
Stéphane Fortin
6cf54d06be add missing undo on CloseCurve 2021-09-25 13:22:10 -04:00
kleonc
4eb59e8492 TexturePreview Update text when texture is being changed 2021-09-24 18:55:58 +02:00
Yuri Roubinsky
5c06685609 [3.x] Draggin in/out from ports to create nodes in Animation Blend Tree 2021-09-23 12:09:19 +03:00
Haoyu Qiu
4b611c4518 Fix 3D view name typo 2021-09-22 10:31:48 +08:00
kobewi
168292fa00 Don't stop closing on unsaved script
(cherry picked from commit 8fe664fb4b)
2021-09-21 20:33:11 +02:00
kleonc
891681a5a3 SpriteFramesEditor Fix preview grid in "Select Frames" dialog
(cherry picked from commit ad7a6102ae)
2021-09-21 20:33:07 +02:00
Hugo Locurcio
da68feb0ca Print a warning if a 3D editor gizmo has no name defined
Unnamed gizmos should be avoided, so this should help editor plugin
authors resolve issues with gizmo naming if they forgot to override
the function.

(cherry picked from commit e5406ba952)
2021-09-21 17:15:01 +02:00