Commit Graph

13145 Commits

Author SHA1 Message Date
ajreckof 088435ab78 prevent selecting unselectable `EditorProperty` with RMB 2023-05-17 05:56:24 +02:00
jpcerrone 0985019c28 Fix Input Map key assignments missing after project conversion
Fixes #76336 (Input Map keys missing).
Moves the project.godot config_version stamping from the project manager
to the project converter. Now there's no difference between converting through
the project manager and the CLI tool.
Fixes being prompted to re-convert the project in the project manager after
having done so through the CLI tool.
2023-05-16 14:39:04 -03:00
Rémi Verschelde 557fa5c31a
Merge pull request #77081 from KoBeWi/yo_dawg_I_heard_you_like_projects,_so_I_put_a_project_in_your_project
Print a warning when a nested project is detected
2023-05-16 11:01:55 +02:00
Rémi Verschelde 965db42911
Merge pull request #77080 from KoBeWi/spam_error_log_with_multiple_threads_for_better_spam_efficiency
Allow showing messages from threads in Editor Log
2023-05-16 11:01:32 +02:00
Rémi Verschelde f868b4781b
Merge pull request #76684 from KoBeWi/this_branch_is_meta
Add background panel to new meta dialog
2023-05-16 11:00:21 +02:00
Rémi Verschelde 508a5bf16e
Merge pull request #76025 from YuriSizov/editor-reparentable-windows
Expose dialog parent-and-popup logic to the API
2023-05-16 10:49:09 +02:00
Lyuma 7b71061b3e Adjust BoneAttachment3D children/meshes during rest fixer
Also simplifies equivalent matrix math which previously used ibm_diffs to calculate skinned mesh offsets.
2023-05-16 01:34:54 -07:00
Rémi Verschelde 8cfa19a078
Merge pull request #77000 from reduz/make-more-base-nodes-thread-safe
Make more base nodes thread safe
2023-05-16 00:31:56 +02:00
Yuri Sizov 17f492fb82 Expose dialog parent-and-popup logic to the API 2023-05-15 19:49:28 +02:00
Juan Linietsky 0a9f72d5a8 Make more base nodes thread safe
Ongoing work to make more of the base nodes thread safe.
2023-05-15 16:54:10 +02:00
Rémi Verschelde b497729c92
Merge pull request #77074 from spanzeri/fix-theme-crash-skeleton-editor
Fix Skeleton3D editor crash regression after #76592
2023-05-15 13:46:30 +02:00
Rémi Verschelde f5d8a72e6d
Merge pull request #77034 from kleonc/spriteframes-editor-toolbar-flowcontainer
Make SpriteFrames editor toolbar a `FlowContainer`
2023-05-15 13:44:56 +02:00
Rémi Verschelde 9853da4bfe
Merge pull request #77009 from jpcerrone/fix_errors_while_reordering_input_maps
Fix errors that appear while reordering input map entries
2023-05-15 13:44:33 +02:00
Rémi Verschelde 591115dcde
Merge pull request #76989 from dalexeev/fix-draw-multiline-colors-usage
Fix `draw_multiline_colors` usage
2023-05-15 13:44:09 +02:00
Samuele Panzeri a103cd76bb Fix skeleton 3d editor crash in RC3
Control notifies a theme changed before the editor has entered the tree
2023-05-15 12:12:48 +02:00
Rémi Verschelde e2f27a2248
Merge pull request #77042 from dioptryk/obj-vertex-colors-master
Add support for non-standard OBJ vertex entries
2023-05-15 09:34:59 +02:00
Rémi Verschelde 716f788b98
Merge pull request #77033 from dalexeev/editor-help-fix-array-links
EditorHelp: Fix displaying typed `Array` links
2023-05-15 09:34:35 +02:00
Rémi Verschelde 0f5e9a52da
Merge pull request #77027 from brno32/hide-properties-when-overriden
Exclude overriden properties from Property Descriptions section
2023-05-15 09:33:48 +02:00
Danil Alexeev cc44d75cd8
Fix `draw_multiline_colors` usage 2023-05-15 09:56:13 +03:00
kobewi d1a114470c Print a warning when a nested project is detected 2023-05-15 02:04:58 +02:00
kobewi 61465ee9a1 Allow showing messages from threads in Editor Log 2023-05-15 01:58:27 +02:00
Alex Drozd 28f391f301 Exclude overriden properties from Property Descriptions section 2023-05-14 17:41:14 +02:00
Bartłomiej Karwacki 444d211a8d Add support for non-standard OBJ vertex entries 2023-05-13 22:37:38 +02:00
kleonc d58e832062 Make SpriteFrames editor toolbar a FlowContainer 2023-05-13 16:00:25 +02:00
Danil Alexeev a16b2fc3b6
EditorHelp: Fix displaying typed `Array` links 2023-05-13 16:09:35 +03:00
Summersay415 289af4f73c Add Vector4i icon 2023-05-13 16:20:56 +07:00
jpcerrone c6ea376842 fix errors while reordering input maps 2023-05-12 16:15:16 -03:00
Rémi Verschelde ca26d9dc48
Merge pull request #71280 from RandomShaper/fix_deadlock_windows
Enhance thread-safety of loaders and importers (a.k.a. fix editor deadlock)
2023-05-12 20:12:32 +02:00
kobewi 27dccf1b5e Enhance filesystem dock tooltips 2023-05-12 19:28:34 +02:00
Pedro J. Estébanez 45d0b38076 Enhance thread safety of loaders and importers 2023-05-12 17:44:48 +02:00
Pedro J. Estébanez 7537a0521f Simplify ResourceLoader error callbacks 2023-05-12 17:44:48 +02:00
ajreckof 6f596ee903 fix paste value not updated in dictionaries/arrays 2023-05-12 16:13:35 +02:00
Rémi Verschelde 65778525bf
Merge pull request #76967 from martinboue/export-mode-subheading
Fix include text when excluding resources to export
2023-05-12 12:46:50 +02:00
Rémi Verschelde c90654b565
Merge pull request #76530 from nongvantinh/fix-75982
Fixes Node arrays appear as Object arrays in the inspector
2023-05-12 12:46:23 +02:00
Rémi Verschelde f7374e2db7
Merge pull request #76897 from aaronfranke/debug-stack
Rename the Debugger's stack debug section
2023-05-12 11:17:55 +02:00
Rémi Verschelde 645fd5ed0c
Merge pull request #76979 from MewPurPur/unify-audio-bus-textures
Remove AudioBusEmpty.svg, use ProgressBar tint instead
2023-05-12 10:06:55 +02:00
Rémi Verschelde e4f81fb79e
Merge pull request #76964 from aaronfranke/addon-sort
Sort the list of addons before saving them
2023-05-12 10:05:44 +02:00
Rémi Verschelde cc48827e4a
Merge pull request #76946 from AThousandShips/shadow_warning
Enable shadow warnings and fix raised errors
2023-05-12 10:04:09 +02:00
Aaron Franke 74361b3d50
Rename the Debugger's stack debug section to Stack Trace 2023-05-11 21:22:24 -05:00
VolTer 7ee5cd26ef Remove AudioBusEmpty.svg, use ProgressBar tint instead 2023-05-12 01:55:52 +02:00
Martin Boué 886e73683d Fix include text when excluding resources to export 2023-05-11 21:29:08 +02:00
Aaron Franke b4129680fb
Sort the list of addons before saving them 2023-05-11 13:39:26 -05:00
Bram Stolk 4bc513edbc Add missing initializations for Node3DEditor.
Do not try to format fields with garbage values in _snap_update()
Initialize grid_enable[] before use.
Initialize previewing_camera before use.
These are all cases found live, with valgrind.
Fixes #76925
2023-05-11 08:16:04 -07:00
Ninni Pipping 71ee65dc57 Enable shadow warnings and fix raised errors 2023-05-11 16:00:59 +02:00
Rémi Verschelde f717cc0a38
Merge pull request #76926 from Sauermann/fix-call-to-unhandled-input
Propagate shortcut events to SubViewports
2023-05-11 11:48:46 +02:00
Rémi Verschelde 4020cc8acb
Merge pull request #76794 from Wiwip/inline-edit
Inline editor for the file system dock
2023-05-11 11:46:45 +02:00
Rémi Verschelde 3fdf555d43
Merge pull request #76592 from spanzeri/fix-skeletons-and-bones
Fix skeleton_3d & physical_bone_3d editor errors
2023-05-11 11:46:21 +02:00
Rémi Verschelde f7070a64e0
Merge pull request #72277 from Geometror/improve-editor-state-preservation
Improve editor state persistence
2023-05-11 11:45:52 +02:00
Hendrik Brucker dc46163b12 Improve editor state persistence 2023-05-11 04:17:03 +02:00
Wiwip b08a6084af Modifies the file system dock to use the inline editor instead of a dialog.
*Bugsquad edit:* Closes https://github.com/godotengine/godot-proposals/issues/4933
2023-05-10 18:49:35 -04:00
Markus Sauermann ac02086647 Propagate shortcuts to SubViewports
`push_unhandled_input` no longer propagates events to `SubViewports`.
2023-05-10 21:56:04 +02:00
Samuele Panzeri 679ff6da0e Fix skeleton_3d & physical_bone_3d editor errors 2023-05-10 18:03:30 +02:00
Rémi Verschelde 4e1d5be9d3
Merge pull request #76910 from AThousandShips/inspector_fix
Make `EditorPropertyNameProcessor` check `EditorSettings` validity
2023-05-10 14:19:15 +02:00
kobewi 04317e9ced Add metadata to resource previews 2023-05-10 14:03:10 +02:00
Ninni Pipping 6cd9d72abe Make `EditorPropertyNameProcessor` check `EditorSettings` validity 2023-05-10 13:35:05 +02:00
Rémi Verschelde 74e5ad5c60
Merge pull request #76165 from and-rad/safe-credentials
Store sensitive export options in dedicated credentials file
2023-05-10 12:47:07 +02:00
Rémi Verschelde 5271186f2f
Merge pull request #75901 from reduz/refactor-node-processing
Refactor Node Processing to allow Scene Multithreading
2023-05-10 12:46:44 +02:00
Rémi Verschelde 31fc7a8525
Merge pull request #62378 from trollodel/gsoc_2022_multiwindow
Add multi window code and shader editors (GSOC'22 Project)
2023-05-10 12:46:19 +02:00
Andreas Raddau fab160ce70 Store sensitive export options in dedicated credentials file 2023-05-10 11:40:17 +02:00
Rémi Verschelde 3b8c828159
Merge pull request #69988 from smix8/navigation_rvo_rework_4.x
Rework Navigation Avoidance
2023-05-10 10:19:12 +02:00
Rémi Verschelde 8e608e9467
Merge pull request #64388 from Rindbee/improve-ViewportTexture
Improve the UX of ViewportTexture in the editor
2023-05-10 10:18:43 +02:00
trollodel b4d6b47c17 Add multi window code and shader editors 2023-05-10 09:14:21 +02:00
smix8 a6ac305f96 Rework Navigation Avoidance
Rework Navigation Avoidance.
2023-05-10 05:01:58 +02:00
Rindbee af58f1e854 Improve the UX of ViewportTexture in the editor
The associated `ViewportTexture`s will update the `viewport_path`
in time when the `Viewport`'s nodepath is changed (caused by renaming
the node names or moving in the SceneTree dock).

