1
0
Fork 0
Commit Graph

4837 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs 6a3941b5d9
Fix MSDF outline size clamping. 2025-08-19 08:28:33 +03:00
Aaron Franke ba92af7d07
ImporterMesh: Validate triangle indices array size is a multiple of 3 2025-08-18 06:36:21 -07:00
teatov 94fdfacee6 Make WAV metadata tag mappings more consistent with Vorbis 2025-08-15 15:57:15 +10:00
kobewi a33ae0be0e Add has_extension() method to String 2025-08-12 13:15:16 +02:00
Aria caa2a388bb Serialization of Callable now works with bind and unbind at the same time
Removed exclusivity between unbind and bind in many places, both on display elements, connection dock and within serialization.

A signal can now be connected with both unbound and bound arguments through the editor
2025-08-10 12:26:46 +02:00
Pāvels Nadtočajevs 86e61a311f
Use MSDF instead of MTSDF for font rendering.
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
2025-08-09 10:41:16 +03:00
Colin O'Rourke 05fd79af7c Material Conversion Error Handling
Material Conversion Plugins now ERR_FAIL if called on an unitialized material.

FileSystemDock no longer crashes if Conversion Plugin fails and returns a null ref.
2025-08-06 14:03:11 -07:00
Pāvels Nadtočajevs 610c98c1ce
Add `SVGTexture`support to `NinePatchRect`, `TextureProgressBar` and `StyleBoxTexture`. 2025-08-04 08:57:30 +03:00
Thaddeus Crews 321f2391d9
Merge pull request #108384 from adamscott/fix-sample-deletion
[Web] Fix sample playback deletion and `AudioStreamPolyphonic` issue
2025-08-03 10:50:49 -05:00
Thaddeus Crews bee0e99d3c
Merge pull request #109139 from bruvzg/svg_sz_ov
[SVGTexture] Always use real values for `texture_set_size_override`.
2025-08-01 11:45:18 -05:00
Mikael Hermansson d0826b0bfe Fix external resource IDs being lost for default properties 2025-07-31 16:57:35 +02:00
Pāvels Nadtočajevs 6705d97132
[SVGTexture] Always use real values for texture_set_size_override 2025-07-30 23:14:12 +03:00
Jojo-1000 ab178719d9 Mark methods for various classes as required 2025-07-30 19:24:56 +02:00
Squamto cd737eed2f Fix disallow stencil mode outline and xray for RENDER_PRIORITY_MAX 2025-07-29 22:42:00 +02:00
Hei f6602d40bd Round gradient colors. 2025-07-29 12:22:34 +03:00
kobewi 31b5375a1c Don't save code property of VisualShader 2025-07-27 14:25:02 +02:00
K. S. Ernest (iFire) Lee 06a7b11a47 Fix Texture3D import not working
Fix Texture3D import not working when texture has fully opaque and (partly or fully) transparent slices.

