Commit graph

72109 commits

Author SHA1 Message Date
Thomas ten Cate
93d342b745 Allow dragging items onto array property editor Add Element button
Instead of having to first click the button, then drag the item into the
new slot, this allows just dragging the item onto the button directly.
The button is highlighted as a valid drop target to signal this.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
b557840af5 Allow dragging resources (not just files) onto array property editor
The most common scenario is dragging a file from the filesystem dock,
which drags it as type "file", not "resource". This already worked. This
change also makes it possible to drag a resource from another property
editor.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
11b3900a0e Allow dragging custom node types onto array property editor
For example, an Array[MyScript] property now accepts any node with the
script MyScript on it. This works for Node and NodePath arrays alike,
and also with the @export_node_path annotation.
2025-03-08 19:28:05 +01:00
Thomas ten Cate
0c46089d1b Allow dragging custom resources onto array property editor
This duplicates some of the logic in EditorResourcePicker, but that's
unavoidable: EditorResourcePicker works on a single, loaded resource,
whereas we'd like this to be efficient and not need to load all
(potentially many) dragged resources. Instead, we use the
EditorFileSystem cache to get the information we need.

Note that EditorResourcePicker also supports some automatic conversions,
such as from Shader to ShaderMaterial. This change does not attempt to
make that work for arrays as well.
2025-03-08 19:27:51 +01:00
Thomas ten Cate
cd8eaaa07b Fix resource property editor incorrectly accepting script files
See discussion on #102534. Before this fix, it was possible to drag a
file `CustomResource.gd` with `class_name CustomResource` onto a
property of type `CustomResource`. Of course, the intention is that only
`Resource`s with the `CustomResource` script attached are accepted.