If the target `Viewport` is changed by resetting the `viewport_path`,
the `ViewportTexture`s will be re-setup and emit `changed` signal in
time.
2023-05-10 09:13:43 +08:00
Rémi Verschelde ccf8029910
Merge pull request #76730 from AThousandShips/doc_order
Make documentation sorting use natural order
2023-05-09 19:28:38 +02:00
Rémi Verschelde 10ed1d87df
Merge pull request #76490 from dsnopek/dump-gdscript-docs
Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH
2023-05-09 19:28:30 +02:00
Rémi Verschelde de14109862
Merge pull request #73588 from smosages/resolve-display-shader-settings-in-settings-editor
Define shader language project settings before creation of `TextShaderEditor` object.
2023-05-09 19:28:17 +02:00
Juan Linietsky 98c655ec8d Refactor Node Processing
* Node processing works on the concept of process groups.
* A node group can be inherited, run on main thread, or a sub-thread.
* Groups can be ordered.
* Process priority is now present for physics.

This is the first steps towards implementing https://github.com/godotengine/godot-proposals/issues/6424.
No threading or thread guards exist yet in most of the scene code other than Node. That will have to be added later.
2023-05-09 19:17:51 +02:00
Ninni Pipping 6bccdec7a1 Make documentation sorting use natural order 2023-05-09 17:47:52 +02:00
Rémi Verschelde 72323a57d0
Merge pull request #57894 from Sauermann/fix-subviewport-1
Fix unrestricted mouse-event propagation to SubViewports for Physics-Picking
2023-05-09 10:43:49 +02:00
jmb462 d59cdb8327 Fix regression with right click on main selection 2023-05-08 21:56:16 +02:00
David Snopek a64137d5dd Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH 2023-05-08 11:00:29 -05:00
Rémi Verschelde b3bb92ae5e
CI: Use gh-cli for changed files, and workaround codespell skip list bug
For PRs, this should give a more accurate list, as the previous method would
diff to the tip of the `master` branch, which could include new commits (and
thus changed files) not present in the PR branch.

codespell's `--skip` option doesn't work at all with folders when used
together with an explicit list of paths to work with, so let's not use it.
2023-05-08 15:36:17 +02:00
Rémi Verschelde 491a437df5
Merge pull request #76540 from reduz/redo-remote-filesystem
Redo how the remote filesystem works
2023-05-08 13:52:51 +02:00
Rémi Verschelde 3e6a731904
Merge pull request #76418 from reduz/method-bind-validated-call
Add ValidatedCall to MethodBind
2023-05-08 13:52:42 +02:00
Rémi Verschelde 7f6b283212
Merge pull request #74264 from timothyqiu/self-awareness
Allow EditorInspector to change its property name style when necessary
2023-05-08 13:52:23 +02:00
Rémi Verschelde b791a7acb8
Merge pull request #70488 from KoBeWi/SNAP!
Add proper snapping to tile polygon editor
2023-05-08 13:52:11 +02:00
Rémi Verschelde 41f1ec1efe
Merge pull request #76798 from KoBeWi/race_condition_except_there_is_no_thread
Fix another collision shape editor crash
2023-05-08 12:20:57 +02:00
Rémi Verschelde eb6d6ab29f
Merge pull request #76658 from Paulb23/convert-indent-code-edit
Move convert_indent into CodeEdit
2023-05-08 12:20:37 +02:00
Rémi Verschelde 32fbba4bf6
Merge pull request #76472 from jmb462/multicarets_selection_popup
Fix right click in selection of additional caret
2023-05-08 12:20:25 +02:00
Rémi Verschelde e70777260d
Merge pull request #70911 from Chaosus/vs_custom_gdextension_support
Add handling of custom visual shader nodes from GDExtension
2023-05-08 12:20:00 +02:00
Rémi Verschelde b639076e04
Merge pull request #68800 from KoBeWi/tinfo
Add info label to TileMap editor
2023-05-08 12:19:52 +02:00
Juan Linietsky 273a6eeb66 Redo how the remote filesystem works
Instead of reading files over the network, the new version uses a local file cache and only updates files when it changes.

The original remote filesystem was created 14 years ago, when ethernet was faster than hard drives or even flash. Also, mobile devices have a very small amount of storage.
Nowadays, this is no longer the case so the approach is changed to using a persistent cache in the target device.

Co-authored-by: m4gr3d
2023-05-08 11:57:54 +02:00
Fredia Huya-Kouadio bd1bc68ba0
Merge pull request #75718 from m4gr3d/add_scale_editor_icons_main
Adds a `scale_gizmo_handles` entry to the `Touchscreen` editor settings
2023-05-07 17:05:12 -07:00
Fredia Huya-Kouadio 30824e9818 Adds a `scale_gizmo_handles` entry to the `Touchscreen` editor settings
When enabled, this scales the editor icons to improve usability on touchscreen devices.
In addition this commit fixes touch detection for the collision_shape_2d_editor_plugin so it scales with the icons size.
2023-05-07 15:55:28 -07:00
Jean-Michel Bernard 5c06c030f2 Fix right click in selection of additional caret 2023-05-08 00:02:56 +02:00
VolTer 39b79bbd1e Improvements to Gradient2D Editor 2023-05-07 22:45:11 +02:00
Paulb23 0b3fba45c6 Move convert_indent into CodeEdit 2023-05-07 13:08:37 +01:00
kobewi 01c32dffaf Fix another collision shape editor crash 2023-05-07 02:32:20 +02:00
RedworkDE 1324c7d06a Avoid making unnecessary copies of `LocalVector` 2023-05-06 20:39:03 +02:00
Max Hilbrunner 862cbe2fc6
Merge pull request #76761 from KoBeWi/this_file_ain't_big_enough_for_both_of_us 2023-05-06 15:07:35 +02:00
Max Hilbrunner 115fa34cb4
Merge pull request #76743 from HotHead007/master 2023-05-06 14:44:16 +02:00
Yuri Rubinsky 998b48f722 Add handling of custom visual shader nodes from GDExtension 2023-05-06 08:19:12 +03:00
kobewi 88ea3dd4db Remove erroneous signal connection 2023-05-05 22:26:19 +02:00
Clay John 610877e326
Merge pull request #72288 from MewPurPur/use-string-repeat
Use `String.repeat()` to optimize several String methods
2023-05-05 09:56:48 -07:00
Clay John 214a848e0f
Merge pull request #76700 from dsnopek/dedicated-server-mark-inherited
Explicitly mark inherited export mode when making a dedicated server export
2023-05-05 09:23:32 -07:00
Max Hilbrunner f6bf51ca49
Merge pull request #75864 from KoBeWi/assassin_of_shaders 2023-05-05 14:37:54 +02:00
Manik Sharma 3ce0ebb242 Make environment energy adjustable as a float in 3D editor's preview environment 2023-05-05 09:01:46 +05:30
Manik Sharma 5e1cb39101 Make sun energy adjustable as a float in the 3D editor's preview sun 2023-05-04 10:34:07 +05:30
Max Hilbrunner 2816825e44
Merge pull request #76555 from Tetane/master
Fix 2D shader preview draws over uniform
2023-05-03 20:07:00 +02:00
David Snopek 61f03daeeb Explicitly mark inherited export mode when making a dedicated server export 2023-05-03 09:47:33 -05:00
kobewi b732c2b341 Add background panel to new meta dialog 2023-05-03 00:21:05 +02:00
kleonc 82f6dae408 Unify setting tooltips for items in SceneTreeEditor 2023-05-02 12:34:44 +02:00
Rindbee fd75bb562e Do not cache the doc information written by user in the script in Inspector
The doc information of the edited object is cached to reuse it in the next `EditorInspector::update_tree()` call.

