Commit Graph

7486 Commits

Author SHA1 Message Date
53adb2a142 Add TorusMesh 2022-08-07 12:42:24 +02:00
ab7e2564f3 Merge pull request #63659 from PrecisionRender/add-shape-cast-3d
[3.x] Add `ShapeCast` and `ShapeCast2D` nodes
2022-08-06 00:33:29 +02:00
0dccbcd7ce Merge pull request #61878 from bruvzg/backport_locale_select
[3.x] Backport locale selection improvements.
2022-08-05 23:45:17 +02:00
be3d331f26 Backport spatial shader built-ins
Backport of this PR: https://github.com/godotengine/godot/pull/63597
This adds these as new Built-Ins to Spatial Shaders
* Object's Position in World Space
* Camera Position in World Space
* Camera Direction in World Space
* Object's Position in View Space
2022-08-05 21:19:15 +02:00
74de571827 Merge pull request #55626 from Calinou/3d-editor-drag-and-drop-auto-root-node-3.x 2022-08-05 19:38:45 +02:00
1b7037807f Merge pull request #59328 from raulsntos/csharp-flag-enums-3.x 2022-08-05 19:37:29 +02:00
173a803c8a Merge pull request #49495 from kleonc/sprite_frames_editor-updating-fixes-3x 2022-08-05 19:35:30 +02:00
a6e70f1f1c Merge pull request #63250 from YuriSizov/toolbars-go-with-the-flow-3.x 2022-08-05 19:34:21 +02:00
4e64c1f1b6 i18n: Sync editor translations with Weblate 2022-08-05 03:09:55 +02:00
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
e0101e511c Improve some export error messages.
(cherry picked from commit ea00cf7270)
2022-08-01 10:37:04 +02:00
47a62e28ac [3.x] Add ShapeCast and ShapeCast2D nodes 2022-07-30 10:23:58 -05:00
5e66d2e2c4 i18n: Sync editor translations with Weblate 2022-07-27 15:31:01 +02:00
27aa752335 Keep crash handler status on editor restart
(cherry picked from commit 116f03a1b6)
2022-07-27 15:23:50 +02:00
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
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
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
14e3d478e1 dependency editor: set current directory to closest existing directory
(cherry picked from commit 905c431191)
2022-07-25 11:42:42 +02:00
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
e71cf7c560 Fix node dragging not working when dock is moved
(cherry picked from commit b42bbca266)
2022-07-22 01:02:16 +02:00
842c3a644f Use FlowContainer to handle toolbar overflow more gracefully 2022-07-20 17:22:36 +03:00
26223fe855 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.
2022-07-19 07:57:43 -04:00
59629fdf20 Merge pull request #49255 from kleonc/sprite_frames_editor-anim-search-box 2022-07-19 12:40:05 +02:00
66551a94be TileMapEditor Fix interrupted erasing not being properly finished 2022-07-18 22:29:50 +02:00
728a725b7b SpriteFramesEditor Add animation searchbox 2022-07-18 15:47:32 +02:00
556e090bcc i18n: Sync editor translations with Weblate 2022-07-18 10:14:53 +02:00
8ae246f15e AnimatedSprite Fix updating inspector when SpriteFrames is modified 2022-07-13 15:48:11 +02:00
af3a834d0e VCS: Fix wrong number of args passed into _refresh_commit_list 2022-07-09 23:31:44 +05:30
875a0dba5a AssetLib: Only notify when unavailable in verbose mode
(cherry picked from commit dc86bce306)
2022-07-08 16:42:03 +02:00
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
30ceef93b0 i18n: Sync editor translations with Weblate 2022-07-06 14:59:09 +02:00
b200a011d1 Fix heap-use-after-free when closing a scene with its builtin script open
(cherry picked from commit 61bc7d6576)
2022-07-06 11:45:12 +02:00
da626d8922 Fix FileDialog file name autocompletion with filters
Fixes #38195.

(cherry picked from commit 446f1b7052)
2022-07-06 11:39:04 +02:00
f7c144a180 Update TextureRegion editor when NinePatchRect/StyleBoxTexture changes
Updates the editor when the region rect or margins change.
2022-07-06 14:04:42 +08:00
8d1be8ca35 Fix icon color for Label3D and CPUParticles2D 2022-07-06 12:34:41 +08:00
cda0692159 Rework scene creation dialog 2022-07-05 19:37:59 +02:00
90cf6688f2 Automatically add root node when drag-and-dropping in 3D editor
This also uses correct capitalization scheme for 3D meshes that are
drag-and-dropped, like in the 2D editor.
2022-07-05 00:54:31 +02:00
a8eb779ac3 Backport locale selection improvements. 2022-07-04 11:49:20 +03:00
f089f77c2a Android: Refactor Custom Build options in export preset
Instead of reusing the custom_template/ prefix which is actually only
used for the prebuilt APK workflow, we add a new custom_build/ prefix.

This is a slight compat breakage (users will have to redo their config)
but enables us to group the Min SDK and Target SDK options where they make
sense, and avoid reusing the previously hardcoded Target SDK 30 from
Godot 3.4.

Those two options are now strings instead of integers so that we can keep
them empty by default, and show their default value using a placeholder.
So some validation has been added to make sure they are proper ints.
The upper bound on Target SDK was also removed as it's a common use case
to use it to try to target newer released SDKs. But we warn the user that
this wasn't validated by us.

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.

Fixes #62465.
2022-07-03 17:09:41 +02:00
63f35d24c6 Use % when dropping unique scene nodes into script
This expands uppon #60708, using `get_node("%NodeName")` for nodes that
have a unique scene name to avoid having to change the onready
statements when the paths of the nodes change.

(cherry picked from commit 1101f6c660)
2022-07-03 03:34:23 +02:00
07953346fa Include quotes conditionally for dropped paths
(cherry picked from commit 995bcd6218)
2022-07-03 03:33:26 +02:00
77a9f3d4d8 Make asset library's column count dynamic
(cherry picked from commit d65eb592b0)
2022-07-03 03:26:12 +02:00
5ccc941a4c [3.x] Remove hardcoded names in generated objects 2022-07-03 00:58:13 +02:00
3000d8d140 Merge pull request #59576 from techiepriyansh/fix-multiple-instances-3.x 2022-07-03 00:22:15 +02:00
bed3d2cbd5 Merge pull request #61169 from DeeJayLSP/wav_ieee_3.x 2022-07-02 22:03:14 +02:00
ad77a3f2f7 Stretch image on resize in asset description dialog
(cherry picked from commit 924658a849)
2022-07-02 00:08:56 +02:00
c9b9bf5437 recolor Remove Theme Items icons from Godot 4 colors to Godot 3
follow-up to #62559.
we found more icons that mistakenly had the Godot 4 colors,
so i fixed them too.
2022-07-01 09:38:23 +02:00
a13b3028a2 Add an option to drag'n'drop selected text in TextEdit
(cherry picked from commit 5d56efcaa4)
2022-06-30 19:23:01 +02:00
916fee78bd recolor FlowContainer icons to the same color as Control icon
according to the discussion in issue #62553,
the FlowContainer icons don't get color-adjusted for Light theme
and it's because the color code is off.

to fix this issue, i recolored them to be the same icon as the Control icon,
an icon that i already know Does get recolored for Light theme.
2022-06-30 18:01:49 +02:00
f29241fa1e i18n: Sync editor translations with Weblate 2022-06-29 12:08:19 +02:00