Commit Graph

15175 Commits

Author SHA1 Message Date
Rémi Verschelde
b091162a90
Merge pull request #90488 from dalexeev/editor-fix-enum-detect-unnamed-classes
Editor: Fix enum detection for unnamed classes
2024-04-10 17:49:59 +02:00
Rémi Verschelde
7c23d32446
Merge pull request #90441 from Calinou/editor-move-build-profile-editor
Move engine build profile editor to Tools submenu
2024-04-10 17:49:39 +02:00
Rémi Verschelde
5bb22d87cb
Merge pull request #90378 from AeioMuch/inspect_hovered_node_while_dragging
Inspect hovered node while dragging
2024-04-10 17:49:34 +02:00
AeioMuch
0ba1adfaf9 Inspect hovered node while dragging 2024-04-10 17:15:13 +02:00
Danil Alexeev
fc6c1d6363
Editor: Fix enum detection for unnamed classes 2024-04-10 16:10:55 +03:00
Rémi Verschelde
1f0f81049f
Merge pull request #90476 from mihe/revert-pack-trimming
Revert pack trimming introduced by #82084
2024-04-10 14:22:48 +02:00
Rémi Verschelde
9c5e968bbc
Merge pull request #90432 from Rindbee/correctly-replace-scene-root-when-must_reload
Correctly replace scene root when `must_reload` in `EditorData::check_and_update_scene()`
2024-04-10 14:22:29 +02:00
Rémi Verschelde
7d7d30340f
Merge pull request #90421 from Krigu/add_option_copy_absolute_path_to_file_system_dock_popup
Add option to copy absolute path in file system dock popup
2024-04-10 14:22:26 +02:00
Rémi Verschelde
22299f83f1
Merge pull request #89704 from dalexeev/editor-help-fix-text-color
Editor: Fix text color in `EditorHelpHighlighter`
2024-04-10 14:21:51 +02:00
Rémi Verschelde
492c19732e
Merge pull request #86386 from timothyqiu/empty-layout-name
Strip edges of editor layout names
2024-04-10 14:21:37 +02:00
Mikael Hermansson
a057158d75 Revert pack trimming introduced by #82084 2024-04-10 12:00:04 +02:00
ajreckof
248e5bfba2
Revert what needs to be reverted 2024-04-10 09:49:30 +08:00
风青山
41f6a683b6
Correctly replace scene root when must_reload in EditorData::check_and_update_scene()
We need to update the scene root in multiple singletons to ensure that
certain flags are correct. This is what `EditorNode::set_edited_scene()`
does.

Usually we use `replace_by` to complete the replacement of the scene
root. Call `EditorNode::set_edited_scene()` when the `replacing_by`
signal is emitted to set the new scene root. This is suitable when
using a single node to replace, which may be problematic if the
replacing node is a tree. Because during the call to `replace_by()`,
the new node and its child nodes will enter tree during `parent->
add_child(p_node)`, and later emits the `replacing_by` signal.

When the parent scene has to be reloaded because the child scene
changes and switches to the parent scene, there is no need to use
`replace_by()` since the scene's diffs are already saved.
2024-04-10 09:49:29 +08:00
Rémi Verschelde
0993df8be3
Merge pull request #90431 from mihe/import-flag
Add `--import` command-line flag
2024-04-09 22:29:44 +02:00
Rémi Verschelde
78fade3809
Merge pull request #89874 from jsjtxietian/path2d
Fix Path2D's add new point's UndoRedo bug
2024-04-09 22:25:18 +02:00
Christian Feuz
5c1d1ea620 Add option to copy absolute path in file system dock popup 2024-04-09 22:04:39 +02:00
Hugo Locurcio
8e924bcb22
Move engine build profile editor to Tools submenu
- Rename it to Engine Compilation Configuration Editor. This makes
  it clearer that it requires compiling the engine to work ("build"
  can be understood as exporting a project or building C# solutions
  by some).
- Add it to the editor command palette and allow defining a keyboard
  shortcut for it, for consistency with other tools.
2024-04-09 19:08:31 +02:00
Mikael Hermansson
9d01793dff Add --import command-line flag 2024-04-09 15:18:59 +02:00
Rémi Verschelde
8c6e8c72a2
Merge pull request #90414 from jsjtxietian/assign-crash
Fix `_node_assign` will crash  when `base_node` is nullptr
2024-04-09 10:42:38 +02:00
Rémi Verschelde
dfcf803724
Merge pull request #90255 from Jabberdrake/bugfix-new
Fix 3d axes flickering in the negative direction when extremely zoomed out
2024-04-09 10:42:35 +02:00
Rémi Verschelde
dcf17cbb11
Merge pull request #89931 from timothyqiu/relax
Relax grid parameter constraints in texture region editor
2024-04-09 10:42:32 +02:00
Rémi Verschelde
3c4c79c65a
Merge pull request #89803 from timothyqiu/xfce4-terminal
Add necessary flags when opening directory with xfce4-terminal
2024-04-09 10:42:27 +02:00
Miguel Coelho
a53841021c
Fixes 3D axes flickering in the negative direction
When zooming out in the 3d node editor view, the negative half
of all 3d axes starts flickering upon moving the camera. To fix this,
the logic surrounding 3d transform "scaled" and "translated" calls has
been altered so as to account for negative distance values.

