Commit Graph

7301 Commits

Author SHA1 Message Date
alex-pahdo 29c309c2da Add more info to WAV import errors
Print mismatched header contents and file size, which can provide more clues to users when debugging.

(cherry picked from commit f5d256b118)
2022-12-12 13:23:37 +08:00
Windy Darian c49ee15487 Don't try to import unknown dependency from scan
Only import dependency we know how to import, since custom resource may have .gd in dependency list which doesn't have an importer

(cherry picked from commit 0463a445c4)
2022-12-05 10:11:55 +08:00
Rémi Verschelde 4ee12fa80b Project Manager: Fix hacky code for project rename
Instantiating a new ProjectSettings is *not* the way to go.
ConfigFile works just fine to read/change a single value.

Fixes memory leaks as the instantiated ProjectSettings was never freed.
Forbid doing this to prevent such problems.

Fixes #25661.

(cherry picked from commit f21f75eb6f)
2022-12-05 10:10:15 +08:00
kleonc f0668f5a3f Fix checking if script is attached to any node belonging to scene
(cherry picked from commit 7f7966e10a)
2022-12-05 10:08:34 +08:00
Rémi Verschelde 76f219adb6 Debugger: Fix fetching source to link C++ error on GitHub
Fixes #66974.

(cherry picked from commit 4d29346a74)
2022-12-05 10:08:05 +08:00
Mark Riedesel 394bfa0e02 Handle closed splines in Collada importer
(cherry picked from commit 8f7ab02bc6)
2022-12-05 10:04:58 +08:00
kleonc 8065ac29c5 `SpriteFramesEditor` Fix calculating frame index from mouse position
(cherry picked from commit d135957987)
2022-12-05 10:04:38 +08:00
Alfred Reinold Baudisch 50dfb52514 Cast dragged file extension name to lowercase, closes #68104
(cherry picked from commit 07e367cb0b)
2022-12-05 10:02:49 +08:00
asalazar516 b07bcf5592 [3.x] Add missing argument to AnimationNodeBlendTreeEditor::_delete_nodes_request
(cherry picked from commit fd101d9def)
2022-12-05 09:45:23 +08:00
Marius Hanl 3f3597ac0d Update project window title when a project setting was changed
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
(cherry picked from commit 9ea2ef7c44)
2022-12-05 09:39:22 +08:00
Haoyu Qiu 3898521246 Improve dragging scene into 3D viewport
(cherry picked from commit f32f4ec051)
2022-12-05 09:33:52 +08:00
Haoyu Qiu 568401878f Fix spatial gizmo still active when node is deselected
(cherry picked from commit 0025ab89c7)
2022-12-05 09:31:52 +08:00
Haoyu Qiu 15681a6761 Fix wrong owner for editor plugin created nodes in instanced scene
(cherry picked from commit d50cfd9f18)
2022-12-05 09:30:25 +08:00
Rémi Verschelde 7ee90a080f i18n: Sync editor translations with Weblate (3.5 branch) 2022-09-27 23:50:14 +02:00
Michael Alexsander 6cc1dc309f Shrink shader editor's oversized borders
(cherry picked from commit c2553f530b)
2022-09-20 10:27:52 +02:00
dzil123 26f7c0f1df Ignore node rename if already exited blend tree
(cherry picked from commit f9bee90994)
2022-09-20 10:27:08 +02:00
Rémi Verschelde eae3689153 VCS plugin: SSH key dialog defaults to HOME
Fixes #65691.

(cherry picked from commit fc227ea919)
2022-09-20 10:27:02 +02:00
kleonc 0dad6d30ea `SpriteFramesEditor` Reallow deselecting frame with LMB press in select frames dialog
(cherry picked from commit e1fb4b4f21)
2022-09-20 10:24:09 +02:00
Rémi Verschelde 367ffd10c8 i18n: Sync editor translations with Weblate (3.5 branch) 2022-09-09 14:41:34 +02:00
lawnjelly be2739b1c7 Fix RayCast2DEditor uninitialized value
node was previously read before being set. Found by Valgrind.

(cherry picked from commit c8a39f6fb3)
2022-09-09 14:30:08 +02:00
lawnjelly 28800cfb23 FindBar fix uninitialized results_count
Found by Valgrind.

(cherry picked from commit c254e97c6b)
2022-09-09 14:29:26 +02:00
Atlinx d3a86d6829 Add missing parameters for signal in docs
(cherry picked from commit 0e3097c023)
(cherry picked from commit f624acef42)
2022-08-30 11:14:50 +02:00
kleonc 480e7ffd4a `SceneTreeDock` Toggling unique name in owner for all selected nodes
(cherry picked from commit 6417b999ee)
2022-08-30 11:14:21 +02:00
kobewi 7c349574d7 Optimize theme usage in editor log
(cherry picked from commit c65360eed1)
2022-08-29 17:07:11 +02:00
Ryan Roden-Corrent f0d7931de6 Don't process input in hidden EditorProperty.
This causes EditorProperty nodes to intercept input events even when the
Editor Properties dialog is not visible. This means that after closing
the dialog, ctrl+shift+c will still copy the last selected property
path.

Fixes #62866.

