Commit Graph

10770 Commits

Author SHA1 Message Date
ec8e91e3cd Fix editor crash in built-in help when script inheritance chain changes. 2022-05-17 08:50:32 -07:00
995bcd6218 Include quotes conditionally for dropped paths 2022-05-17 16:30:23 +02:00
5b02415fd0 Merge pull request #55134 from KoBeWi/script_pillow_or_something
Always soft-reload scripts
2022-05-17 15:09:09 +02:00
1d5e662766 Merge pull request #60708 from timothyqiu/drop-onready 2022-05-17 13:58:51 +02:00
3506825930 Merge pull request #61112 from Chaosus/graph_edit_delete_nodes_param 2022-05-17 13:10:04 +02:00
ccdd85d8e7 Merge pull request #61001 from derammo/derammo_popup_conditional_hide 2022-05-17 12:56:53 +02:00
c84d050980 Add node list param to GraphEdit::delete_nodes_request signal 2022-05-17 13:28:21 +03:00
41824c6cc8 Bind EditorFileSystem::reimport_files and improve docs
reimport_files offers a way for scripts to modify imported resources directly.
For example, images, sounds or glTF documents which are written by an external program.

It is much faster than `scan`, and can allow scripts to synchronously proceed after import finishes.
2022-05-17 00:45:48 -07:00
743fce6834 Merge pull request #59242 from Sauermann/fix-editor-select-toplevel
Fix that Top Level CanvasItems are unselectable in editor
2022-05-17 08:22:12 +02:00
3094e739f5 Create onready variables when dropping nodes and holding Ctrl 2022-05-17 11:51:22 +08:00
4cb74a5270 Fix that Top Level CanvasItems are unselectable in editor
Previously the parent Transform2D was included in the calculation
2022-05-17 01:36:28 +02:00
d79818acb6 Fix errors and improve UX relating to new animation libraries
- Fix a bug causing an error message when a scene containing an AnimationPlayer with a reset track is saved, by correctly referencing the temporary "default" library.
- Make library dropdown in new animation window assign correct library when creating an animation.
- Similarly allow choice of library when duplicating animation.
- Make library dropdown default to library of currently selected animation.
- Make library dropdown show when exactly one library exists, and it isn't [Global]. Include [Global] on the dropdown in this case (will be newly created if dialog is confirmed).
- When appending (x) to avoid New Anim name collisions, correctly check target library instead of [Global].
- Add parentheses when appending x when duplicating animations in the library editor, for consistency.
- Change titles and prompts to be distinct in name/rename/duplicate dialiogs.
- Fix bug in OprionButton.get_selectable_item(true) when last is not selectable.
- Fix issues where animation wasn't found on deletion/rename by correctly prepending library name.
- Remove an extraneous print_line from animation_track_editor.
- Add messages to errors when an animation isn't found.
2022-05-17 00:02:51 +01:00
f2accdb73d Merge pull request #60086 from fire-forge/editorspinslider-hide-slider 2022-05-16 15:02:09 +02:00
b154f445d5 Merge pull request #60507 from bruvzg/textmesh
Implement TextMesh.
2022-05-16 13:52:57 +02:00
df2de05c5f Merge pull request #60463 from Geometror/improve-vs-1 2022-05-16 13:50:42 +02:00
7b571ab8f7 Merge pull request #60986 from fire-forge/capitalism 2022-05-16 13:49:14 +02:00
388988d341 Merge pull request #61068 from Calinou/editor-gpuparticles3d-tweak-attractor-gizmo 2022-05-16 13:48:54 +02:00
75e4d24ace Merge pull request #61071 from timothyqiu/leading-stylebox 2022-05-16 13:47:39 +02:00
4b013a9c96 Fix crash when editing pinned StyleBox 2022-05-16 17:33:24 +08:00
746dddc067 Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case.
* Replaced by the new HashMap.
* Renamed Map to RBMap and Set to RBSet for cases that still make sense
  (order matters) but use is discouraged.