Fixes #89215.
2024-04-09 10:38:22 +02:00
jsjtxietian
7d4bdcf80a Fix _node_assign will crash when base_node is nullptr 2024-04-09 12:37:32 +08:00
Rémi Verschelde
d2c7f09353
Merge pull request #90387 from AThousandShips/console_wrap_fix
[Windows] Support all possible suffixes for console wrapper
2024-04-08 21:56:05 +02:00
Rémi Verschelde
5c5563f9c9
Merge pull request #90022 from YeldhamDev/debug_tree_fix
Fix debugger tree error on editor start
2024-04-08 18:42:34 +02:00
Rémi Verschelde
429bf0281c
Merge pull request #89810 from Geometror/fix-79417
[VisualShader] Remove invalid graph connections when ports are removed
2024-04-08 18:42:30 +02:00
A Thousand Ships
07c73063e3
[Windows] Support all possible suffixes for console wrapper 2024-04-08 16:42:29 +02:00
Hendrik Brucker
0b9b479ba7 [VisualShader] Remove invalid graph connections when ports are removed
Co-authored-by: EddieBreeg <eddiebreeg0@protonmail.com>
2024-04-08 15:31:27 +02:00
Rémi Verschelde
7fa4698475
Merge pull request #90317 from ajreckof/Fix-strange-visual-bug-with-camera-and-external-change-
Fix strange visual bug with camera and external change.
2024-04-08 14:04:45 +02:00
Rémi Verschelde
15b9e7cb2a
Merge pull request #89841 from timothyqiu/double-decker
Fix wrong values displayed after duplicating an audio bus
2024-04-08 14:04:35 +02:00
A Thousand Ships
23782b898b
Add further details on properties returning Packed*Array 2024-04-08 11:35:27 +02:00
Rémi Verschelde
f202ebb495
Merge pull request #90102 from themancalledjakob/fix-drag-drop-shadermaterial
Allow drag and dropping ShaderMaterial in 3D viewport
2024-04-08 11:20:59 +02:00
Rémi Verschelde
84af65d4ba
Merge pull request #89801 from timothyqiu/lost-group
Fix heap-use-after-free when converting scene group to global
2024-04-08 11:20:21 +02:00
Rémi Verschelde
bfccd57769
Merge pull request #89573 from timothyqiu/hop
Fix crash when columns are skipped in CSV translation
2024-04-08 11:20:09 +02:00
ajreckof
609559c074 Fix strange visual bug with camera and external change. 2024-04-07 03:49:43 +02:00
Rémi Verschelde
66dbe3591b
Merge pull request #90280 from TheSofox/duplicated-folder-reference-fix
Fix duplicated folder reference in Godot Editor after changing filename case
2024-04-06 13:06:57 +02:00
Rémi Verschelde
92afd2c417
Merge pull request #90278 from KoBeWi/self_dropping_resources
Prevent dropping Resource to the same resource picker
2024-04-06 13:06:53 +02:00
Rémi Verschelde
554c0af5d4
Merge pull request #90186 from Maran23/error-when-rename-move
Fix errors when renaming/moving/deleting global scripts
2024-04-06 13:06:32 +02:00
Rémi Verschelde
e6d0d0b391
Merge pull request #89406 from AeioMuch/drag_drop_array_nodes
Allow batch drag and drop in typed array of Node and NodePath.
2024-04-06 13:06:18 +02:00
AeioMuch
409c71bdfd Allow batch drag and drop in typed array of Node and NodePath. 2024-04-06 08:18:44 +02:00
Sofox
87b5a56ddf Fix duplicated folder reference in Godot Editor after changing filename case 2024-04-05 21:38:48 +01:00
kobewi
b9c78ba174 Prevent dropping Resource to the same resource picker 2024-04-05 22:26:29 +02:00
Marius Hanl
dda06a8209 Fix errors when renaming/moving/deleting global scripts
When renaming or moving global scripts, the following errors can appear:
- Attempt to open script 'xxx' resulted in error 'File not found'.
- Failed loading resource: xxx. Make sure resources have been imported by opening the project in the editor at least once.
- Parser Error: Class 'xxx' hides a global script class.

When deleting scripts, errors appear when opening the 'Create Node Dialog' as the script cache still contains the removed global scripts. The following errors can appear:
- Attempt to open script 'xxx' resulted in error 'File not found'.
- Failed loading resource: xxx. Make sure resources have been imported by opening the project in the editor at least once.
editor/create_dialog.cpp:241 - Condition "scr.is_null()" is true.

All this errors can be fixed by correctly handling the cases. They involves removing the old path and adding the new one (if not deleted) to the ScriptServer. This is somewhat similar if the file is moved or deleted outside Godot and detected by the file watcher, but more specialized for this particular usecase, since we know the old and the new path / correctly know what the user just did.
2024-04-05 18:52:15 +02:00
Rémi Verschelde
655e93d584
Merge pull request #90266 from akien-mga/scenetreeeditor-fix-treeitem-crash
SceneTreeEditor: Fix crash when TreeItem is removed before callback
2024-04-05 17:23:03 +02:00
Rémi Verschelde
6b8daa498e
SceneTreeEditor: Fix crash when TreeItem is removed before callback
Fixes #90235.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2024-04-05 16:53:33 +02:00
ajreckof
866452c75e Fix crash on invalid values in EditorPropertyArray/Dict 2024-04-05 16:42:21 +02:00
Rémi Verschelde
4396fb48f8
Merge pull request #90062 from AlexOtsuka/fix-filesystemdock-drop
Fix FileSystemDock behavior when dropping an item in the current folder
2024-04-05 12:16:07 +02:00
Rémi Verschelde
b7e0b0ea0c
Merge pull request #89970 from AThousandShips/require_expose
[Animation] Expose `SkeletonProfile.set/is_required`
2024-04-05 12:16:04 +02:00
Rémi Verschelde
fe25b18432
Merge pull request #89861 from dalexeev/editor-help-fix-csharp-crash
Fix regression with C# build editor crash due to `EditorHelpHighlighter`
2024-04-05 12:15:57 +02:00