This is not suitable for doc information written by users in the script because it is easily changed.
2023-05-02 05:53:09 +08:00
kobewi 24224381ec Add proper snapping to tile polygon editor 2023-05-01 21:36:33 +02:00
VolTer 6b84e258d2 Use String.repeat() in more places 2023-05-01 02:27:46 +02:00
Juan Linietsky 1c93606e47 Add ValidatedCall to MethodBind
* This should optimize GDScript function calling _enormously_.
* It also should simplify the GDScript VM considerably.

NOTE: GDExtension calling performance has most likely been affected until going via ptrcall is fixed.
2023-04-30 20:01:26 +02:00
HolonProduction 7814dedc91 Preserve scene unique names when saving branch as scene. 2023-04-30 13:33:43 +02:00
Haoyu Qiu d24ee551ec Allow EditorInspector to change its property name style when necessary
Previously, an EditorInspector's property name can only be set from
outside. Inspectors used for settings needs to respond to changes in
editor settings. So a few boilerplate code is almost always needed,
including watching for a certain editor setting in `_notification()`.

This commit adds a `set_use_settings_style()` function to tell the
inspector to watch for editor settings changes on its own.
2023-04-29 10:51:00 +08:00
Tetane d3792a2373 Use a SubViewport for CanvasItem inspector preview 2023-04-28 22:43:47 +02:00
Rémi Verschelde e8f5d0f6e8
Merge pull request #76546 from KoBeWi/prevent_shape_editor_from_killing_Godot
Fix CollisionShape2D editor crash
2023-04-28 17:08:33 +02:00
Rémi Verschelde 012e2b7411
Merge pull request #76539 from anvilfolk/gddocsreg
Fix wrongly removing prefix when generating in-editor documentation
2023-04-28 17:08:05 +02:00
kobewi e5d0bb1605 Fix CollisionShape2D editor crash 2023-04-28 16:25:38 +02:00
ocean (they/them) 6f8113721d Fix wrongly removing prefix when generating in-editor documentation
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
2023-04-28 07:38:36 -04:00
Nong Van Tinh 3ebf2264aa Fixes Node arrays appear as Object arrays in the inspector 2023-04-28 14:27:10 +07:00
Tefatika 09460cfaaf
Command Palette search now also uses original English command names
Both localized and non localized names will be used while filtering

The highest score between the two will be picked when determining
the entries order
2023-04-28 02:22:20 +02:00
Rémi Verschelde b81387d6b7
Merge pull request #76513 from YuriSizov/editor-dont-run-too-fast
Avoid accessing the theme too early in EditorRunBar
2023-04-27 23:57:00 +02:00
Samuele Panzeri 4aaa2e6477 Fix wait for thread not started 2023-04-27 20:28:22 +02:00
Yuri Sizov de1a1dd43e Avoid accessing the theme too early in EditorRunBar 2023-04-27 18:49:16 +02:00
Rémi Verschelde 240ed28291
Merge pull request #76503 from RandomShaper/fix_args_print
Fix formatting function not used when printing run arguments
2023-04-27 16:56:58 +02:00
Rémi Verschelde 0fc3ba2ea7
Merge pull request #76499 from lyuma/fix_silhouette_fixer
import: Fix Silhouette used incorrect index.
2023-04-27 16:56:33 +02:00
Rémi Verschelde f43b39a7c0
Merge pull request #50671 from winston-yallow/improve-editor-spin-slider
Add editor setting for spin slider sensibility
2023-04-27 16:55:16 +02:00
Winston Yallow 277e261acf
Add editor setting for spin slider sensibility 2023-04-27 13:45:24 +02:00
Pedro J. Estébanez cc92ba0d44 Fix formatting function not used when printing run arguments 2023-04-27 13:44:19 +02:00
Lyuma d33a734ac5 import: Fix Silhouette used incorrect index.
Fixes bind pose mistake from using i (mesh skin index) instead of bone_idx (skeleton bone index).
Fixes #76448
2023-04-27 01:41:28 -07:00
Rémi Verschelde fc27bc0306
Merge pull request #76492 from KoBeWi/shaped_up_nicely
Improve reliability of 2D shape editor redrawing
2023-04-27 08:21:06 +02:00
Rémi Verschelde cedd3378f5
Merge pull request #69053 from KoBeWi/grabbercentrism
Add center_grabber theme property to Slider
2023-04-27 08:18:37 +02:00
kobewi d8e39912f8 Improve reliability of 2D shape editor redrawing 2023-04-27 02:44:14 +02:00
Yuri Sizov 26fb911f79
Merge pull request #72095 from anvilfolk/gd-docs
Improve GDScript documentation generation & behavior
2023-04-26 16:54:25 +02:00
Rémi Verschelde e2e870c611
Merge pull request #76378 from KoBeWi/fix_typed_array_export_2-fix_harder
Fix typed array export... again
2023-04-26 14:11:52 +02:00
Rémi Verschelde e1075e9c7c
Fix various typos with codespell
Also includes the grammar fix from #76206.

Co-authored-by: Peter Anderson <BWPanda@users.noreply.github.com>
2023-04-26 13:57:09 +02:00
Rémi Verschelde 8f7b09916d
Merge pull request #76026 from YuriSizov/editor-running-up-that-gui
Extract editor run toolbar into its own component
2023-04-26 12:15:29 +02:00
kobewi 36b4ed4fa4 Prompt to confirm anim track delete on node delete 2023-04-25 17:55:05 +02:00
Rémi Verschelde aa622dae53
Merge pull request #76431 from RandomShaper/fix_doc_help_cache
Improve reliability of editor docs cache
2023-04-25 14:44:17 +02:00
Pedro J. Estébanez e1ce0340b7 Improve reliability of editor docs cache 2023-04-25 11:40:56 +02:00
Yuri Sizov 0562decf34 Unexpose AnimationTrackEditPlugin as not implemented 2023-04-25 11:38:17 +02:00
Rémi Verschelde e54ebaf0eb
Merge pull request #76421 from timothyqiu/editor-dialog
Fix inconsistent file dialog settings usage
2023-04-25 10:01:06 +02:00
Rémi Verschelde 7b2d142808
Merge pull request #76084 from timothyqiu/nested-folders
Make create folder popup support nested folders
2023-04-25 09:59:31 +02:00
Rémi Verschelde 8cc1762398
Merge pull request #76105 from anvilfolk/tooltip
Fix @export variable tooltips not showing up in Inspector in scripts with inner classes
2023-04-25 09:59:06 +02:00
Rémi Verschelde be00dcd724
Merge pull request #73656 from TokageItLab/expose-3d-tracks
Expose interpolation methods for 3D track in `Animation` class
2023-04-25 09:57:52 +02:00
Rémi Verschelde 76d33d187f
Merge pull request #69698 from Daylily-Zeleen/daylily-zeleen/show_in_explorer
Implement and expose OS::shell_show_in_file_manager()
2023-04-25 09:57:27 +02:00
Daylily-Zeleen b12ced0a26 Implement and expose OS::shell_show_in_file_manager() 2023-04-25 11:29:32 +08:00
Haoyu Qiu 2ccc9e1456 Fix inconsistent file dialog settings usage
* Project Manager ignores display mode settings.
* EditorFileDialog's default display mode and show hidden files settings
  are not updated when corresponding editor settings change.
