1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00
Commit Graph

72812 Commits

Author SHA1 Message Date
Markus Sauermann
0a875ab3bb Highlight hovered GraphEdit connection by widening the line
This change causes the connections to be additionally highlighted by
widening the line with a configurable factor.
2024-12-20 00:55:35 +01:00
Markus Sauermann
4887172a59 Fix ViewPanner panning mouse warp
Currently the mouse cursor jumps in unexpected ways, when a `ViewPanner`
is used in SubViewports or embedded Windows.

This is caused by providing wrong coordinate systems to
Input::warp_mouse_motion.

This PR replaces the use of `Input::warp_mouse_motion` with
`Viewport::wrap_mouse_in_rect` and makes sure, that the correct
coordinate systems are used.

This change makes it necessary, that all classes, that currently
use ViewPanner, need to provide the correct Viewport to ViewPanner.
2024-12-20 00:28:49 +01:00
Micky
d35d1fcf60 Show editor toaster when copying [codeblock] in class reference 2024-12-20 00:09:37 +01:00
clayjohn
793d065f8b Avoid allocating instance buffer for PointLight2D shadows when there are no instances.
Also avoid the render loop if there are no occluders. We still have to open the render pass to do a clear though.
2024-12-19 09:45:51 -08:00
Hakim
483c1348d0 Allow Timer nodes to ignore engine time scale 2024-12-19 18:40:24 +01:00
Yufeng Ying
a43f90b89d Remove unused variable in GDScriptLanguage. 2024-12-20 00:48:06 +08:00
Lukas Tenbrink
8483d794ff Abstract CowData's reallocations into _realloc to consolidate duplicate logic. 2024-12-19 17:27:16 +01:00
Antonio Caggiano
b6e5b4dde7 Convert resource usage to string
Improve error message by converting resource usage values to a
human-readable string.
2024-12-19 17:08:01 +01:00
Lukas Tenbrink
3564e7c231 Add LocalVector move semantics (constructor and operator=). 2024-12-19 15:05:05 +01:00
Lukas Tenbrink
19992e3284 Add move semantics (constructor, operator=) to List. 2024-12-19 15:04:15 +01:00
Anish Mishra
9deee0097a Fix Android native file picker 2024-12-19 19:31:32 +05:30
Kiro
06efe84bca Remove duplicate utf8() calls 2024-12-19 10:15:46 +01:00
Zshandi Krahn
0d40fe46e3 Node2D/3D: Make position follow default float step 2024-12-19 00:11:39 -08:00
bruvzg
348ee200f8 [EditorFileDialog] Do not update file selection on filter change if nothing was previously selected. 2024-12-19 10:01:26 +02:00
bruvzg
b9a00feb66 [Windows, FileDialog] Prepend drive letter to the absolute paths without drive letter. 2024-12-19 09:47:46 +02:00
Alex Threlfo
31add2602a LightmapGI: fix crash during baking when sky is null 2024-12-19 16:16:33 +11:00
Thaddeus Crews
361e3b4fe8 Core: Expand std::initializer_list support 2024-12-18 18:46:59 -06:00
Haoyu Qiu
b447eaa6a8 Betsy: Fix stack-use-after-scope when using BC3 and BC5 2024-12-19 08:42:21 +08:00
smix8
c8242162d1 Fix early navigtion path return
Fixes early navigtion path return.
2024-12-19 01:21:38 +01:00
tetrapod00
861ae87f52 Document limitations of refraction from using screen texture 2024-12-18 15:53:39 -08:00
Hilderin
9d2a4c03be Embedding game process in editor 2024-12-18 17:52:42 -05:00
Pāvels Nadtočajevs
eaf2d7c5b0 [GDScript] Fix Packed*Array OP_IN using low precision int and float as input. 2024-12-18 23:41:27 +02:00
opsocket
0dd072b460 🐛 enforce bodies damping recomputation on mode switch at runtime 2024-12-18 16:07:04 -05:00
Malcolm Anderson
2f5b97c7f9 Add volume_linear property and methods for audio-related classes
Remove default value from `volume_linear` property documentation

Remove `volume_linear` internal property from `AudioBusLayout`

Update doc/classes/AudioEffectAmplify.xml [no ci]

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>

Make documentation more concise [no ci]
2024-12-18 12:41:57 -08:00
kobewi
ba54a2805a Add more menus support to EditorContextMenuPlugin 2024-12-18 21:30:45 +01:00
demolke
e649e7e3c5 GLTF: Don't duplicate textures when importing blend files
Blender imports will always start within `.godot/imported`  folder because we first convert the .blend file to .gltf, store it in `.godot/imported` and run the import from there, so on-disk resources linked from .blend files end up with duplicate textures.
2024-12-18 21:24:18 +01:00
demolke
143d8c87bb Move reimport check to EditorImportPlugin
reimport_append is used by gltf_document, fbx_document and editor_import_plugin. The first two will never call it when importing == false. It's only the editor_import_plugin that should guard against that.
https://docs.godotengine.org/en/stable/classes/class_editorimportplugin.html#class-editorimportplugin-method-append-import-external-resource