For better style make cases of detect_alpha check against the exact enums rather than the enum 0.
2025-07-26 10:22:36 -07:00
DexterFstone 6a399302c3 Add support for rotating scene tiles in TileMapLayer 2025-07-19 10:53:47 -07:00
Thaddeus Crews e0577598fa
Merge pull request #108630 from QbieShay/qbe/fix-108233
Sort bent normal output at the bottom to prevent visual shader breakage
2025-07-16 11:27:56 -05:00
Thaddeus Crews e1e2277f5a
Merge pull request #108530 from mihe/physics-debug-perf
Fix performance regression when rendering collision shapes
2025-07-15 08:04:25 -05:00
Qbieshay 657dc82fe4 Sort bent normal output at the bottom to prevent visual shader breakage 2025-07-15 11:36:47 +02:00
WhalesState 5eee6d22a0 Fix remaining physics and navigation disabling issues. 2025-07-12 17:12:42 +03:00
Mikael Hermansson 8634a8e234 Fix performance regression when rendering collision shapes 2025-07-11 20:52:58 +02:00
Adam Scott 1328921e04
[Web] Fix sample playback deletion and `AudioStreamPolyphonic` issue 2025-07-10 08:46:34 -04:00
kobewi 11adf408ab Add is_instance() helper method to Node 2025-07-08 20:42:52 +02:00
Haoyu Qiu fcfbc1d541 Fix typo in `TextParagraph.direction` hint string 2025-07-07 15:22:45 +08:00
A Thousand Ships f11aff3841
Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
Thaddeus Crews 6d8469da8c
Merge pull request #108216 from mihe/shared-typed-collections
Fix typed collections using same reference across scene instances
2025-07-03 12:21:25 -05:00
Thaddeus Crews e325464ef0
Merge pull request #108038 from arlez80/fix_generate_triangle_mesh
Fix `Mesh.generate_triangle_mesh` when using `PRIMITIVE_TRIANGLE_STRIP`
2025-07-03 12:21:17 -05:00
Mikael Hermansson af94831ab2 Fix typed collections using same reference across scene instances 2025-07-02 23:45:25 +02:00
Thaddeus Crews 2f39f4746d
Merge pull request #107729 from Chaosus/vs_fix_missing_transform_preview
Add missing input transform to visual shader preview
2025-06-27 09:39:55 -05:00
あるる / きのもと 結衣 6e39808ed7 Fixed generate_triangle_mesh when using PRIMITIVE_TRIANGLE_STRIP 2025-06-27 13:52:53 +09:00
kobewi 28a11ab551 Restore graph_offset property 2025-06-25 18:25:57 +02:00
Thaddeus Crews db28859774
Merge pull request #107591 from timothyqiu/group-enable-default
Make `PROPERTY_HINT_GROUP_ENABLE` hide properties by default
2025-06-24 18:34:28 -05:00
Thaddeus Crews 5cf0092837
Merge pull request #107790 from DeeJayLSP/tight-audio-data
Use TightLocalVector for AudioStreamWAV/MP3
2025-06-24 09:58:37 -05:00
Rémi Verschelde 8450eb2411
Merge pull request #107808 from apples/apples-stencil-preset-readwrite-fix
Fix stencil preset `next_pass` stencil flags
2025-06-22 11:59:26 +02:00
Rémi Verschelde 9557a3dc9c
Merge pull request #107807 from apples/107806-apples-stencil-priority-fix
Fix stencil preset priorities
2025-06-22 11:59:23 +02:00
Apples b0947003e0 Fix stencil preset next_pass stencil flags 2025-06-21 11:05:32 -05:00
Apples 8ce3011ae6 Fixed stencil preset priorities 2025-06-21 10:48:25 -05:00
notgoyome e37efa8722 Fix: make nav_map_2d uses rasterizer cell scale options in 2d navigation settings 2025-06-21 16:51:17 +02:00
DeeJayLSP 168ac139cf Use TightLocalVector for AudioStreamWAV/MP3 2025-06-21 00:25:31 -03:00
Chaosus 5a43220818 Add missing input transform to visual shader preview 2025-06-19 20:46:55 +03:00
Pāvels Nadtočajevs 22e99a4901
Restore per font oversampling override. 2025-06-19 18:10:54 +03:00
Thaddeus Crews ffc267b44f
Merge pull request #92280 from dalexeev/editor-fix-built-in-script-documentation
Editor: Fix documentation for built-in scripts
2025-06-18 18:14:09 -05:00
Thaddeus Crews 81e4f391c7
Merge pull request #107605 from DeeJayLSP/wav-tags-fix
Fix broken WAV info list tag parsing
2025-06-18 18:13:56 -05:00
Thaddeus Crews a7b5119fb4
Merge pull request #107585 from KoBeWi/surfaced_bug
Clear cache when setting Mesh's surfaces
2025-06-18 18:13:51 -05:00
Nazarii 1964918e46 Use LocalVector in Animation 2025-06-18 18:37:55 +03:00
DeeJayLSP 37bee2fde3 Fix broken WAV info list tag parsing 2025-06-17 00:54:17 -03:00
Haoyu Qiu a7ab249a2a Make `PROPERTY_HINT_GROUP_ENABLE` hide properties by default 2025-06-16 20:03:49 +08:00
kobewi 652de74ac4 Clear cache when setting Mesh's surfaces 2025-06-16 11:27:23 +02:00
Hendrik Brucker 666d7c030b [VisualShader] Fix and improve editor state persistence 2025-06-14 13:10:17 +02:00
Rémi Verschelde 6c52478491
Merge pull request #107453 from LunaCapra/bent-normals-triplanar
Fix bent normal maps not working with triplanar UVs
2025-06-12 22:49:29 +02:00
Rémi Verschelde ae484828bb
Merge pull request #107408 from Ivorforce/node-path-string-explicit
Make conversions from `NodePath` to `String` explicit.
2025-06-12 22:49:03 +02:00
Capry bf8edd2c2a Fix bent normal maps not working with triplanar UVs 2025-06-12 14:45:37 +02:00
Rémi Verschelde e9f5bd8e51
Merge pull request #107355 from beicause/fix-resource-script-property-save
Fix `script` property of custom resources inherited from scripts are not saved
2025-06-12 11:56:46 +02:00
LuoZhihao 8ba4656ea3 Compile out editor-only logic within `validate_property` in games 2025-06-12 12:54:19 +08:00
Rémi Verschelde 0497ae9947
Merge pull request #80710 from apples/7174-apples-stencil
Add stencil support to spatial materials
2025-06-12 01:15:35 +02:00
Apples d674c9e289 Add stencil support for spatial materials 2025-06-11 09:59:10 -05:00
Lukas Tenbrink e2931a5c19 Make conversions from `NodePath` to `String` explicit. 2025-06-11 16:50:27 +02:00
LuoZhihao 784823ada1 Fix `script` property of custom resources inherited from scripts are not saved 2025-06-10 23:03:13 +08:00
Rémi Verschelde d49012f01d
Merge pull request #105561 from bruvzg/a_pix
Fix `is_pixel_opaque` bound checks.
2025-06-10 12:29:46 +02:00
Lukas Tenbrink ed836df150 Make conversions from math types to `String` explicit, to avoid accidental conversions. 2025-06-09 01:58:18 +02:00
DeeJayLSP afcc647886 AudioStreamWAV: Inline tag remap inside load 2025-06-07 09:41:23 -03:00
Pedro J. Estébanez c854462ac5 Fix resources wrongly duplicated upon instantiating inherited scenes 2025-06-06 17:45:45 +02:00
Apples 7574a5dbb3 Add depth function for spatial materials 2025-06-06 09:21:19 -05:00
Rémi Verschelde e5c8fb8f1d
Merge pull request #107005 from TokageItLab/fix-anim-node-param-type
Fix ambiguous AnimationNode's parameter type in default value and make `validate_type_match()` static function
2025-06-05 13:12:43 +02:00
Rémi Verschelde 8b8895b055
Merge pull request #106605 from kleonc/curve3d_show_point_tilt_in_degrees
Show `Curve3D` point tilt in degrees in inspector
2025-06-05 13:11:57 +02:00
Rémi Verschelde 8131883b16
Merge pull request #99504 from LunaCapra/audio-metadata
Add metadata tags to WAV and OGG audio streams
2025-06-05 13:10:12 +02:00
Silc Lizard (Tokage) Renew 678fb63451 Fix ambiguous AnimationNode's parameter type in default value
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2025-06-05 10:02:22 +09:00
Thaddeus Crews 1b37dacc18
Merge pull request #106622 from beicause/rm-unnecessary-validate-property-call
Remove unnecessary calling `_validate_property()` in the core from all extended classes
2025-06-03 15:30:28 -05:00
Thaddeus Crews e24d536b9f
Merge pull request #95564 from Arnklit/default-bezier-keys
Add option to auto tangent new bezier points in animation editor
2025-06-03 15:30:23 -05:00
Thaddeus Crews bd94fc7c19
Merge pull request #107049 from OzelotVanilla/fix-resourcesaver-saving-default-value
Fix `ResourceSaver` saving default value of `Resource`
2025-06-03 15:30:15 -05:00
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
LuoZhihao 713ed59a77 Remove unnecessary `_validate_property()` calling 2025-06-03 21:57:36 +08:00
Kasper Arnklit Frandsen 5934804335 Add option to auto tangent new bezier points in animation editor
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2025-06-03 11:04:35 +02:00
Thaddeus Crews 7a3d2f6779
Merge pull request #106606 from aaronfranke/pow2_64
Add 64-bit versions of core power of 2 functions
2025-06-02 18:51:56 -05:00
Thaddeus Crews 424b0c0fcc
Merge pull request #100559 from DeeJayLSP/save-wav-vector
Reduce memory overhead of `save_to_wav`
2025-06-02 18:51:48 -05:00
Thaddeus Crews 028a7d3776
Merge pull request #89530 from dalexeev/ed-allow-rename-theme-types
Editor: Add ability to rename theme types
2025-06-02 18:51:40 -05:00
Thaddeus Crews e77b244bf3
Merge pull request #106921 from Calinou/fontfile-clamp-face-index
Clamp FontFile Face Index to a valid range in the inspector
2025-06-02 18:51:34 -05:00
Ozelot Vanilla 3772e7690d Fix `ResourceSaver` saving default value 2025-06-02 22:21:28 +09:00
Aaron Franke f6f1df7d73
Add 64-bit versions of core power of 2 functions 2025-06-01 23:11:12 -07:00
Capry 20c0a0b489 Add metadata tags to WAV and OGG audio streams 2025-05-31 11:43:01 +02:00
Danil Alexeev e6c9a832c1
Editor: Add ability to rename theme types 2025-05-29 21:57:48 +03:00
Hugo Locurcio 0a800df58e Clamp FontFile Face Index to a valid range in the inspector
Previously, you could set it to an invalid value in the inspector,
which caused an error to be printed by TextServerAdvanced.
2025-05-29 03:23:37 +02:00
Thaddeus Crews de37627404
Merge pull request #102552 from DarioSamo/shader-baker
Add shader baker to project exporter.
2025-05-28 17:09:38 -05:00
Lukas Tenbrink eb9bea10a9 Remove obsolete `VMap` forward declaration. 2025-05-28 12:19:33 +02:00
Dario 5a30a7e7cd Add shader baker to project exporter.
Metal Support contributed by Migeran (https://migeran.com) and Stuart Carnie.

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
Co-authored-by: Gergely Kis <gergely.kis@migeran.com>
2025-05-27 12:45:27 -03:00
Thaddeus Crews c18c5c0b2c
Merge pull request #106864 from akien-mga/tileset-warning-maybe-uninitialized
TileSet: Fix `-Wmaybe-uninitialized` warning on CompatibilityShapeData
2025-05-27 09:39:35 -05:00
Thaddeus Crews f619ca2519
Merge pull request #60143 from Rindbee/better-connection-dialog
Add a flag to make the connection automatically emit the source object.
2025-05-27 09:39:34 -05:00
Rindbee 5e2396e001
Add a flag to make the connection automatically emit the source object.
Mainly used to improve the connection dialog.

Not implemented in `emit_signalp()`, append the source object when a PackScene is instantiated.
2025-05-27 20:19:03 +08:00
Rémi Verschelde baa92252d3
TileSet: Fix `-Wmaybe-uninitialized` warning on CompatibilityShapeData 2025-05-27 13:51:13 +02:00
Lukas Tenbrink 4cb8a0c77e Add `resize_initialized` and `resize_uninitialized` to `Vector`. These functions serve as replacements for `resize`, to make sure the caller understands whether elements need to be initialized 'by hand' after the call. 2025-05-26 18:35:41 +02:00
Thaddeus Crews 869807a7b8
Merge pull request #106796 from akien-mga/tileset-compat-conversion-prevent-crash
TileSet: Prevent crash in conversion of invalid tiles from Godot 3.x
2025-05-26 11:24:33 -05:00
Thaddeus Crews 506417fe43
Merge pull request #105623 from lodetrick/section-feature-hide
Allow Inspector Section Checkboxes to hide features, Add "On" text to checkboxes
2025-05-26 11:24:25 -05:00
Rémi Verschelde b323212e0e
TileSet: Prevent crash in conversion of invalid tiles from Godot 3.x
Fixes #80898.
2025-05-25 15:20:56 +02:00
Thaddeus Crews 274ed34ac4
Merge pull request #93836 from aaronfranke/capsule-mid-height
Add mid height property to CapsuleShape2D/3D
2025-05-23 09:46:13 -05:00
Thaddeus Crews 8085fd3102
Merge pull request #93142 from clayjohn/z_clip_scale
Add new shader built ins: `Z_CLIP_SCALE` and `PERSPECTIVE_SCALE`
2025-05-22 12:15:06 -05:00
Thaddeus Crews 4daad86a86
Merge pull request #106562 from zeux/lod-metrics
Adjust LOD selection metrics to use attribute error
2025-05-22 12:15:03 -05:00
Thaddeus Crews 7c6951da42
Merge pull request #106671 from bruvzg/svg_lazy_load
Improve SVGTexture lazy loading.
2025-05-22 12:14:59 -05:00
Logan Detrick 1a427d3dec Add feature hint string and "On" text for checkable groups 2025-05-21 14:56:55 -07:00
clayjohn 9a1def8da1 Add new StandardMaterial properties to allow users to control FPS-style objects (hands, weapons, tools close to the camera)
Add new shader built in Z_CLIP_SCALE to easily adjust clipping distance to avoid clipping walls etc.

Add fov_override to StandardMaterial3D to easily have a custom FOV for FPS objects

Add IN_SHADOW_PASS built-in to shaders for tweaking materials without impacting shadow maps
2025-05-21 10:16:05 -03:00
Pāvels Nadtočajevs 9f5c57c8c5
Improve SVGTexture lazy loading. 2025-05-21 13:12:41 +03:00
Jamie Pate c317549587 Fix Heap buffer overflow in Animation::_find()
Fixes #106647
2025-05-20 17:26:58 -07:00
kleonc a87be2c74d Show Curve3D point tilt in degrees in inspector 2025-05-19 20:42:07 +02:00
Arseny Kapoulkine 6190d412d3 Adjust LOD selection metrics to use attribute error
- Revert meshoptimizer patch; the metric used for LOD selection now
incorporates attribute error
- Since LOD selection is now aware of attribute deviation, we don't
need to use a higher normal weight
- To prevent normal creases from creating input triangles with very
large normal deviation, reduce default normal merge threshold
- Since we now use combined metric to select LODs, we never need LODs
with error>1 as these should not be selected if the mesh is visible.
2025-05-18 17:38:54 +03:00
Arseny Kapoulkine 9a8348cc2c Use vertex colors (if present) as attributes during simplification
When importing meshes with vertex colors, we will now supply them to the
simplifier as attributes with weight=1 (in addition to normals). This will
guide the simplification to preserve regions where vertex colors change.

For this change to take full effect, it is also necessary to respect the
full error when selecting LODs; this change does not do that yet, so there
are going to still be cases where vertex colors change abruptly during LOD
switch in a visible manner.
2025-05-15 21:48:12 +03:00
Capry 9828c365c3 Add support for bent normals for indirect lighting and specular occlusion 2025-05-12 12:52:04 +02:00
Thaddeus Crews 1b439d49a9
Merge pull request #100446 from YYF233333/vmap
Replace `VMap` used in `VisualShader` with `HashMap` and remove `VMap`
2025-05-09 11:29:25 -05:00
Thaddeus Crews 821170f054
Merge pull request #106145 from lander-vr/ambient-light-specular-occlusion
Add specular occlusion from ambient light
2025-05-09 11:29:14 -05:00
Yufeng Ying 2db0a44519 Remove vmap.h 2025-05-09 19:05:28 +08:00
Yufeng Ying 31bfc41202 Replace VMap with HashMap in VisualShader. 2025-05-09 19:05:28 +08:00
landervr 56730d0cb2 Add specular occlusion from ambient light
Co-authored-by: guerro323 <kaltobattle@gmail.com>
2025-05-08 23:52:01 +02:00
Thaddeus Crews aa1ca2b244
Merge pull request #93517 from Repiteo/core/nodiscard-strings
Core: Add `[[nodiscard]]` to string-like classes/structs
2025-05-07 12:48:27 -05:00
Thaddeus Crews 42b50abf15
Merge pull request #106113 from lodetrick/add-dictionary-type-hints
Add missing dictionary and array type hints
2025-05-07 12:48:04 -05:00
Logan Detrick 247520b348 Add missing dictionary and array type hints 2025-05-06 12:35:19 -07:00
Thaddeus Crews 579feb387c
Core: Add `[[nodiscard]]` to string-like classes 2025-05-06 12:23:41 -05:00
Thaddeus Crews fd1168620f
Merge pull request #105718 from aaronfranke/nav-const-caps
Capitalize global navigation constants
2025-05-06 08:38:07 -05:00
kobewi 34b485d62b Remove empty constructors and destructors from scene/ 2025-05-06 14:46:54 +02:00
Aaron Franke 783728fcb4
Capitalize global navigation constants 2025-05-05 12:08:15 -07:00
Danil Alexeev 0a07ae7bf1
Editor: Fix documentation for built-in scripts 2025-05-05 21:26:30 +03:00
Thaddeus Crews 5bc01f2994
Merge pull request #105080 from beicause/basisu-ktx2-settings
BasisU: Use KTX2 format and add import options to configure encoder
2025-05-05 11:24:20 -05:00
Logan Detrick ef9daf0f93 Add type hint to SVGTexture dictionary 2025-05-05 02:09:34 -07:00
LuoZhihao 237597b01f BasisU: Use KTX2 format and add import options to configure encoder 2025-05-03 01:45:38 +08:00
Aaron Franke 9f38cfe3ca
Add mid height property to CapsuleShape2D/3D 2025-05-01 15:45:51 -07:00
Aziroshin 1a91570ce9 [Curve3D] Fix middle point forward vector when control1=end and control2=begin; issue #88923
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-05-01 20:54:59 +02:00
Thaddeus Crews f4f1471b57
Merge pull request #105910 from lawnjelly/global_get_fast4
Add `GLOBAL_GET` cached macros.
2025-04-30 09:18:44 -05:00
lawnjelly f8f350a32a Add `GLOBAL_GET` cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
dsmtE 4e68f277c6 add REGION_RECT
fix formatting

fix shader compile (region_rect after draw_data)

fix formatting

fix formatting

Review fix (move region_rect in main + remove useless visual shader options)

fix formatting

fix alphabetic order (+ remove useless action for spatial shaders)

typo + remove TYPE_LIGHT option for  region_rect
2025-04-30 11:07:22 +02:00
Thaddeus Crews b1b873add3
Merge pull request #104731 from Delsin-Yu/stackable-text-effect
[GUI] Implement Stackable Text Outline on `Label`
2025-04-29 11:24:13 -05:00
Thaddeus Crews bc21c322c6
Merge pull request #105880 from KoBeWi/deadline
Remove inline from constexpr variables
2025-04-29 11:24:13 -05:00
Hugo Locurcio 5bf4a35bf7
Fix class reference discrepancy when using `--doctool` with TextServerFallback
This is noticeable if you use an editor build compiled with the
`module_text_server_adv_enabled=no module_text_server_fb_enabled=yes`
SCons options.
2025-04-29 02:40:32 +02:00
kobewi 5125a273dc Remove inline from constexpr variables 2025-04-28 21:09:43 +02:00
Thaddeus Crews 1a2a1b07df
Merge pull request #105799 from Repiteo/scons/enum-conversion-warnings
SCons: Add enum conversion warning
2025-04-27 19:21:23 -05:00
Thaddeus Crews 3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews dc9c34f0c6
SCons: Add enum conversion warning 2025-04-26 12:06:20 -05:00
DE YU ac931c33c2 Implmement stackable text effects on label type through label settings
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-04-26 20:50:20 +08:00
RedMser 143db328e7 Fix cases where _get returned true erroneously 2025-04-25 19:06:09 +02:00
Thaddeus Crews 796a08d350
Merge pull request #105655 from bruvzg/svg_tx_import
Add `SVGTexture` importer.
2025-04-25 11:36:05 -05:00
Thaddeus Crews bfa43726c1
Merge pull request #104971 from Ivorforce/camera-texture-editor-lazy
Automatically activate camera monitoring when using `CameraTexture`
2025-04-25 11:36:02 -05:00
Thaddeus Crews 04bcd4cea6
Merge pull request #105725 from bruvzg/sc_grad
Use same oversampling granularity as fonts use for `SVGTexture`s .
2025-04-25 11:35:59 -05:00
Thaddeus Crews 8847e65ff4
Merge pull request #105644 from lazarosY/interpolation
Fix the Animation Optimization results for Nearest and Cubic Interpolation
2025-04-24 17:18:47 -05:00
Pāvels Nadtočajevs 98817a54f0
Use same oversampling granularity as fonts use for `SVGTexture`s . 2025-04-24 21:23:25 +03:00
Thaddeus Crews 37a70edc11 Nearest and linear interpolation optimization
Nearest and linear interpolation optimization
2025-04-24 19:30:23 +03:00
Pāvels Nadtočajevs 15cecfdac5
Add `SVGTexture` importer. 2025-04-24 08:15:53 +03:00
Lukas Tenbrink e9e455823e Automatically activate camera monitoring when using `CameraTexture`. 2025-04-24 00:22:44 +02:00
Lukas Tenbrink 91fe434a86 Always use `String` as `StringName` backing internally. 2025-04-23 14:57:03 +02:00
Thaddeus Crews 1f7a8eac9d
Merge pull request #101973 from clayjohn/sky-material-opt
Optimize ProceduralSkyMaterial by removing uses of acos and simplifying logic
2025-04-22 18:25:51 -05:00
Thaddeus Crews 0cc292f880
Merge pull request #105272 from lodetrick/add_section_toggle
Add enable checkboxes to editor sections
2025-04-21 08:24:20 -05:00
Pāvels Nadtočajevs f3d3bf9d03
Fix `is_pixel_opaque` bound checks. 2025-04-19 12:51:59 +03:00
Pāvels Nadtočajevs 24bb0d5c4f
Use SVGTextures for editor and default theme icons. 2025-04-19 12:48:24 +03:00
Pāvels Nadtočajevs 9f5048fb36
Implement SVGTexture auto-scalable with font oversampling. 2025-04-19 12:42:54 +03:00
clayjohn 6fede0b951 Optimize SkyMaterials by removing uses of acos and simplifying logic
The results looks almost the same and run much faster.
2025-04-17 22:50:11 -07:00
Thaddeus Crews ad40939b6f
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
cier ebe9370724 Add enable checkboxes to editor sections
Fixes https://github.com/godotengine/godot-proposals/issues/4173
2025-04-15 13:49:41 -07:00
Thaddeus Crews f56a4d4fe4
Merge pull request #105138 from stuartcarnie/fix_hangs
Renderer: Reduce scope of mutex locks to prevent common deadlocks
2025-04-14 19:39:47 -05:00
Thaddeus Crews 866d59d216
Merge pull request #105264 from clayjohn/primitive-mesh-optimize
Optimize PrimitiveMesh creation by avoiding CoW behavior and dynamic memory allocations
2025-04-14 19:39:46 -05:00
Pāvels Nadtočajevs 4afeca3bcf
Replace global oversampling with overrideable per-viewport oversampling. 2025-04-14 13:43:09 +03:00
Stuart Carnie 09282c316a Renderer: Reduce scope of mutex locks to prevent common deadlocks
Fixes #102877
2025-04-13 06:56:13 +10:00
Thaddeus Crews addab4f001
Merge pull request #95916 from Repiteo/core/bit-field
Core: Add dedicated `BitField` template
2025-04-11 13:29:13 -05:00
Thaddeus Crews 0d267e7b1e
Core: Add dedicated `BitField` template 2025-04-11 11:53:26 -05:00
Lukas Tenbrink b711d72e8f Remove unnecessary `friend class` declarations of `CowData`.
Use default implementations for various containers.
2025-04-11 18:26:08 +02:00
clayjohn 9b6f9e5701 Optimize PrimitiveMesh _create_mesh_array function by avoiding CoW behavior and dynamic memory allocations 2025-04-11 09:04:44 -07:00
Thaddeus Crews 94282d88f9
Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
A Thousand Ships 889410dcda
Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +02:00
Thaddeus Crews 6e0af7d083
Merge pull request #105005 from beicause/pctex-fix-basis-crash
PortableCompressedTexture: Fix BasisU crash and wrong format
2025-04-09 18:11:57 -05:00
Pāvels Nadtočajevs 33af291421
Remove error print in the Animation getter. 2025-04-09 09:34:26 +03:00
Thaddeus Crews e6a61b1ecc
Merge pull request #76829 from bruvzg/ac_kit_direct
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +03:00
Yufeng Ying bbc380b07e Do not iterate Dictionary with get_key_at_index. 2025-04-07 21:54:13 +08:00
Thaddeus Crews 45a64319e1
Merge pull request #104771 from Repiteo/ci/pre-commit-bump
CI: Bump various pre-commit hooks
2025-04-07 08:43:27 -05:00
Thaddeus Crews 499d70c1b0
Merge pull request #105024 from JulianHeuser/fix-tileset-custom-data
Fix editing custom data for tilesets
2025-04-07 08:43:25 -05:00
Thaddeus Crews 5edb235018
CI: Bump various pre-commit hooks 2025-04-07 08:23:35 -05:00
LuoZhihao 572a15e4b2 PortableCompressedTexture: Support ASTC format and creating directly from compressed image 2025-04-05 18:44:36 +08:00
Julian 38305a2ad0 Fix editing custom data for tilesets 2025-04-04 14:28:01 -04:00
LuoZhihao 505fa4226a PortableCompressedTexture: Fix BasisU crash and wrong format 2025-04-04 15:16:24 +08:00
Thaddeus Crews cb8cb95bdd
Merge pull request #104962 from beicause/pctex-fix-create-from-image
PortableCompressedTexture: Fix create compressed format from image
2025-04-03 16:50:13 -05:00
LuoZhihao 4be432cbec PortableCompressedTexture: Fix create compressed format from image 2025-04-04 03:35:32 +08:00
Aaron Franke 2800948d61
Organize ifdefs for disabling navigation, physics, and XR 2025-04-02 08:24:24 -07:00
Yufeng Ying 7a1a970c25 size() <= 0 and size() < 1. 2025-04-02 19:18:44 +08:00
Yufeng Ying 4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
Michael Alexsander 556933306a
Allow to compile templates without navigation features 2025-04-01 11:53:35 -03:00
Thaddeus Crews d52b84e472
Merge pull request #103993 from aaronfranke/geometry-segment
Directly use segment points in Geometry2D/3D function parameters
2025-04-01 08:01:34 -05:00
Pāvels Nadtočajevs 19f360d65a
Add font import flag to toggle modulation of colored glyphs. 2025-04-01 13:36:10 +03:00
kobewi 6261bf577e Change how ImageTexture's image is defined 2025-04-01 00:07:46 +02:00
Thaddeus Crews 8f6bb119f4
Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
Add templated version of `ObjectDB::get_instance()`
2025-03-31 12:03:47 -05:00
Aaron Franke c1acc839a8
Directly use segment points in Geometry2D/3D function parameters 2025-03-30 16:25:59 -07:00
Thaddeus Crews 780cf03051
Merge pull request #104556 from Ivorforce/string-extend-instead-of-parse
Use `append_` instead of `parse_` for `String` methods.
2025-03-29 10:16:33 -05:00
Rémi Verschelde e8bc75f056
Merge pull request #103373 from YeldhamDev/build_remove_physics
Allow to compile templates without physics servers
2025-03-28 17:30:03 +01:00
Rémi Verschelde 3b90bb56ad
Merge pull request #89782 from KoBeWi/stdArrayList
Use initializer list in Arrays
2025-03-28 17:29:40 +01:00
Michael Alexsander 5ad414d046
Allow to compile templates without physics servers 2025-03-28 11:00:44 -03:00
Yyf2333 22b5ec17fb Using iterator pattern instead of List::Element *.
Co-authored-by: Adam Scott <ascott.ca@gmail.com>
2025-03-28 13:29:15 +08:00
Lukas Tenbrink ffa6ef220b Use `append_` instead of `parse_` for `String` methods. 2025-03-27 17:51:02 +01:00
kobewi bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
kobewi 75881f8322 Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
Thaddeus Crews 68d71d6c8c
Merge pull request #104582 from Ivorforce/cameratexture-nomonitor
Avoid doctools attempting to query the `CameraServer` to infer a default value for `camera_is_active`
2025-03-25 11:09:05 -05:00
Thaddeus Crews c5e36a973c
Merge pull request #104115 from mihe/scene-state-binds
Bind `SceneState` methods `get_path` and `get_base_scene_state`
2025-03-25 11:09:00 -05:00
Lukas Tenbrink 770267b337 Set `camera_is_active` to false for `CameraTexture` to avoid doctool querying it to determine the default automatically. 2025-03-25 02:04:39 +01:00
Thaddeus Crews f810c74c19
Merge pull request #104221 from Teschnique/fix-issue-100590
Fix tangent baking for curves when cubic derivatives are 0
2025-03-24 10:01:02 -05:00
Thaddeus Crews f09ee0171a
Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
Teschnique a6dc345415 Fix tangent baking for curves where the derivative evaluates to 0 due to
collinear control points.
2025-03-21 23:02:24 -07:00