2023-04-25 09:11:57 +08:00
Silc Renew fac8a918f9 Expose interpolation methods for 3D track in Animation class 2023-04-25 01:45:14 +09:00
Rémi Verschelde 9098698d17
Merge pull request #76396 from Rindbee/fix_line_spacing_not_update_in_code_editor
Fix `line_spacing` in code editor will not take effect immediately on change
2023-04-24 16:48:48 +02:00
Rémi Verschelde 700ce30644
Merge pull request #76364 from timothyqiu/expansion
Fix layout list not resizing in editor layout dialog
2023-04-24 16:47:38 +02:00
Rémi Verschelde 5462006118
Merge pull request #76363 from timothyqiu/whats-undo-redo
Translate undo/redo messages in settings dialogs
2023-04-24 16:47:13 +02:00
Rémi Verschelde e36e0a61e2
Merge pull request #76352 from MewPurPur/add-physical-bone-icon
Add missing PhysicalBone2D icon
2023-04-24 16:46:48 +02:00
Rémi Verschelde 91bcfa8896
Merge pull request #76122 from spanzeri/fix_animation_snap_slider_crash
Fix editor spin slider remaining editable if set read_only during and edit and fix related animation player crash
2023-04-24 16:45:09 +02:00
Rémi Verschelde 13544fb508
Merge pull request #75759 from TokageItLab/reimplement-grouped-statemachine
Rework for nested `AnimationNodeStateMachine`
2023-04-24 16:44:21 +02:00
Rémi Verschelde dfee04ae2a
Merge pull request #74632 from davthedev/tabs-hover
Add theming support for hovered tabs
2023-04-24 16:42:38 +02:00
Rindbee 23d6225c1e Fix `line_spacing` in code editor will not take effect immediately on change
Previously, in CodeTextEditor, `line_spacing` was forgotten to update
when the editor setting property changed.
2023-04-24 17:11:38 +08:00
kobewi da8d6734fb Fix typed array export... again 2023-04-23 20:08:30 +02:00
Jakub Sygnowski 07258c3984 Store lock view rotation whether its on or off 2023-04-23 15:18:22 +01:00
Fredia Huya-Kouadio aa7a4d56f0 Make `EditorPropertyLayersGrid` responsive to touch taps 2023-04-23 07:09:51 -07:00
Haoyu Qiu 9f38a68a59 Make create folder popup support nested folders 2023-04-23 21:10:04 +08:00
Haoyu Qiu dfc628bc54 Fix layout list not resizing in editor layout dialog 2023-04-23 18:44:05 +08:00
Haoyu Qiu 997ff8f14a Translate undo/redo messages in settings dialogs 2023-04-23 17:49:55 +08:00
VolTer 048f94f662 Add missing PhysicalBone2D icon 2023-04-23 01:52:05 +02:00
Samuele Panzeri b6abb34759 Fix editor spin slider remaining editable if set read_only during an edit and fix related animation player crash 2023-04-22 18:34:36 +02:00
kobewi 14cb9b5b26 Add center_grabber property to Slider 2023-04-22 17:53:17 +02:00
clayjohn 48ebae7812 Validate renderer selection in project manager and change default renderer editor setting to expose an enum to users 2023-04-21 16:51:57 -07:00
ocean (they/them) 6783ff69c0 Improve and fix GDScript documentation generation & behavior
Removes documentation generation (docgen) from the GDScript compiler to
its own file. Adds support for GDScript enums and signal parameters and
quite a few other assorted fixes and improvements.
2023-04-21 10:17:30 -04:00
Rémi Verschelde 77fc22d6e2
Merge pull request #76290 from JohanAR/light_is_directional_spatial
Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders
2023-04-21 15:50:27 +02:00
Rémi Verschelde 1a6d198759
Merge pull request #76282 from smix8/node_3d_gizmo_split_4.x
Split Node3DGizmos into dedicated files
2023-04-21 15:50:02 +02:00
ocean (they/them) 4bfd539f99 Fix @export variable tooltips not showing up in Inspector when there is
an inner class
2023-04-21 08:39:47 -04:00
kobewi 15442b54a8 Fix EditorHelp failing to load 2023-04-21 01:25:47 +02:00
smix8 808af8e837 Split Node3DGizmos into dedicated files
Splits Node3DGizmos into dedicated files.
2023-04-20 20:12:47 +02:00
Rémi Verschelde 4abb7a6bac
Merge pull request #76288 from RedworkDE/net-glue-no-doccache
C#: Do not use DocCache when generating glue code
2023-04-20 18:09:10 +02:00
Rémi Verschelde 9a790024b6
Merge pull request #76269 from KoBeWi/let's_wrap_this_up
Add shortcut for quick-toggling word wrap
2023-04-20 18:08:22 +02:00
RedworkDE 692ad70fd7 C#: Do not use DocCache when generating glue code 2023-04-20 15:35:14 +02:00
Johan Aires Rastén 14a8124ffe Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders 2023-04-20 14:33:30 +02:00
Rémi Verschelde db13026370
i18n: Sync translations with Weblate
(cherry picked from commit 90b4ca2e50)
2023-04-20 13:27:43 +02:00
Rémi Verschelde 1f5811eb03
Merge pull request #76238 from Calinou/editor-inspector-tooltip-display-enum-descriptions
Display enum value descriptions in the editor inspector help tooltips
2023-04-20 12:42:30 +02:00
Rémi Verschelde 42d3ed2103
Merge pull request #74739 from davthedev/itemlist-hover
Add theming support for hovered ItemList items
2023-04-20 12:41:41 +02:00
kobewi ff310f0969 Add shortcut for quick-toggling word wrap 2023-04-19 23:46:22 +02:00
Hugo Locurcio 76c0a3fea0
Display enum value descriptions in the editor inspector help tooltips
This makes it possible to see what each value does without having
to open a documentation tab.