The motivation of removing the check from gltf_document call path is to be able to test nested imports (texture embedded in gltf).
2024-12-18 21:24:18 +01:00
Rémi Verschelde
fafc07335b Merge pull request #100577 from bruvzg/win_llvm_fix
[Windows, LLVM] Fix `colorize` flag.
2024-12-18 21:12:09 +01:00
kobewi
b8f34bb8e9 Rework dock layout management 2024-12-18 20:36:19 +01:00
Pāvels Nadtočajevs
a0300532b5 [Windows, LLVM] Fix colorize flag. 2024-12-18 21:00:32 +02:00
Rémi Verschelde
024efda0b4 Merge pull request #100568 from Repiteo/dotnet/warning-as-error
C#: Add option to treat warnings as errors
2024-12-18 19:50:20 +01:00
Hendrik Brucker
a3525bc015 Add transparency support for LightmapGI
Co-authored-by: Guerro323 <kaltobattle@gmail.com>
2024-12-18 19:36:16 +01:00
kobewi
9682496d72 Add UndoRedo support to Load Emission Mask/Points 2024-12-18 18:29:00 +01:00
Rémi Verschelde
46c8f8c5c5 Merge pull request #100093 from dalexeev/fix-collision-shape-2d-3d-debug-color
Fix `CollisionShape{2D,3D}.debug_color` inconsistencies
2024-12-18 18:23:54 +01:00
Yufeng Ying
be86ce3103 Apply iwyu suggestion in core. 2024-12-19 00:43:47 +08:00
Rémi Verschelde
4cc471dbed Merge pull request #100553 from tygyh/snyk-fix-450c49dd4b2c073502654af4e06e6ec6
Web: Security upgrade eslint from 9.12.0 to 9.15.0
2024-12-18 17:23:46 +01:00
Rémi Verschelde
56d11c1062 Merge pull request #100552 from mdelorme/mdelorme/issue_100514
Fix initialization order in `AudioStreamInteractive` to allow `initial_clip` to be properly played
2024-12-18 17:23:42 +01:00
Thaddeus Crews
8642e970c5 C#: Add option to treat warnings as errors 2024-12-18 10:23:41 -06:00
Rémi Verschelde
48167ff06e Merge pull request #100540 from j20001970/cameraserver-check-feed-type
Camera: Skip non platform-specifc `CameraFeed` types in Linux/macOS driver
2024-12-18 17:23:39 +01:00
Rémi Verschelde
e69a5618c0 Merge pull request #100494 from havi05/bbcode-rainbow-effect
Fix `RichTextLabel` bbcode rainbow play reversed and paused
2024-12-18 17:23:36 +01:00
Rémi Verschelde
851d8e49e8 Merge pull request #100386 from hpvb/core-ubsan
Core: Fix UBSAN reports
2024-12-18 17:23:32 +01:00
Rémi Verschelde
d45825347d Merge pull request #100300 from edwin0cheng/improve_emoji
Improve emoji SVG parsing by caching
2024-12-18 17:23:28 +01:00
Rémi Verschelde
62e026632f Merge pull request #99492 from m4gr3d/improve_java_class_wrapper
Additional fixes and improvements to JavaClassWrapper
2024-12-18 17:23:25 +01:00
Stuart Carnie
952cd796ff Metal: Support Apple4 GPUs (2017 era iOS devices)
Closes #99682
2024-12-18 09:14:38 -07:00
Maxime Delorme
ea97d4457f Fix order initialization to allow initial_clip to be properly played 2024-12-18 15:24:20 +01:00
HP van Braam
240f510fa7 Core ubsan fixes
This fixes UBSAN errors reported by running our testsuite, importing the
TPS demo, and running the TPS demo. I have tried, wherever possible, to
fix issues related to reported issues but not directly reported by UBSAN
because thse code paths just happened to not have been exercised in
these cases.

These fixes apply only to errors reported, and caused by, core/

The following things have been changed:

* Make sure there are no implicit sign changing casts in core.
* Explicitly type enums that are part of a public API such that users of
  the API cannot pass in wrongly-sized values leading to potential stack
  corruption.
* Ensure that memcpy is never called with invalid or null pointers as
  this is undefined behavior, and when the engine is built with
  optimizations turned on leads to memory corruption and hard to debug
  crashes.
* Replace enum values only used as static values with constexpr static
  const values instead. This has no runtime overhead. This makes it so
  that the size of the enums is explicit.
* Make sure that nan and inf is handled consistently in String.
* Implement a _to_int template to ensure that all of the paths use the
  same algorhithm, and correct the negative integer case.
* Changed the way the json serializer precision work, and added tests to
  verify the new behavior. The behavior doesn't quite match master in
  particulary for negative doubles as the original code tried to cast -inf
  to an int. This then led to negative doubles losing all but one of
  their decimal points when serializing. Behavior in GDScript remains
  unchanged.
2024-12-18 14:31:12 +01:00
Edwin Cheng
61d387135f Improve emoji SVG parsing by caching
Basically, when we first encounter the document, we parse it as before, but we also note the offsets of other glyphs and store the remaining XML. The next time we see another glyph, we can simply parse that glyph node and insert it back into the stored XML.
2024-12-18 19:02:03 +08:00
snyk-bot
97ecf7830a fix: platform/web/package.json & platform/web/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230
- https://snyk.io/vuln/SNYK-JS-ESLINTPLUGINKIT-8340627
2024-12-18 10:28:34 +00:00
Rémi Verschelde
6395450b10 Merge pull request #100535 from DeeJayLSP/patch-1
Fix `taa_resolve.glsl` path in COPYRIGHT.txt
2024-12-18 09:53:14 +01:00
Rémi Verschelde
6cba6299f9 Merge pull request #100195 from raulsntos/dotnet/upgrade-tfm
[.NET] Upgrade user project's TargetFramework to `net8.0`
2024-12-18 09:53:10 +01:00