Commit Graph

13516 Commits

Author SHA1 Message Date
Rémi Verschelde e33e98a26f Style: Apply clang-format grouping rules 2026-03-17 20:11:01 +01:00
Rémi Verschelde 7795057e4b Misc includes or modernize fixes found via clangd-tidy 2026-03-16 21:38:26 +01:00
Thaddeus Crews 642f14b5bb Merge pull request #117402 from akien-mga/clangd-unused-includes-modules
Remove unused includes in `modules` with clangd-tidy
2026-03-16 11:33:07 -05:00
Thaddeus Crews 31a8c0904c Merge pull request #117378 from YeldhamDev/grid_map_zoom_fix
Fix mouse wheel zoom scrolling contents in the `GridMap` editor
2026-03-16 11:33:02 -05:00
Rémi Verschelde 7a99a2c782 Jolt: Use angled brackets for thirdparty includes
That's how we usually include thirdparty code, and it solves warnings
from clangd/IWYU about some Jolt headers (notably `Jolt/Jolt.h`) not being
used directly but as proxies to transitive includes.
2026-03-16 16:40:40 +01:00
Rémi Verschelde 6d309c858e Remove unused includes in modules with clangd-tidy 2026-03-16 16:40:39 +01:00
Rémi Verschelde 6e07a6c3c9 Merge pull request #117442 from Ivorforce/classdb-dedup-name
De-duplicate name and inherits `StringName` properties from `ClassDB::ClassInfo`, in favour of `GDType`
2026-03-16 12:08:25 +01:00
Rémi Verschelde 5631c0ae87 Merge pull request #116899 from dalexeev/gds-deprecate-type-exists
GDScript: Deprecate `type_exists()` global function
2026-03-16 12:08:13 +01:00
Rémi Verschelde 872b5a52df Merge pull request #115674 from akien-mga/jpeg-reject-CMYK-YCCK
jpg: Explicitly reject unsupported CMYK and YCCK colorspaces
2026-03-16 12:08:04 +01:00
Lukas Tenbrink 67f63addc1 De-duplicate name and inherits StringName properties from ClassDB::ClassInfo, in favour of GDType. 2026-03-15 16:57:10 +01:00
Michael Alexsander 96edb55fcd Fix mouse wheel zoom scrolling contents in the GridMap editor 2026-03-15 12:26:36 -03:00
Danil Alexeev 65a7cab928 GDScript: Deprecate type_exists() global function 2026-03-15 12:26:47 +03:00
Rémi Verschelde d9b81615e5 Remove unused includes in platform with clangd-tidy
Handled Linux, Windows, Android, and (partially) Web.
2026-03-14 22:37:05 +01:00
Rémi Verschelde 8415bd7105 Merge pull request #116589 from Sysex89/blend_import
Blender attempts should be incremented to avoid endless loop
2026-03-14 12:15:54 +01:00
Rémi Verschelde 422be7031a Merge pull request #113586 from Ivorforce/gdtype-noms-enums
Move enum registration from `ClassDB` / `ClassInfo` to `GDType`.
2026-03-14 12:15:44 +01:00
Lukas Tenbrink efcc97ee8a Move enum registration from ClassDB / ClassInfo to GDType.
Create caches across supertypes for faster lookup.
2026-03-13 19:20:30 +01:00
kobewi 9a0c0bf757 Remove redundant _has_main_screen() overrides 2026-03-13 13:10:09 +01:00
Thaddeus Crews fcb7c06646 Merge pull request #109680 from ryevdokimov/preserve-children-transform
Add ability to transform parent nodes without affecting global transform of its children
2026-03-12 09:03:36 -05:00
Thaddeus Crews 4e34c6ea63 Merge pull request #117053 from dalexeev/gds-fix-coroutine-stack-clearing
GDScript: Fix and simplify coroutine stack clearing
2026-03-12 09:03:27 -05:00
Rémi Verschelde e015e8bde4 Remove unused includes in core with clangd-tidy 2026-03-11 06:41:36 +01:00
Thaddeus Crews 563654353d Merge pull request #110778 from BastiaanOlij/openxr_khr_generic_controller
OpenXR: Add support for `XR_KHR_generic_controller`
2026-03-10 20:04:40 -05:00
Thaddeus Crews ca77be8d0a Merge pull request #117286 from akien-mga/clangd-unused-includes-scene
Remove unused includes in `scene` with clangd-tidy
2026-03-10 14:11:08 -05:00
Thaddeus Crews 3837993f05 Merge pull request #117194 from jrouwe/heightfield_precision
Increase maximum value of `HeightFieldShape::mBitsPerSample` to 16 to allow for better precision
2026-03-10 14:11:06 -05:00
Rémi Verschelde 8028b65442 Remove unused includes in scene with clangd-tidy 2026-03-10 16:40:00 +01:00
Yyf2333 282e4544b0 Split VariantCaster from binder_common.h 2026-03-10 17:59:33 +08:00
Rémi Verschelde 1d5e34ed7b Merge pull request #114596 from bruvzg/ac_019
Update AccessKit to 0.21.1
2026-03-10 10:29:16 +01:00
Bastiaan Olij 87eafe20ae OpenXR: Add support for XR_KHR_generic_controller 2026-03-10 12:32:10 +11:00
Thaddeus Crews c78eac252e Merge pull request #117172 from dalexeev/gds-fix-return-type-check-inferred
GDScript: Fix return type checking for inferred function type
2026-03-09 15:18:14 -05:00
Pāvels Nadtočajevs 2bc2e93e88 Update AccessKit to 0.21.1 2026-03-09 20:39:42 +02:00
Jorrit Rouwe ff59dd6d5a Increased maximum value of HeightFieldShape::mBitsPerSample to 16 to allow for better precision
Made tolerance that's used in the internal edge removal algorithm configurable in CollideShapeSettings and PhysicsSettings
2026-03-09 12:59:20 +01:00
Rémi Verschelde 4bee1639b2 Merge pull request #116789 from aaronfranke/gltf-duplicate-doc-ext
GLTF: Duplicate extensions at the start of the import and export process
2026-03-09 11:49:25 +01:00
Aaron Franke f20517380d GLTF: Duplicate extensions at the start of the import and export process 2026-03-07 14:04:04 -08:00
Robert Yevdokimov e8e3cf1fdb Add ability to transform parent nodes without affecting global transform of its children
Revert
2026-03-07 09:23:50 -05:00
Danil Alexeev 566d86d081 GDScript: Fix return type checking for inferred function type 2026-03-07 12:52:31 +03:00
Silc Lizard (Tokage) Renew 73d041dd98 Optimize Animation Resource, Library, Mixer, Player
Co-Authored-By: Silc Lizard (Tokage) Renew <tokage.it.lab@gmail.com>
2026-03-06 16:35:21 -05:00
Thaddeus Crews 83f396d0dd Merge pull request #116973 from YeldhamDev/we_need_coordination
Add cursor coordinates to the `GridMap` editor
2026-03-06 12:40:33 -06:00
Thaddeus Crews 363de27105 Merge pull request #116814 from YeldhamDev/gridmap_selection_paste_fixes
Fix problems with undoing selection and pasting in `GridMap` editor
2026-03-06 12:40:31 -06:00
Thaddeus Crews cac8aad359 Merge pull request #116685 from YeldhamDev/gridmap_reset_button
Add button to clear rotation in the `GridMap` editor
2026-03-06 12:40:29 -06:00
Thaddeus Crews 42c771d160 Merge pull request #115957 from YeldhamDev/cursor_manipulator
Add `View3DController` for editor 3D view manipulation
2026-03-06 12:40:06 -06:00
kit 1800c4782f Fix no GDScript build fails due to no class_db.h 2026-03-05 16:46:23 -05:00
Michael Alexsander 27c86165f7 Add View3DController for editor 3D view manipulation 2026-03-05 12:51:48 -03:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Rémi Verschelde 18edfa5245 Explicitly include scene_tree.h where used
Pre-requisite before removing `scene_tree.h` from `node.h`
which has cascading consequences on most of the codebase.
2026-03-05 10:43:25 +01:00
Thaddeus Crews fe6f78a4c7 Merge pull request #117036 from YeldhamDev/tile_grid_focus_out
Stop drag actions in the `TileMapLayer` and `GridMap` editors when focus is lost
2026-03-04 21:03:51 -06:00
StarryWorm 3cb2d376f8 Get rid of all unnecessary class_db.h includers 2026-03-04 17:40:05 -05:00
Thaddeus Crews c53c5a1f49 Merge pull request #116565 from YeldhamDev/you_unspin_me_round_round
Make possible to undo rotation of selected `GridMap` cells.
2026-03-04 14:32:42 -06:00
Thaddeus Crews 0aacb28576 Merge pull request #116900 from IceflowRE/translation_1
Add add_submenu_node_item to POT generation
2026-03-04 14:32:39 -06:00
Thaddeus Crews 5134bdb39e Merge pull request #115842 from Arbee4ever/lsp-log-startup-errors
LSP: log startup Errors
2026-03-04 14:32:35 -06:00
Thaddeus Crews 66a96d92c6 Merge pull request #116749 from Jesusemora/testing-changes
Add automatic smoothing for CSG nodes
2026-03-04 14:32:27 -06:00
Jesusemora 6114c6a266 autosmooth
added properties

update inspector

UX improvements

and minor optimizations

deg_to_rad

moved methods

move variables

performance and cleanup

Faster

Compare the angles/smooth of faces instead of vertices, skipping for loop.
Using a LocalVector instead of Vector, this simplifies the code while making it faster, and I don't think we need COW.

all done and working

Optimizations and cleanup

Clarifying and expanding the description of autosmooth and smoothing_angle properties.
Optimizations to skip steps in the loops:
Split loops to be able to skip vertices better and replace division with multiplication.
Suggestions for future changes.
Skip loop if smoothing_angle is lower than 0.1, as a more performant alternative to default smoothing.
Do not compare vertices that belong to the same triangle.
Remove has_smooth. Use a check at the start of the loop instead. This allows us to skip faces.
Perform normalize() at the end of the loop as we don't need the normal of the vertex afterwards, as we use the normal of the face for smoothing.  This way we skip normalizing flat faces.
If one vertex of a triangle is connected to the current vertex, the other 2 can never physically connect, so we skip them (break;). This isn't as reliable but it could add a slight performance increase.
I calculate a decrease of at least 80% of calculations in the for loops compared to the previous code.

Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2026-03-04 15:30:33 -03:00