Some enum value names may be mismatched as the API doesn't always
match the property hint used in the editor.
2023-04-19 22:56:48 +02:00
Yuri Sizov 8a74d8438f Extract editor run toolbar into its own component
- Simplify and update its logic.
- Simplify EditorScript.
- Improve EditorNode and other relevant includes.
- Fix scene-based path in the movie writer when
reloading a scene.
2023-04-19 17:12:28 +02:00
Rémi Verschelde c01b11ec81
Merge pull request #76229 from KoBeWi/out_of_control
Remove wrong Ctrl from 2D editor tooltip
2023-04-19 10:13:52 +02:00
Rémi Verschelde 989fa49e71
Merge pull request #75219 from bruvzg/get_focus_screen
Add project manager / editor initial screen settings, implement `get_keyboard_focus_screen` method.
2023-04-19 10:13:44 +02:00
bruvzg 520a8d8ed2
Add project manager / editor initial screen settings, implement DisplayServer.get_keyboard_focus_screen method. 2023-04-19 08:54:53 +03:00
bruvzg 0088981c40
[Export] Add readable descriptions and validation warnings to the export options. 2023-04-19 08:35:59 +03:00
David Giardi 9f1e18e64c Add theming support for hovered tabs
Tabs can now be styled differently when hovered by the mouse pointer.
2023-04-19 01:38:09 +02:00
Rémi Verschelde 5bb46d6064
Merge pull request #76176 from YuriSizov/editor-extracted-interface-commencing
Decouple `EditorInterface` from `EditorPlugin`
2023-04-18 23:41:20 +02:00
Rémi Verschelde ecc219de46
Merge pull request #76136 from bruvzg/bitmap_odd_height
[Image Font] Fix fractional ascent for font with odd height.
2023-04-18 23:40:55 +02:00
Rémi Verschelde df0ad7502d
Merge pull request #76114 from ajreckof/prevent_packedArray_cast_to_array
Prevent nested packedArray from being casted to generic Arrays
2023-04-18 23:40:31 +02:00
David Giardi 142990d60a Add hovered item style to ItemList 2023-04-18 22:52:39 +02:00
kobewi 75f2d7f5c4 Remove wrong Ctrl from 2D editor tooltip 2023-04-18 22:43:50 +02:00
Dipal Zambare c4f31e3333 Add Close Docs item in script editor context menu 2023-04-18 16:42:54 +02:00
Yuri Sizov 9e6b680cfb
Merge pull request #74814 from kleonc/tilemap-fix-rendering-odd-sized-tiles
`TileMap` Fix rendering odd-sized tiles
2023-04-18 16:27:44 +02:00
Yuri Sizov 9882af4880
Merge pull request #76197 from dalexeev/fix-error-macro-misuses
Fix misuses of error macros
2023-04-18 16:11:37 +02:00
SaracenOne f1ba23e8bb Fix cleaning up inspector and history when deleting multiple nodes at once. 2023-04-18 14:06:17 +02:00
Silc Renew 991e6e90ba Rework StateMachine and nested StateMachine process
Breaking compatibility: If a StateMachineTransition is connected to a nested StateMachine prior to this, it is removed. Also, there was a feature to connect another StateMachine as the End of a StateMachine, which is also removed to avoid reference confusion. It was like a GoTo Statement, also further passing the same reference to the blending process, causing the blending calculation to break or causing some StateMachines to not work.
2023-04-18 19:06:51 +09:00
Danil Alexeev 36bedd341a
Fix misuses of error macros 2023-04-18 10:20:48 +03:00
kobewi f462efd7f1 Add missing LineEdit constants in editor theme 2023-04-17 22:55:27 +02:00
Yuri Sizov 49d7041d34 Decouple EditorInterface from EditorPlugin
- Simplify some includes in the process.
- Also exposes EditorInterface.movie_maker_enabled as a property.
2023-04-17 21:59:09 +02:00
Rémi Verschelde 96cc100246
Merge pull request #72895 from RedworkDE/editor-export-plugin-settings
Allow EditorExportPlugins to provide export options
2023-04-17 20:13:53 +02:00
Marius Hanl 1c271d00ae Fix pause_mode may not be converted correctly in .tscn files. 2023-04-17 19:53:50 +02:00
Yuri Sizov de416c5cbd
Merge pull request #74623 from MewPurPur/edit-text-with-style
Code style improvements to text_edit and related
2023-04-17 19:08:08 +02:00
bruvzg 41f7bb2025
[Image Font] Fix fractional ascent for font with odd height. 2023-04-16 18:42:45 +03:00
ajreckof 1557a37703 prevent nested packedArray from being casted to generic Arrays 2023-04-16 04:46:29 +02:00
Rémi Verschelde 37991a244b
Merge pull request #72855 from RandomShaper/cache_help
Cache classes editor help (a.k.a. faster editor startup)
2023-04-13 12:25:36 +02:00
Pedro J. Estébanez f5602869da Cache classes editor help 2023-04-13 12:16:47 +02:00
Pedro J. Estébanez 84183f89e6 Make EditorToaster's handler thread-safe 2023-04-13 12:10:56 +02:00
Rémi Verschelde 467b3e524a
Merge pull request #76011 from timothyqiu/track-i18n
Add i18n for track easing and baking dialogs
2023-04-13 09:57:29 +02:00
Rémi Verschelde 4cfa718579
Merge pull request #75997 from hakro/update-cursor-when-panning
Change cursor consistently when panning in the 2D Editor
2023-04-13 09:55:53 +02:00
Rémi Verschelde ee0e809064
Merge pull request #75315 from kleonc/obj-importer-fix-no-smoothing-handling
Fix OBJ mesh importer smoothing handling
2023-04-13 09:53:29 +02:00
Haoyu Qiu aa604ec435 Add i18n for track easing and baking dialogs 2023-04-13 13:06:55 +08:00
Hakim f4edbe6341 Change cursor consistently when panning in the 2D Editor 2023-04-12 19:47:43 +02:00
clayjohn 9be0a73294 Add EXPOSURE built in to spatial shaders
This allows users to restore light values to pre-pre-exposure amounts
2023-04-12 10:35:13 -07:00
kobewi a3799208c0 Rename console script to wrapper 2023-04-12 15:14:51 +02:00
Rémi Verschelde fb3e4e7967
Merge pull request #75975 from bruvzg/bidi_and_log_errors
Improve line BiDi handling, prevent crash on recursive log updates.
2023-04-12 13:28:12 +02:00
kobewi 20261016a7 Fix typed array export
Co-authored-by: Guilherme Sousa <guilherme.sousa1994@gmail.com>
2023-04-12 12:19:17 +02:00
bruvzg 282e4231c2
Improve line BiDi handling, prevent crash on recursive log updates. 2023-04-12 11:39:05 +03:00
Rémi Verschelde bba753db0d
Merge pull request #75938 from YuriSizov/editor-no-spammy-icons
Prevent errors in the Inspector when looking for script icons
2023-04-11 19:41:07 +02:00
Rémi Verschelde 12f2c753fe
Merge pull request #75923 from dalexeev/editor-rtl-selection-color
Editor Theme: Set `selection_color` property of `RichTextLabel`
2023-04-11 19:40:59 +02:00
Rémi Verschelde fff0ee0fc4
Merge pull request #75822 from YeldhamDev/no_multi_zero
Remove unnecessary zero multiplications
2023-04-11 19:40:40 +02:00
Rémi Verschelde c5d9470c7c
Merge pull request #75765 from YuriSizov/editor-node-optimize-includes
Improve includes of `EditorNode` (and everything else)
2023-04-11 19:40:24 +02:00
Rémi Verschelde 5722d6e3cc
Merge pull request #75451 from bruvzg/web_mac_keys
[Web] Detect host OS and use macOS keys on mac hosts.
2023-04-11 19:40:16 +02:00
Rémi Verschelde 347a8e20ae
Merge pull request #69324 from RedMser/advanced-settings-errors
Make it easier to solve warnings/errors referring to project settings
2023-04-11 19:39:53 +02:00
Yuri Sizov 5e6ce7826a Prevent errors in the Inspector when looking for script icons 2023-04-11 16:51:20 +02:00
Fabio Alessandrelli 4ab0b38940
Merge pull request #75850 from rsubtil/bugfix-lsp_dap_connection_poll
Poll LSP/DAP clients for connection status updates
2023-04-11 10:19:24 +02:00
bruvzg a5009f4d3c
[Web] Detect host OS and use macOS keys on mac hosts. 2023-04-11 10:58:54 +03:00
Danil Alexeev 306308d957
Editor Theme: Set `selection_color` property of `RichTextLabel` 2023-04-11 10:53:42 +03:00
Yuri Sizov a9e0226d80
Merge pull request #75780 from timothyqiu/log-sizes
Set font sizes for various styles in editor output panel
2023-04-10 20:14:59 +02:00
kobewi 71011e0855 Adjust size of some dialogs 2023-04-10 17:04:53 +02:00
Yuri Sizov 8d887158cb
Merge pull request #75844 from KoBeWi/shy_label
Fix method dialog label
2023-04-10 16:22:01 +02:00
Yuri Sizov 220953b625
Merge pull request #75814 from timothyqiu/connect-unicode
Fix connect signal dialog not allowing Unicode method name
2023-04-10 13:03:00 +02:00
Yuri Sizov 5243f5cece
Merge pull request #72152 from smix8/mcd_settings_4.x
Add Mesh ConvexDecompositionSettings wrapper
2023-04-10 12:52:23 +02:00
Yuri Sizov 271c5fad69
Merge pull request #75823 from YeldhamDev/this_was_a_thing_i_guess
Fix bottom of `LineEdit`s in the editor being rounded
2023-04-10 12:41:17 +02:00
kobewi aaf02ec04a Close built-in shaders when closing scene 2023-04-09 22:10:43 +02:00
Ricardo Subtil 4be4eeea3a Poll LSP/DAP clients for connection status updates 2023-04-09 12:36:01 +01:00
kobewi b0eadcfbce Initialize editor values on first launch 2023-04-09 09:52:18 +02:00
kobewi c399d4f26c Fix method dialog label 2023-04-09 09:45:27 +02:00
Ricardo Subtil b8ae1c218c Fix DAP path mismatch on Windows 2023-04-08 19:59:01 +01:00
VolTer f587a21899 Code style improvements to text_edit and related 2023-04-08 19:33:56 +02:00
Michael Alexsander 2ea4f8bc78 Fix bottom of `LineEdit`s in the editor being rounded 2023-04-08 09:50:17 -03:00
Michael Alexsander f057d755ab Remove unnecessary zero multiplications 2023-04-08 09:31:05 -03:00
Haoyu Qiu 936c9e83b4 Fix connect signal dialog not allowing Unicode method name 2023-04-08 16:31:25 +08:00
fuzzy@notepc c6a45f1031 Fix #75790, where creating Ceil(Vector2) node in Visual Shader Editor
crashes engine due to index out of bounds.
2023-04-08 13:30:11 +09:00
kobewi 680ed7f612 Make sure script cache is created after reimport 2023-04-07 23:34:58 +02:00
smix8 1549aeaef8 Add Mesh ConvexDecompositionSettings wrapper
Adds wrapper MeshConvexDecompositionSettings to control parameters for Mesh ConvexDecomposition operations.
2023-04-07 22:39:25 +02:00
RedworkDE 6963e84b58 Allow EditorExportPlugins to provide export options 2023-04-07 19:18:00 +02:00
Yuri Sizov 4154039832 Improve includes of EditorNode (and everything else)
Also start organizing editor-specific GUI components
into a dedicated folder, `editor/gui`.
Also move `editor_file_server` next to the rest of debugger classes.
2023-04-07 18:59:49 +02:00
Rémi Verschelde c151d3231f
Merge pull request #75760 from reduz/optimize-node-add-child-validation
Optimize Node::add_child validation
2023-04-07 18:20:28 +02:00
Haoyu Qiu 2c0db8222a Set font sizes for various styles in editor output panel 2023-04-07 20:01:55 +08:00
Yuri Sizov a13635cdf8
Merge pull request #70901 from timothyqiu/tree-scroll-offset
Add scrollbar offset theme constants to Tree
2023-04-07 13:24:01 +02:00
Juan Linietsky 223ce4fcb9 Optimize Node::add_child validation
Adding 10k nodes is almost twice as fast.
2023-04-07 13:18:47 +02:00
Yuri Sizov 920e8067f7
Merge pull request #68091 from AThousandShips/sprite_frames_order
Improve SpriteFrameEditor frame addition ordering
2023-04-07 13:13:41 +02:00
Haoyu Qiu 498d538578 Add scrollbar offset theme constants to Tree 2023-04-06 15:04:28 +08:00
Rémi Verschelde 49a196277f
Merge pull request #75661 from KoBeWi/no_resource_can_hide_from_the_all-seeing_popup
Add a list of all sub-resources used in the scene
2023-04-05 22:47:48 +02:00
kobewi 5a99304251 Add a list of all sub-resources used in the scene 2023-04-05 21:01:49 +02:00
Rémi Verschelde b8375071b0
Merge pull request #75636 from lyuma/advanced_importer_extract_textures_fix
gltf: Remove obsolete hack to embed gltf textures in advanced import
2023-04-05 12:03:27 +02:00
Rémi Verschelde 4f4b5a2785
Merge pull request #73475 from YuriSizov/theme-is-busy-plz-come-back-later
Add a warning when accessing theme prematurely and fix surfaced issues
2023-04-05 12:03:15 +02:00
Rémi Verschelde c3184c614b
Merge pull request #67466 from KoBeWi/proceed
Scene tab closing refactor
2023-04-05 12:03:00 +02:00
Yuri Sizov e11ae937d5
Merge pull request #75653 from YuriSizov/black-eyes-like-a-dolls-eyes
Prevent color conversion of the big Godot logo
2023-04-04 23:10:30 +02:00
Yuri Sizov ce741df43d Prevent color conversion of the big Godot logo
Use an off-white color from the palette that we explicitly don't convert.
2023-04-04 20:03:19 +02:00
Yuri Sizov fb6634248c
Merge pull request #75646 from YuriSizov/pm-my-exquisite-selection
Improve selection handling in the project manager
2023-04-04 19:54:09 +02:00
Yuri Sizov ada406f2f5
Merge pull request #75566 from Maran23/4-x-theme-values-affects-editor
Fix some theme values affect the editor by setting a default value for them
2023-04-04 17:30:30 +02:00
Yuri Sizov 632423f969 Improve selection handling in the project manager
Also clean up some unused methods and method names
2023-04-04 15:27:13 +02:00
Lyuma bd020b7d92 gltf: Remove obsolete hack to embed gltf textures in advanced import 2023-04-03 20:28:03 -07:00
Rémi Verschelde ef025711a6
i18n: Sync translations with Weblate
(cherry picked from commit 9099ac39cf)
2023-04-04 00:34:07 +02:00
kobewi ddc8567022 Scene tab closing refactor 2023-04-03 22:19:07 +02:00
Yuri Sizov 9b500ab53c Fix premature theme item access in editor tools 2023-04-03 18:01:11 +02:00
Rémi Verschelde 5fbbe3be0b
Merge pull request #75563 from KoBeWi/sanity
Improve editor state initialization
2023-04-03 17:09:56 +02:00
Rémi Verschelde 5c5f065325
Merge pull request #74729 from YuriSizov/project-manager-baked-with-love
Improve code structure, layout, and theming of the project manager
2023-04-03 17:09:09 +02:00
Rémi Verschelde aad0759cf6
Merge pull request #72777 from aaronfranke/importer-scene-scale-cleanup
Internal renames and cleanup in resource importer scene
2023-04-03 17:07:04 +02:00
kobewi 13c8a9890d Improve editor state initialization 2023-04-03 16:27:19 +02:00
Rémi Verschelde 41ed64ae1c
Merge pull request #75330 from KoBeWi/make_haste_with_copy_paste
Improve file move and copy operations
2023-04-03 16:02:45 +02:00
Rémi Verschelde 4779d4f695
Merge pull request #75298 from KoBeWi/supersonic_filesystem
Refresh filesystem when saving remote branch
2023-04-03 16:01:57 +02:00
Rémi Verschelde 632491f6da
Merge pull request #74682 from KoBeWi/snappy_snapping
Properly remember snapping options per-project
2023-04-03 16:01:07 +02:00
Rémi Verschelde e359eaf451
Merge pull request #74319 from jbuck3/script-file-menu
Re-enable script editor File menu shortcuts when the menu is hidden
2023-04-03 16:00:17 +02:00
Rémi Verschelde 7f332ec78c
Merge pull request #73249 from KoBeWi/image_for_your_inspector
Improve Image preview in the inspector
2023-04-03 15:59:26 +02:00
Yuri Sizov aeb4489e63
Merge pull request #75070 from jmb462/74802
Fix commenting collapsed function issue
2023-04-03 15:38:18 +02:00
Aaron Franke 2deb8fdd45
Internal renames and cleanup in resource importer scene 2023-04-02 20:59:32 -07:00
Rémi Verschelde 726c3c1bed
Merge pull request #75559 from ajreckof/Fix-descriptions-not-showing-for-theme-properties
Fix descriptions not showing for theme properties
2023-04-02 17:34:38 +02:00
Rémi Verschelde 11b7f552ca
Merge pull request #75523 from ronyeh/go-to-line
Fix off-by-one issue where "Go to Line" dialog shows the incorrect line number (one less than the actual current line).
2023-04-02 17:33:03 +02:00
Rémi Verschelde 3ca684dd9b
Merge pull request #75513 from smix8/navigation_3to4_converter_4.x
Add navigation renames to 3to4 converter
2023-04-02 17:32:35 +02:00
Marius Hanl c0905bc0af Fix some theme values affect the editor by setting a default value for the theme constant 'h_separation' for MenuBar and Button and a default value for the theme color 'background_color' for TextEdit 2023-04-01 16:28:28 +02:00
ajreckof 14140eb2d9 Fix descriptions not showing for theme properties 2023-04-01 13:56:55 +02:00
Yuri Sizov ee2cc347c6 Add support for icons in GDExtension classes
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-03-31 21:39:02 +02:00
Yuri Sizov 1522762dc9 Make icons of scripted and custom classes fit the editor UI
Also:
- Add an option to limit the icon size in PopupMenu.
This is similar to how this works in Tree and TreeItem.
- Add the same option to TabBar.
- Add a theme constant for Tree, PopupMenu, Button, and
TabBar to apply this limit on the control level.

Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
2023-03-31 21:39:02 +02:00
Yuri Sizov 9fae65404a Streamline class icon resolution in the editor 2023-03-31 21:17:59 +02:00
Ron B. Yeh 1e9fd10f68 Fix off-by-one issue where Go to Line dialog shows the incorrect line
number (one less than the actual current line).
2023-03-30 23:39:44 -07:00
Luke Priebe c39cae4dcf Prevent quoted arguments in editor/main_run_args from being split at spaces 2023-03-30 19:53:19 -05:00
smix8 0c1e585a1d Add navigation renames to 3to4 converter
Adds navigation renames to 3to4 converter.
2023-03-30 23:50:02 +02:00
Ninni Pipping 83d85048ea Improve SpriteFrameEditor frame addition ordering 2023-03-30 18:56:46 +02:00
Yuri Sizov d2c10575bb
Merge pull request #75426 from timothyqiu/auto-translate
Turn off auto translate for some editor controls
2023-03-30 18:30:32 +02:00
Yuri Sizov 2b49c38566
Merge pull request #75443 from akien-mga/threen-times-the-charm
Project converter: Remove Tween properties/signals from renames
2023-03-30 18:29:04 +02:00
kobewi 2fcfef15da Don't allow selecting nodes without owner 2023-03-30 16:52:22 +02:00
Rémi Verschelde 0171037e0a
Project converter: Remove Tween properties/signals from renames
The Tween class in Godot 3 is fully incompatible with Godot 4, there's no point
doing these renames. It also makes it harder to use Threen, my (currently WIP)
forward-port of the Godot 3 Tween to Godot 4.
2023-03-29 07:32:58 +02:00
Yuri Sizov 23394bebed
Merge pull request #75361 from kleonc/tile-set-atlas-merging-crash-fix
`TileSet` editor `AtlasMergingDialog` crash fix
2023-03-28 20:35:39 +02:00
kleonc c72b09639a TileSet editor AtlasMergingDialog crash fix 2023-03-28 20:07:26 +02:00
Haoyu Qiu 26553be424 Turn off auto translate for some editor controls
* Scene tab
* Animation name list in Animation panel
* Feature profile name list in Editor Feature Profile dialog
* Layout names in editor layout menu
* Subresource list in Inspector dock
* Resource type shown in EditorResourcePicker
* Enum dropdowns in inspectors: We'll eventually allow auto translating
  these after implementing a way to opt-out auto translation on a
  property-by-property basis and a way to extract enumerators.