There were very few cases where replacing by HashMap was undesired because
keeping the key order was intended.
I tried to keep those (as RBMap) as much as possible, but might have missed
some. Review appreciated!
2022-05-16 10:37:48 +02:00
d329229ad6 Use a different color for GPUParticlesAttractor3D editor gizmos
This makes attractor gizmos (orange) distinguishable from
collision gizmos (blue).
2022-05-16 01:45:12 +02:00
6d5d9dd82a Merge pull request #61016 from macjuul/mono-script-editor-fix
Fix script editor opening when external editor is configured for C#
2022-05-14 09:19:32 +02:00
77f23a3023 Fix script editor opening when external editor is configured 2022-05-14 01:27:01 +02:00
47d0dc8a41 popup deferred hide suppressed if reopened
popup no longer tries to close itself a second time
popup no longer closes after having been reopened
fixed bug in RenameDialog not calling base (by inspection)
fixes #59181
fixes #60921
reverts #59287
2022-05-13 09:30:00 -04:00
a73b0f165e Fix some bugs in the advanced scene import
- Start with the scene item selected, instead of showing an invalid view
- Don't crash when selecting unnamed materials.
2022-05-13 13:57:04 +02:00
eb80a9f325 Merge pull request #60978 from fire-forge/shader-caps
Capitalize AO, AA, UV, and UV2 in visual shader output ports
2022-05-13 09:31:56 +03:00
584a646f50 Capitalize output port names in visual shader 2022-05-13 00:53:09 -05:00
05963674a7 Implement TextMesh resource.
Apply simulated slant and embolden to the TextServer `gont_get_glyph_contours` results.
2022-05-13 08:20:22 +03:00
2f47a0747c Merge pull request #59498 from adamscott/add-custom-type-check-before-hiding-type
[Fix #58248] Add custom type check before hiding type
2022-05-12 23:58:52 +02:00
b32fec988f Merge pull request #60539 from snailrhymer/class-desc-select-fix
Fix _class_desc_select to handle Variant.Type
2022-05-12 23:16:28 +02:00
f263e3ac81 Merge pull request #60954 from V-Sekai/fix_ownership_of_created_nodes 2022-05-12 23:11:00 +02:00
88a8038387 Capitalize/fix some property enum hints 2022-05-12 15:03:16 -05:00
ff30a09993 Merge pull request #60643 from clayjohn/GLES3-3D 2022-05-12 21:08:02 +02:00
652adcd5bf Basic 3D rendering 2022-05-12 10:37:27 -07:00
d04a431b9b Fix _class_desc_select to handle Variant.Type
Change the order of checks in _class_desc_select to first try checking current page and GlobalScope
before resorting to slicing either side of ".".

Bug was caused by assumption that no enums or constants in @GlobalScope would contain ".". This is still
assumed elsewhere in the file, so bugs may persist.

Format some comments.
2022-05-12 16:09:00 +01:00
a38aafca3e Merge pull request #60970 from Chaosus/gds_fix_signal_completion 2022-05-12 16:36:40 +02:00
379ebe304a Show list of groups in node tooltip 2022-05-12 15:46:16 +02:00
a439832035 Fix signal completion in GDScript editor 2022-05-12 16:10:48 +03:00
8b7c7f5a75 Add a new HashMap implementation
Adds a new, cleaned up, HashMap implementation.

* Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing).
* Keeps elements in a double linked list for simpler, ordered, iteration.
* Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much
  for performance vs keeping the key, but helps replace old code).
* Uses a more modern C++ iterator API, deprecates the old one.
* Supports custom allocator (in case there is a wish to use a paged one).

This class aims to unify all the associative template usage and replace it by this one:
* Map<> (whereas key order does not matter, which is 99% of cases)
* HashMap<>
* OrderedHashMap<>
* OAHashMap<>
2022-05-12 11:21:29 +02:00
ce99de32b8 Fix ownership of nodes created by the MeshInstance3DEditorPlugin
and Skeleton3DEditorPlugin when used on foreign nodes.
Make gizmos visible upon creation rather than having to select
them first.
Make UV2 unwrapping and PhysicalBone creation properly subject
to UndoRedo.
2022-05-11 22:03:07 +01:00
d36c5514d3 Fix ZipIO crash when reused (and possible leaks). 2022-05-11 16:08:17 +03:00
cc3ed63af6 Merge pull request #60923 from aaronfranke/fix-pm-features 2022-05-10 18:20:34 +02:00
b1ea83451a Fix display of unsupported project features in the project manager 2022-05-10 08:25:22 -05:00
b95042a3aa Merge pull request #58071 from Calinou/lightmapgi-tweak-default-texel-size
Increase the default texel size for lightmap baking
2022-05-10 15:16:08 +02:00
81520be31d Cleanups after changes in ItemList signals 2022-05-10 13:26:16 +03:00
ccb583be09 Merge pull request #60865 from KoBeWi/plugin_maker_3000
Improve plugin dialog UX
2022-05-10 08:30:10 +02:00
a12fe31e1f Merge pull request #60873 from KoBeWi/ded 2022-05-09 22:47:44 +02:00
a8bbe570ca Rename hint_albedo, hint_white/black in shaders 2022-05-09 22:50:18 +03:00
033e211724 Merge pull request #60845 from Chaosus/vs_color_func 2022-05-09 21:34:34 +03:00
b5cb4ea067 Merge pull request #60844 from Chaosus/vs_vec4 2022-05-09 21:34:13 +03:00