Commit Graph

4469 Commits

Author SHA1 Message Date
kobewi c2813b902c Add editor setting for default animation step 2025-03-11 23:16:27 +01:00
Thaddeus Crews 9ef22c227a Merge pull request #96296 from aryan-11825114/fix-curve-edit-set-point-pos
Fix `changed` signal emission in `Curve::set_point_offset`
2025-03-10 10:01:16 -05:00
aryan-11825114 cd71f97209 fix changed signal emission in Curve::set_point_offset 2025-03-10 17:50:05 +05:30
A Thousand Ships 466590d0ec Use get_slicec instead of get_slice for single character splitters 2025-03-08 20:36:37 +01:00
Thaddeus Crews 324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06: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
Thaddeus Crews 113fc5a647 Merge pull request #102648 from bruvzg/el_force
Expose `OVERRUN_ENFORCE_ELLIPSIS` flag to the controls.
2025-03-05 12:07:55 -06:00
Rémi Verschelde 77dc8320e9 Merge pull request #103320 from akien-mga/packed-scene-dnp-base
PackedScene: Use ObjectID for DeferredNodePathProperties base
2025-03-04 01:00:55 +01:00
Rémi Verschelde b408ce7a64 Merge pull request #103121 from OhiraKyou/fix-gpu-particle-zero-scale
Fix GPU particles not emitting at some configured rates when scale curve is zero
2025-03-04 01:00:43 +01:00
Evan Todd 87efa4d210 Fix particle jitter when scene tree is paused. 2025-02-27 08:40:40 -08:00
Rémi Verschelde dbdd8a2db9 PackedScene: Use ObjectID for DeferredNodePathProperties base
Help do proper error handling and avoid a crash.

Works around #103263.
2025-02-26 14:40:14 +01:00
OhiraKyou 8df75953ec Fix GPU particles not emitting at some amounts when scale curve is zero 2025-02-25 19:36:08 -05:00
Pāvels Nadtočajevs 912b52a6a5 Expose OVERRUN_ENFORCE_ELLIPSIS flag to the controls. 2025-02-10 08:41:31 +02:00
Thaddeus Crews 568d6286e0 Merge pull request #102132 from Ivorforce/optimize-font-internal-cow
Optimize `Font` calculations by avoiding unnecessary copy-on-write.
2025-02-07 14:50:41 -06:00
Pāvels Nadtočajevs 7da0767f35 [TextEdit] Update syntax highlighting when IME composition string is updated. 2025-02-07 11:54:56 +02:00
Thaddeus Crews 0d14ae58b0 Merge pull request #101109 from clayjohn/multimesh-err-msg
Add explicit error messages to Multimesh functions
2025-02-05 18:22:21 -06:00
clayjohn e1af7b65b2 Add explicit error messages to Multimesh error functions to make errors easier to understand.
Previously the RenderingServer errors filtered up to end users, but they are unclear and not helpful
2025-02-05 23:48:01 +01:00
Pāvels Nadtočajevs b50d9742c2 Fix is_valid_float, Variant parser, Expression parser, script highlighter, and TextServer not handing capital E in scientific notation. 2025-02-05 18:39:40 +02:00
bruvzg 3be46a69c4 Fix uppercase B and X parsing in the integer literals. 2025-02-05 16:02:06 +02:00
Lukas Tenbrink f52c9e342c Optimize Font calculations by avoiding unnecessary copy-on-write. 2025-01-28 18:15:59 +01:00
Thaddeus Crews e62be79947 Merge pull request #100350 from Namey5/visualshader-worldposfromdepth-fix
Fix space transformations in WorldPositionFromDepth visual shader node generation
2025-01-22 16:32:26 -06:00
Thaddeus Crews bacf8d198d Merge pull request #101014 from BattyBovine/cs3d-separation-ray-fix-2
Prevent errors when drawing debug meshes with no mesh data.
2025-01-20 16:25:48 -06:00
Thaddeus Crews cabd792995 Merge pull request #101796 from Chaosus/vs_fix_fresnel_preview_bug
Fix visual shader error when opening a Fresnel node preview
2025-01-20 16:25:47 -06:00
Thaddeus Crews 0cbcfb3cd6 Merge pull request #101648 from aaronp64/varyingsetter_global_per_node
Generate global code for `VisualShader` nodes that connect to `VaryingSetters`
2025-01-20 16:25:43 -06:00
Chaosus 8a7c9aa452 Fix visual shader error when opening a Fresnel node preview 2025-01-19 14:47:22 +03:00
Mika Viskari dedae63617 Add property guards to shape 2D's 2025-01-18 13:37:46 +02:00
aaronp64 c4db6687f9 Generate global code for VisualShader nodes that connect to VaryingSetters
Updated visual shader code to call generate_global_per_node() for nodes connected to VaryingSetter nodes, even if they don't connect directly to Output.
2025-01-16 15:14:12 -05:00
Rémi Verschelde 1e1f54e954 Merge pull request #100050 from YeldhamDev/sub_emitter_at_start
Add "At Start" mode for sub-emitter particles
2025-01-14 18:29:20 +01:00
chocola-mint f434c75dbf Add has_custom_data() to TileData 2025-01-13 21:25:49 +09:00
Rémi Verschelde 5be039761f Merge pull request #101273 from Nazarwadim/use_AHashMap_in_SurfaceTool
Use `AHashMap` for `SurfaceTool`
2025-01-10 23:06:12 +01:00
Rémi Verschelde 765c6ab5f8 Merge pull request #101282 from Nazarwadim/use_LocalVector_for_Curve_and_Gradient
Use `LocalVector` for `Curve` and `Gradient`
2025-01-09 20:51:30 +01:00
Rémi Verschelde 0257995616 Merge pull request #101354 from Ivorforce/animation-clear-template
Replace `Animation::_clear()` with explicit `.clear()` calls.
2025-01-09 17:07:27 +01:00
Lukas Tenbrink dcb4e5b22a Replace Animation::_clear() with explicit .clear() calls. 2025-01-09 16:43:57 +01:00
Rémi Verschelde 4396f8fbd3 Add AudioStreamMP3 load_from_file/load_from_buffer and harmonize other audio streams
Move OggVorbis and MP3 loading code to their AudioStream class, matching how it's done for WAV.