2023-03-28 23:18:32 +08:00
Yuri Sizov f818d2b98f
Merge pull request #75141 from rcorre/rrc/dialog-pos 2023-03-28 10:54:37 +02:00
Haoyu Qiu 5a5fd33e42 More i18n improvements
* Make placeholder in editor layout dialog translatable.
* Make messages in scene import settings dialog translatable.
* Mark theme override property categories for translation.
2023-03-27 22:24:01 +08:00
Ryan Roden-Corrent 894ce41180
Apply clamp_to_embedder on parent resize and popup.
Fixes #75084.

The clamp_to_embedder setting was added in 8be16e0704,
but was not set on any of the in-editor dialogs.

This patch sets `clamp_to_embedder` on editor dialogs so they cannot be dragged out of the frame.
This also modifies `clamp_to_embedder` so a window is clamped to the bounds of an embedder when
it pops up and when the parent is resized.
2023-03-27 07:08:29 -04:00
Yuri Sizov b57f3c2e67
Merge pull request #75331 from KoBeWi/remove_removed_plugins
Remove disabled plugins from active plugins
2023-03-27 11:42:33 +02:00
Yuri Sizov ee68e4e29a
Merge pull request #75381 from timothyqiu/add-height
Make Add Scene button the same height as scene tabs
2023-03-27 11:22:20 +02:00
Haoyu Qiu 8ab11127bc Make Add Scene button the same height as scene tabs 2023-03-27 16:13:17 +08:00
Haoyu Qiu 66b325b728 Fix height of subresource button in Inspector 2023-03-27 15:12:23 +08:00
RedMser ed960453b7 Make solving project setting errors easier
Show full project setting path in error messages.
Force filtering for advanced settings if filter is not empty.
2023-03-27 08:10:35 +02:00
kobewi 0b8b37c35d Remove disabled plugins from active plugins 2023-03-25 21:12:47 +01:00
kobewi 4941d5f534 Improve file move and copy operations 2023-03-25 20:58:37 +01:00
Yuri Sizov 5922b2149e
Merge pull request #71868 from YeldhamDev/filediag_invalidate_deferred
Defer invalidation on FileDialog nodes
2023-03-25 19:48:42 +01:00
Yuri Sizov 08f79a894f
Merge pull request #75244 from nikitalita/nikitalita-patch-1
Fix `ResourceImporterLayeredTexture::import()` `high_quality` type
2023-03-25 19:47:40 +01:00
Jean-Michel Bernard 68ad3338ef Fix commenting collapsed function issue 2023-03-25 18:43:16 +01:00
nikitalita 68a6505f41 Fix ResourceImporterLayeredTexture::import() high_quality type 2023-03-25 10:27:15 -07:00
Michael Alexsander fc3d9d9d46 Defer invalidation on FileDialog nodes 2023-03-25 14:24:46 -03:00
kleonc e8900a2cac Fix OBJ mesh importer smoothing handling 2023-03-25 11:39:00 +01:00
kobewi f289e74966 Refresh filesystem when saving remote branch 2023-03-24 19:38:08 +01:00
Ninni Pipping ff127ba57e Fix trim when importing WAV 2023-03-23 16:19:20 +01:00
Ninni Pipping c04c69b903 Do not use editor setting for FileDialog hidden files 2023-03-22 16:27:06 +01:00
Hugo Locurcio f575ca09ae
Add property hints for debugger/profiler editor settings
This also adds descriptions for those settings.
2023-03-22 01:07:31 +01:00
bruvzg d72b563250
Add GDScript `to_wchar_buffer` and `get_string_from_wchar` functions. 2023-03-21 15:39:54 +02:00
Yuri Sizov 6e5713cc96
Merge pull request #74982 from kleonc/tile-map-editor-fix-preview-transforms
TileMapEditor Fix preview rendering and transform calculations
2023-03-20 16:26:40 +01:00
bruvzg 09465f3fe6
Remove (or make verbose only) various debug prints. 2023-03-20 08:14:18 +02:00
Rémi Verschelde 7752b52aa3
Merge pull request #74684 from clayjohn/export-tex
Delete unused compression formats from .import files when exporting
2023-03-19 00:06:04 -07:00
Markus Sauermann 8836f2160a Move call of `push_unhandled_input` from `Window` to `Viewport`
This solves the problem, that mouse events get sent to SubViewports
even if they are outside of the visible area of the SubViewport.