(cherry picked from commit 26223fe855)
2022-08-29 17:05:47 +02:00
Yuri Sizov b779a2332b Use FlowContainer to handle toolbar overflow more gracefully
(cherry picked from commit 842c3a644f)
2022-08-08 13:35:36 +02:00
kleonc 2f0577fb0f AnimatedSprite Fix updating inspector when SpriteFrames is modified
(cherry picked from commit 8ae246f15e)
2022-08-08 13:34:05 +02:00
Hugo Locurcio 77d596088e Remove FOV adjustment with Alt + mouse wheel in the 3D editor
This shortcut got in the way when using the Maya navigation scheme,
and also when using the slow freelook modifier (regardless of
navigation scheme).

(cherry picked from commit 53f4ff243d)
2022-08-08 13:20:42 +02:00
Chia-Hsiang Cheng 396955b4f2 Disable the OK button when no node is selected.
(cherry picked from commit 83d478ffcd)
2022-08-08 13:20:08 +02:00
Grzegorz Puławski 1f1bed15ba Fix axis snapping of CollisionPolygon2d's newly created vertex
(cherry picked from commit ba58491ca7)
2022-08-08 13:19:17 +02:00
kleonc 1a023e6b1b `FileSystemDock` Fix crash when renaming a file in split mode
(cherry picked from commit 25ce459fc5)
2022-08-08 13:17:34 +02:00
Rémi Verschelde 4e64c1f1b6 i18n: Sync editor translations with Weblate 2022-08-05 03:09:55 +02:00
Alfred R. Baudisch c574f718b1 Display sub-plugins when Stay in Script Editor is On
Currently, with stay_in_script_editor_on_node_selected as On, inspector_only is forcibly set, and no editors from the node selected are displayed.

With this change, if the selected Node has a Main Editor, it's still not shown (the intended behaviour of the feature), but the sub-editors are shown, this correctly opens the AnimationPlayerEditor plugin and other sub-plugins.

Fixes and closes #63621.

(cherry picked from commit eaaedb24a3)
2022-08-03 15:02:57 +02:00
bruvzg e0101e511c Improve some export error messages.
(cherry picked from commit ea00cf7270)
2022-08-01 10:37:04 +02:00
Rémi Verschelde 5e66d2e2c4 i18n: Sync editor translations with Weblate 2022-07-27 15:31:01 +02:00
Pedro J. Estébanez 27aa752335 Keep crash handler status on editor restart
(cherry picked from commit 116f03a1b6)
2022-07-27 15:23:50 +02:00
Hugo Locurcio 7edd5e4b39 Require ScriptInstance to be valid in the editor debugger
This fixes an issue with visual scripts spamming error messages
in the editor when running the project with the remote scene tree
visible.

(cherry picked from commit 829c824755)
2022-07-26 11:01:55 +02:00
Alfred R. Baudisch f00ee23b7a Script Editor: Don't switch to 2D/3D viewports when selecting nodes
Selecting nodes in the Scene dock automatically switches to the relevant 2D
or 3D viewport. This behavior can be annoying while using the Script Editor
and wanting to inspect node properties, so it's now disabled by default when
the Script Editor is active.

This new behavior can be changed back to the previous auto-switching using
the `text_editor/navigation/stay_in_script_editor_on_node_selected` editor
setting.

(cherry picked from commit c4433c3793)
2022-07-26 11:01:53 +02:00
Rémi Verschelde 818f1eed31 Code quality: Fix header guards consistency
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
Nathan Franke 14e3d478e1 dependency editor: set current directory to closest existing directory
(cherry picked from commit 905c431191)
2022-07-25 11:42:42 +02:00
bruvzg d6698c1f81 [Command line export] return 0 exit code when export is finished with warnings.
(cherry picked from commit d02bf7584a)
2022-07-25 11:32:59 +02:00
kobewi e71cf7c560 Fix node dragging not working when dock is moved
(cherry picked from commit b42bbca266)
2022-07-22 01:02:16 +02:00
Rémi Verschelde 59629fdf20
Merge pull request #49255 from kleonc/sprite_frames_editor-anim-search-box 2022-07-19 12:40:05 +02:00
kleonc 66551a94be `TileMapEditor` Fix interrupted erasing not being properly finished 2022-07-18 22:29:50 +02:00
kleonc 728a725b7b SpriteFramesEditor Add animation searchbox 2022-07-18 15:47:32 +02:00
Rémi Verschelde 556e090bcc i18n: Sync editor translations with Weblate 2022-07-18 10:14:53 +02:00
Twarit Waikar af3a834d0e VCS: Fix wrong number of args passed into _refresh_commit_list 2022-07-09 23:31:44 +05:30
Rémi Verschelde 875a0dba5a AssetLib: Only notify when unavailable in verbose mode
(cherry picked from commit dc86bce306)
2022-07-08 16:42:03 +02:00
Fabio Alessandrelli ad5fdcc0f3 [AssetLib] Fix crash in Web editor.
Add EditorAssetLibrary::is_available which always returns false in the
Web editor and use it in EditorNode for detection.

(cherry picked from commit 0e504e4191)
2022-07-08 14:37:35 +02:00
Rémi Verschelde 30ceef93b0 i18n: Sync editor translations with Weblate 2022-07-06 14:59:09 +02:00