The duplicate functions in ResourceImporterOggVorbis are now deprecated.

Co-authored-by: MaxIsJoe <34368774+MaxIsJoe@users.noreply.github.com>
2025-01-09 15:46:04 +01:00
Nazarii 8bfb5d74b3 Use LocalVector for Curve and Gradient 2025-01-09 14:25:21 +02:00
Rémi Verschelde 21721ae344 Merge pull request #87260 from Calinou/tonemap-add-agx
Add AgX tonemapper option to Environment
2025-01-08 18:20:03 +01:00
Hugo Locurcio 084e84be78 Add AgX tonemapper option to Environment
Technical implementation notes:

- Moved linearization step to before the outset matrix is applied and
  changed polynomial contrast curve approximation.
  - This does *not* implement Blender's chroma rotation to address hue shift.
    This hue rotation was found to have a significant performance impact.
- Improved performance by combining the AgX outset matrix with the Rec 2020 matrix.

Co-authored-by: Allen Pestaluky <allenpestaluky@gmail.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2025-01-08 17:01:16 +01:00
Aarni Koskela f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Nazarii 4f1c956f25 Use AHashMap for SurfaceTool 2025-01-08 02:17:13 +02:00
danielgsilva 94a7dfeae1 Add additional methods for has_theme_item to check for font and font size 2025-01-07 16:56:14 +00:00
Rémi Verschelde 33c0fc5508 Merge pull request #101162 from timoschwarzer/fix/gpu-particles-2d-emission-textures
Fix ParticleProcessMaterial not using same offsets for emission textures
2025-01-07 10:14:50 +01:00
BattyBovine 6dc6ad2b86 Prevent errors when drawing debug meshes when surface count is zero.
Adds a few checks to ensure a debug collision mesh contains mesh data before
attempting to add it to the gizmo draw list. This prevents errors when using
SeparationRayShape3D, which is only intended to draw a single line, and
contains no mesh data.

Closes #100665
2025-01-06 21:35:52 -05:00
Rémi Verschelde f18bb5ba1a Merge pull request #100999 from KoBeWi/theme_wariat
Fix ProjectTag button variation
2025-01-06 22:48:16 +01:00
Timo Schwarzer 87767f7c34 Fix ParticleProcessMaterial not using same offsets for emission textures 2025-01-05 23:32:22 +01:00
Rémi Verschelde c049d07121 VariantParser: Ensure all parse errors have an explanation
Likewise in ResourceFormatText and JSON.
2025-01-03 17:17:37 +01:00
kobewi c1cdcad96a Fix ProjectTag button variation 2025-01-03 11:41:00 +01:00
Rémi Verschelde 6c6e74408c Merge pull request #94616 from Chaosus/vs_fix_vec4_constant
Change `VisualShaderNodeVec4Constant` type to vec4
2025-01-03 02:01:09 +01:00
Rémi Verschelde d484e23bce Merge pull request #100113 from paddy-exe/particle-emission-shape-visual-separate-pr
Add visualization of 3D particle emission shapes
2025-01-03 00:48:22 +01:00
Thaddeus Crews df2b117ec2 Merge pull request #100317 from TCROC/fix-collision-shape-debug-color-breaks-gdextension
Fix collision shape debug color breaking GDExtension
2024-12-30 08:58:41 -06:00
Thaddeus Crews a9b6b3d932 Merge pull request #100776 from AThousandShips/improve_null_checks
Improve use of `Ref.is_null/valid`
2024-12-29 09:35:04 -06:00