This changes makes SubViewportContainer::unhandled_input redundand.
Shortcut Events now need to be distributed via push_input, in order for
them to be able to reach SubViewports.
2023-03-17 19:22:24 +01:00
Yuri Sizov d418def752
Merge pull request #74564 from YuriSizov/inspector-is-simple-you-see-there-is-a-key-and-we-set-it-and-we-propagate-it-and-it-just-works
Update property keying state without a full Inspector rebuild
2023-03-16 17:42:31 +01:00
kleonc 224c66324b TileMapEditor Fix preview rendering and transform calculations 2023-03-16 14:52:38 +01:00
Yuri Sizov d4c3cc4146 Improve drawing and layout logic of the project list in the Project Manager 2023-03-16 12:36:27 +01:00
Yuri Sizov aa47427cc7 Improve theming support in the Project Manager 2023-03-16 12:36:26 +01:00
Yuri Sizov 10420f91ba Reorganize ProjectManager code to be more idiomatic 2023-03-16 12:36:26 +01:00
Yuri Sizov f2ea991792 Reorganize context menu in FileSystem dock to put more used options higher 2023-03-16 12:26:47 +01:00
Yuri Sizov ac2e82463c
Merge pull request #74114 from dalexeev/editor-help-enable-context-menu
Enable `RichTextLabel` context menu if selection is enabled
2023-03-16 12:19:05 +01:00
Yuri Sizov 1182b6eaaa
Merge pull request #74626 from KoBeWi/one_line_that_changes_the_fate
Select the newly duplicated file
2023-03-16 12:17:40 +01:00
Haoyu Qiu cb0fa0ed7b Fix error when opening Inspector's dots menu
When the inspector is empty, opening the "extra resource options" menu
produces a error:

> Condition "current_res.is_null()" is true.

Opening the mneu with no current resource is valid use case, so
`ERR_FAIL_COND` should not be used.
2023-03-16 15:06:57 +08:00
clayjohn 45a26ff292 Disallow creating a project in the Home or Documents folder
Also don't prompt users to delete the project folder for now.

This is a temporary fix to ensure that users do not delete their entire home folders by mistake
2023-03-15 16:38:30 -07:00
Ninni Pipping ad769903b0 Fix type check in AnimationTrackKeyEdit for methods 2023-03-15 19:32:27 +01:00
Yuri Sizov 0c30a43d13
Merge pull request #63130 from snailrhymer/copy-duplication-fix
Stop pasted child nodes being assigned an owner when previously unowned
2023-03-15 16:36:46 +01:00
Yuri Sizov eada333a0c
Merge pull request #67590 from cooperra/rename-node-undoredo-context-fix
Have the Rename Node action use the targeted Node for undo/redo context
2023-03-15 16:32:45 +01:00
Yuri Sizov f08ffdc372
Merge pull request #74869 from fahadshihab/master
Added drag and drop support for shader include files in shader editor
2023-03-15 16:17:50 +01:00
SnailRhymer 526d299623 Stop pasted child nodes being assigned an owner when previously unowned
Make copy and pasting match duplication's ownership transferral behavior by storing ownership information in the duplicated nodes on the node clipboard, then checking that information when setting owners for pasted nodes.
2023-03-15 16:12:51 +01:00
Robbie Cooper 907ba0d8f2 Have the Rename Node action use the targeted Node to determine the current undo/redo context
Formerly, we deduced context implicitly, but this failed and always used the global context instead of the context of the scene containing the Node.

This happened because the first argument to `add_do_method`, the SceneTreeEditor, is a descendant of Node and outside the current game scene's tree (it's part of the editor instead). This led the code in `EditorUndoRedoManager::get_history_id_for_object` to choose global context.

My solution is to explicitly use the renamed Node to deduce our context because it will always be in the current scene in this situation.

Fixes #67276
2023-03-15 16:03:30 +01:00
Yuri Sizov 3596443de1
Merge pull request #74727 from AThousandShips/project_settings
Exposing more project settings for documentation
2023-03-15 15:59:10 +01:00
Yuri Sizov 473116ce85
Merge pull request #74735 from KoBeWi/fav_template_place
Remember directory when installing templates file
2023-03-15 15:55:20 +01:00
Yuri Sizov 5dd52f47b1
Merge pull request #74795 from KoBeWi/MassNodeEdit
Fix MultiNodeEdit not cleared after deleting nodes
2023-03-15 15:39:13 +01:00
Yuri Sizov f9125e6cf1
Merge pull request #74660 from and-rad/shader-editor-trim-whitespace
Shader editor trims trailing whitespace if set in editor settings
2023-03-15 15:05:39 +01:00
Fahad Shihab e5601b517e Added drag and drop support for shaderinclude
Dragging and dropping now works for shader include file.
2023-03-15 19:24:35 +05:30
Yuri Sizov 3bd5ba3bfe
Merge pull request #74624 from Maran23/converter-theme-overrides
Add conversion for common Theme Overrides
2023-03-15 14:34:53 +01:00
Ninni Pipping bd30847e59 Exposing more project settings for documentation 2023-03-15 14:25:40 +01:00
Yuri Sizov f2eb40d8a4
Merge pull request #74858 from dalexeev/fix-input-event-dialog
Fix `InputEventConfigurationDialog` modifies original event
2023-03-15 13:32:17 +01:00
Yuri Sizov 2e509f426a
Merge pull request #74904 from YuriSizov/canvas-item-editor-undraw-redraw
Make the request to redraw when clearing guides a part of UndoRedo
2023-03-15 13:31:18 +01:00
Yuri Sizov d44d9b5e36
Merge pull request #74916 from Calinou/editor-add-bbcode-capitalization
Add "Bbcode" -> "BBCode" editor capitalization
2023-03-15 13:30:30 +01:00
Rémi Verschelde e5cc494fbf
i18n: Sync translations with Weblate
(cherry picked from commit d23922ffeb)
2023-03-15 02:31:09 +01:00
Hugo Locurcio 81858da2e6
Add "Bbcode" -> "BBCode" editor capitalization
This property name is used in RichTextLabel.
2023-03-14 17:47:36 +01:00
Yuri Sizov c5977064a3 Make the request to redraw when clearing guides a part of UndoRedo 2023-03-14 13:31:20 +01:00
Danil Alexeev 9fbf24fd5c
Fix `InputEventConfigurationDialog` modifies original event 2023-03-13 15:03:35 +03:00
John Veness 4505049ba6 Corrected capitalisation of macOS
In documentation and comments, ignoring thirdparty code
2023-03-12 16:48:52 +00:00
kleonc c49a7feae3 TileMap Fix rendering odd-sized tiles 2023-03-12 16:20:38 +01:00
kobewi fbffd686e2 Fix MultiNodeEdit not cleared after deleting nodes 2023-03-11 22:46:31 +01:00
Rémi Verschelde da955dbba9
Merge pull request #74734 from YuriSizov/debugger-i-see-your-true-colors
Make sure Script Debugger is updated with the editor theme
2023-03-10 22:48:42 +01:00
Yuri Sizov 68c18c0e2b Improve logic related to editing audio buses (and prevent crashes) 2023-03-10 22:24:18 +01:00
kobewi 551b6965ec Remember directory when installing templates file 2023-03-10 18:18:30 +01:00
Yuri Sizov 239eb31c90 Make sure Script Debugger is updated with the editor theme 2023-03-10 18:16:00 +01:00
Marius Hanl a40f559fe2 Add conversion for common Theme Overrides 2023-03-10 16:32:35 +01:00
Rémi Verschelde d8e242cba8
Merge pull request #74710 from yedpodtrzitko/yed/layers-clear-filter
Clear filter in Project Settings when opening Layer Names
2023-03-10 14:07:02 +01:00
Rémi Verschelde d9da625f85
Merge pull request #74693 from clayjohn/converter-xform
Add parentheses around arguments when converting xform
2023-03-10 14:05:51 +01:00
yedpodtrzitko e13bcf5b84 clear filter input in Project Settings when opening Layers 2023-03-10 20:18:37 +08:00
clayjohn 3ee5fbdb73 Add parentheses around arguments when converting xform 2023-03-09 15:04:04 -08:00
clayjohn dec86164e1 Delete unused compression formats from .imoprt files when exporting 2023-03-09 13:20:38 -08:00
kobewi 84a5a3d38e Select the newly duplicated file 2023-03-09 21:31:12 +01:00
Ninni Pipping 3de5332fcb Document `editor/naming/scene_name_casing` setting
Moved definitions of editor related project settings to `editor/register_editor_types.cpp` to make documentation work.
2023-03-09 21:17:49 +01:00
kobewi 45b47d5584 Properly remember snapping options per-project 2023-03-09 21:12:26 +01:00
Andreas Raddau 1566b402c1 Shader editor trims trailing whitespace if set in editor settings 2023-03-09 17:27:23 +01:00
Rémi Verschelde 11ad6a4889
Merge pull request #74637 from timothyqiu/pardon
Add missing TTRs in tiles editor and array inspector
2023-03-09 12:20:46 +01:00
Rémi Verschelde 009bdc587c
Merge pull request #74634 from Haydoggo/floating-dock-error-fix
Fix errors when closing floating docks
2023-03-09 12:20:22 +01:00
Rémi Verschelde c69ec6557c
Merge pull request #74615 from YuriSizov/editor-prevent-corruption-when-saving-resources
Prevent cache corruption when saving resources in the editor
2023-03-09 12:18:55 +01:00
Haoyu Qiu bef7f14885 Add missing TTRs in tiles editor and array inspector 2023-03-09 14:38:54 +08:00
Hayden Leete 21578e0bb4 Fix errors when closing floating docks
dock->get_index() on line 4463 was not behaving as expected
due to dock having an internal sibling, so now we just get the
index excluding internal nodes.