(Actually accepting the script, but creating a resource from it
automatically, is left as a future improvement.)
2025-03-08 19:24:33 +01:00
Thomas ten Cate
36c1b019fa Highlight Node and NodePath properties as valid drop targets
This was already done for Resource properties; this just makes things
consistent.
2025-03-08 19:24:33 +01:00
Thaddeus Crews
b5bdb88062
Merge pull request #102298 from Repiteo/style/pragma-once
Replace header guards style with `#pragma once`
2025-03-07 17:37:04 -06:00
Thaddeus Crews
1e22a194bd
Ignore #pragma once commit 2025-03-07 17:34:15 -06:00
Thaddeus Crews
324512e11c
Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
Thaddeus Crews
96fdaa616b
Style: Integrate #pragma once in builders/checks 2025-03-07 17:32:33 -06:00
Thaddeus Crews
7459a0361d
Merge pull request #103177 from Murrent/shader_default_at_top
Allow `default` case at the top of a switch scope in shaders
2025-03-07 15:12:55 -06:00
Thaddeus Crews
67d4a245d8
Merge pull request #103267 from YeldhamDev/reality_got_too_extended
Allow to compile the engine without XR support
2025-03-07 15:12:54 -06:00
Thaddeus Crews
a5dbf3bd49
Merge pull request #103199 from raulsntos/gdextension/version+status
GDExtension: Add `status` to `get_godot_version`
2025-03-07 15:12:53 -06:00
Thaddeus Crews
c8ce6e7b51
Merge pull request #101776 from Ratstail91/master
Specify `max_slides` must be greater than 0
2025-03-07 15:12:51 -06:00
Thaddeus Crews
850599c36d
Merge pull request #98153 from Delsin-Yu/dotnet-warn-missing-tool-preprocessor
[Editor] Prevent `TOOLS` .Net DefineConstants being overriden by the user
2025-03-07 15:12:49 -06:00
Thaddeus Crews
f8ca861e25
Merge pull request #103137 from dsnopek/extension-api-precision
GDExtension: Include precision in `extension_api.json`
2025-03-07 15:12:47 -06:00
Thaddeus Crews
3d9b37911d
Merge pull request #103011 from Repiteo/style/svgo-newline
Style: Ensure svgs have trailing newlines
2025-03-07 15:12:41 -06:00
Thaddeus Crews
77022096ef
Merge pull request #102451 from ryevdokimov/add-fail-cond-msg-reparent-self
Add `ERR_FAIL_COND_MSG` for reparenting to self
2025-03-07 15:12:35 -06:00
Thaddeus Crews
3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
Thaddeus Crews
0c8f4f3d91
Merge pull request #97908 from atlasapplications/just-linux-bionic
Add `linux-bionic` RID export option
2025-03-07 15:12:32 -06:00
Thaddeus Crews
bb8ef4e052
Merge pull request #101878 from Chubercik/automate_char_range
Core: Automate generation of the `char_range.inc` file
2025-03-07 15:12:31 -06:00
Thaddeus Crews
0c6efe572e
Merge pull request #79599 from Calinou/add-license-notices-gui
Add built-in GUI to display license notices
2025-03-07 15:12:29 -06:00
Thaddeus Crews
1237536364
Merge pull request #102630 from KoBeWi/what_the_loop
Improve `_is_drop_valid()` code in EditorPropertyArray
2025-03-07 15:12:28 -06:00
Thaddeus Crews
47761b1bbe
Merge pull request #81503 from matorin57/font-tests
Add getter tests for dynamic fonts
2025-03-07 15:12:27 -06:00
Thaddeus Crews
c937b6d180
Merge pull request #102419 from Ivorforce/std-size
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-03-07 15:12:25 -06:00
Thaddeus Crews
30221571f2
Merge pull request #99094 from KoBeWi/preload_dct2slt82u81fo8dkxkak5o57
Drop preload Resources as UID
2025-03-07 15:12:24 -06:00
Thaddeus Crews
76952ba0a1
Merge pull request #90034 from KoBeWi/only_save_when_save
Don't save unnecessarily with `save_before_running`
2025-03-07 15:12:22 -06:00
Thaddeus Crews
c67951b84b
Merge pull request #103089 from Chubercik/ci/bump-ruff-mypy
Update CI `ruff` & `mypy` pre-commit hooks
2025-03-07 15:12:21 -06:00
Thaddeus Crews
d9125ebebe
Merge pull request #101293 from Ivorforce/string-to-pointer-conversion
Remove implicit conversions from `String`, `Char16String` and `CharString` to data pointers.
2025-03-07 15:12:12 -06:00
Thaddeus Crews
9e7fbdf52b
Merge pull request #103663 from pafuent/fixing_errors_warnings_output_on_tests
Fix `SCRIPT ERROR/ERROR/WARNING` on test output
2025-03-07 15:12:11 -06:00
Thaddeus Crews
dadfcd1ff2
Merge pull request #95776 from Calinou/crash-handler-linuxbsd-simplify-file-path
Simplify the printed file paths in the Linux/*BSD crash handler
2025-03-07 15:12:10 -06:00
kobewi
c1b08dda36 Don't save unnecessarily with save_before_running 2025-03-07 19:14:50 +01:00
Thaddeus Crews
6b4fda04c9
Merge pull request #89442 from KoBeWi/internal_duplicaten't
Don't duplicate internal nodes
2025-03-07 12:06:36 -06:00
Thaddeus Crews
9c07d31fbb
Merge pull request #101618 from aaronfranke/var-parser-neg-ident
VariantParser: Fix reading negated identifiers, replace `inf_neg` with `-inf`
2025-03-07 12:06:35 -06:00
Thaddeus Crews
e0a040c0d3
Merge pull request #101319 from JulianHeuser/region_syntax_highlighting_fix
Improve consistency of code regions
2025-03-07 12:06:34 -06:00
Thaddeus Crews
5788e436d3
Merge pull request #95049 from Grublady/mac_system_color
Use windowBackgroundColor instead of controlColor for macOS system base color
2025-03-07 12:06:33 -06:00
Thaddeus Crews
5e48f26e7f
Merge pull request #103580 from yangyey/bugfixing
Add space for BBCode Ordered Lists
2025-03-07 12:06:32 -06:00
Thaddeus Crews
c2311a820c
Merge pull request #103270 from Giganzo/item-list-cursor
Fix invisible ItemList cursor in editor theme
2025-03-07 12:06:30 -06:00
Thaddeus Crews
cf68b5f6eb
Merge pull request #103670 from dugramen/inspector-section-hover
Redraw inspector section when cursor enters and exits header to update hover state
2025-03-07 12:06:29 -06:00
Thaddeus Crews
286c2287f7
Merge pull request #103733 from dsnopek/javaclasswrapper-dictionaries
JavaClassWrapper: Fix conversion to/from `org.godotengine.godot.Dictionary` that regressed
2025-03-07 12:06:28 -06:00
Thaddeus Crews
6ab1472fc7
Merge pull request #103730 from darksylinc/matias-vma-regression
Fix incorrect parameters passed to VMA
2025-03-07 12:06:27 -06:00
Thaddeus Crews
c159adb209
Merge pull request #103756 from timothyqiu/vs-translations
Fix some i18n issues in visual shader editor
2025-03-07 12:06:26 -06:00
Thaddeus Crews
e92b0c932e
Merge pull request #103649 from dugramen/inspector-usage-array-popup-position
Fix popup location for `PROPERTY_USAGE_ARRAY` inspector items
2025-03-07 12:06:25 -06:00
Jakub Marcowski
f21364020c
Update CI ruff & mypy pre-commit hooks 2025-03-07 17:27:47 +01:00
kobewi
92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
A Thousand Ships
5113022dfe
Clean up some uses of String::substr
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Haoyu Qiu
ef4636ac59 Fix some i18n issues in visual shader editor 2025-03-07 18:39:45 +08:00
David Snopek
f52b2e4db4 JavaClassWrapper: Fix conversion to/from org.godotengine.godot.Dictionary that regressed 2025-03-06 17:35:01 -06:00
Matias N. Goldberg
c543c5615c Fix incorrect parameters passed to VMA
If the allocation is small enough that it enters the

if (p_size <= SMALL_ALLOCATION_MAX_SIZE) {} block, Godot would call
vmaFindMemoryTypeIndexForBufferInfo with the wrong parameters.

This can cause vmaFindMemoryTypeIndexForBufferInfo to potentially
misbehave on some cards or drivers.

Fixes regression introduced in #102830
Might potentially reopen #101850 (I doubt it, but it's possible)

Must be backported to 4.4
2025-03-06 19:56:52 -03:00
Thaddeus Crews
f2cc3f1275
Merge pull request #103636 from kleonc/gui_tooltip_use_viewport_default_texture_filter
Use `Viewport`'s default texture filter/repeat in GUI tooltips
2025-03-06 16:36:30 -06:00