line 4742 would throw an error if you made multiple docks
floating then redocked the end docks first, but no longer
2023-03-09 17:00:50 +13:00
Yuri Sizov 496bd94c21 Prevent cache corruption when saving resources in the editor 2023-03-08 19:46:55 +01:00
Yuri Sizov 9b9bb418cb
Merge pull request #74591 from Haydoggo/floating-file-dock-crash-fix
fix crash when showing file in FileSytem dock
2023-03-08 15:04:00 +01:00
Rémi Verschelde bed6c1dc49
Merge pull request #74601 from rcorre/fix-local-transform
Don't unset local_coords on starting transform.
2023-03-08 14:08:08 +01:00
Ryan Roden-Corrent d3d1223b97
Don't unset local_coords on starting transform.
This fixes a bug introduced by 806425621c, where dragging the gizmo no longer respected local transforms.

I'm not sure why I called set_local_coords_enabled(false) in _compute_edit. Removing this line seems to fix gizmo-dragging local transforms, without breaking anything else.

I also noticed that confirming a transform leaves the gizmo axis lines on the screen. This is fixed by calling update_transform_gizmo after clearing the edit mode/instant flags, so update_transform_gizmo knows not to render any axes.
2023-03-08 07:13:37 -05:00
Haoyu Qiu ac7a4f6e87 Fix coloring of the renderer options button 2023-03-08 19:12:43 +08:00
Hayden Leete c4d1513e15 Fix crash when revealing file in floating FileSystem Dock
When selecting "Show in FileSystem" from the context menu of a resource
in the inspector, the engine would crash if the FileSystem dock was
floating because it was trying to focus the FileSystem tab, but floating
docks don't use Tab Containers. This commit makes the FileSystem dock's
window grab focus instead if it's floating.
2023-03-08 22:06:25 +13:00
Rémi Verschelde bf6b6b18f3
Merge pull request #74551 from YuriSizov/theme-abyss-looks-back-at-you
Generate empty textures for theme icons if the SVG module is disabled
2023-03-08 08:57:47 +01:00
Rémi Verschelde 540c8eb095
Merge pull request #74547 from YuriSizov/theme-wait-you-dropped-font-size
Add missing handler for removing font sizes in Themes
2023-03-08 08:57:24 +01:00
Rémi Verschelde 0f1480273b
Merge pull request #74524 from rcorre/3to4-renames
Add some missing renames to 3to4 tool.
2023-03-08 08:56:37 +01:00
Yuri Sizov f68eb4a967 Update property keying state without a full Inspector rebuild 2023-03-07 18:41:54 +01:00
Yuri Sizov 64215ad119 Generate empty textures for theme icons if the SVG module is disabled 2023-03-07 15:31:19 +01:00
Yuri Sizov 5a3dbea3ed Add missing handler for removing font sizes in Themes 2023-03-07 13:42:42 +01:00
Rémi Verschelde 4cdb3e3274
Merge pull request #74401 from stmSi/fix-search-results-cannot-goto-builtin-script-line
Fix `Find in Files` Search Results cannot open builtin script
2023-03-07 12:05:08 +01:00
Rémi Verschelde faf0be741a
Merge pull request #74068 from the-sink/guide_redraw
Redraw 2D viewport when guides are cleared
2023-03-07 12:04:48 +01:00
Rémi Verschelde c3c425c25f
Merge pull request #71156 from EricEzaM/71113-cancelling-node-selection-with-escape-breaks-shape-editing-undo
Fix cancelling selection (pressing escape) while gizmo editing making uncommitted changes.
2023-03-07 12:03:42 +01:00
Rémi Verschelde e404a7a8ee
Merge pull request #59443 from rcorre/blender-xform-local-space
Disable local space for blender transforms.
2023-03-07 12:00:17 +01:00
Rémi Verschelde ff58c41193
Merge pull request #74495 from hakro/fix-signal-pick-reload-builtin-methods
Reload built in script to get its methods on signal connection
2023-03-07 10:33:54 +01:00
Rémi Verschelde 281a5c9e35
Merge pull request #74213 from timothyqiu/friendly-pot
Improve POT Generation dialog
2023-03-07 10:33:06 +01:00
Rémi Verschelde 73f9fca1e8
Merge pull request #74515 from Maran23/converter-vector2-tangent-orthogonal
Add conversion for `Vector2` `tangent()` -> `orthogonal()`
2023-03-07 08:40:31 +01:00
Rémi Verschelde f36874e79d
Merge pull request #74513 from Maran23/converter-open-simplex-noise
Convert `OpenSimplexNoise` to `FastNoiseLite`
2023-03-07 08:40:07 +01:00
Rémi Verschelde b8126b18dc
Merge pull request #73429 from bruvzg/macos_no_sc
[macOS] Re-add support for the _sc_ inside app bundle.
2023-03-07 08:36:51 +01:00
Ryan Roden-Corrent 6b17c2b6e7
Add some missing renames to 3to4 tool.
MultiplayerPeerExtension isn't an exact replacement for
NetworkedMultiplayerCustom, but at least it gets you moving in the right direction.

Engine.editor_hint couldn't be fixed by the renames map, because you have to add a `()` at the end.
2023-03-06 18:53:55 -05:00
Marius Hanl da4ec87673 Add conversion for Vector2 method tangent() -> orthogonal()
For C# also: Perpendicular() -> Orthogonal()
2023-03-06 22:41:52 +01:00
Marius Hanl 862296273b Convert OpenSimplexNoise to FastNoiseLite
- class name and octaves property
2023-03-06 22:19:35 +01:00
stmSi f1f4c5b10b Fix `Find in Files` Search Results cannot open builtin script 2023-03-07 02:49:14 +06:30
Rémi Verschelde f17864eab0
Merge pull request #74482 from AThousandShips/property_selector_fix
Fix type icons in `PropertySelector`
2023-03-06 16:22:37 +01:00
Ninni Pipping ca86d53e7f Fix type icons in `PropertySelector`
And adding a check to prevent future issues.
2023-03-06 16:21:25 +01:00
Hakim 5aa8b9ee61 Reload built in script to get its methods on signal connection 2023-03-06 16:20:30 +01:00
Rémi Verschelde 9ae2f30afb
Merge pull request #74432 from rcorre/3to4-tool
Move tool declarations to top in 3to4.
2023-03-06 16:14:57 +01:00