Commit graph

64238 commits

Author SHA1 Message Date
Rémi Verschelde 782a0261cb
Merge pull request #92196 from lyuma/gltf_anim_library_import_as_bones
Support Import As Skeleton Bones on glTF and AnimationLibrary import
2024-05-23 08:59:13 +02:00
Rémi Verschelde da979ecaca
Merge pull request #92134 from Calinou/editor-particles-restart-add-shortcut
Add Ctrl + R keyboard shortcut to restart particle emission in the editor
2024-05-23 08:59:10 +02:00
Rémi Verschelde de490253fe
Merge pull request #92124 from Repiteo/scons/platform-flags-dict
SCons: Convert platform `get_flags` to dictionary
2024-05-23 08:59:07 +02:00
Rémi Verschelde f2f6727984
Merge pull request #91863 from patwork/upgrade-to-eslint-9
[Web] Update to eslint 9
2024-05-23 08:59:04 +02:00
Thaddeus Crews 896b003cc8
SCons: Convert platform get_flags to dictionary 2024-05-22 13:53:20 -05:00
Hugo Locurcio 57f52092c3
Add Ctrl + R keyboard shortcut to restart particle emission in the editor
Restarting particle animation frequently is often done in the VFX
tweaking process.

This shortcut is available for both GPUParticles and CPUParticles,
in 2D and 3D.
2024-05-22 18:42:04 +02:00
patwork 1a89ae70eb Upgrade to eslint 9 2024-05-22 11:32:25 +02:00
Rémi Verschelde 8e2141eac5
Merge pull request #92232 from clayjohn/RD-mobile-LOD
Only apply LOD when camera is outside the AABB of mesh in mobile renderer.
2024-05-22 09:27:03 +02:00
Rémi Verschelde 408228889f
Merge pull request #92223 from KoBeWi/do_people_really_copy_whole_shortcut_definitions_multiple_times_and_unironically_think_this_is_alright_🤔
Remove duplicate shortcut definitions
2024-05-22 09:27:00 +02:00
Rémi Verschelde 256f52f816
Merge pull request #92186 from BastiaanOlij/fix_stereo_omni_lights
Stereo rendering: Fix omni lights
2024-05-22 09:26:56 +02:00
Rémi Verschelde 4c96dcf6e0
Merge pull request #92179 from aaronp64/image_import_memory
Improve memory usage for image import and `PortableCompressedTexture2D`
2024-05-22 09:26:53 +02:00
Rémi Verschelde c4a899f924
Merge pull request #91087 from lmyers421/91009-project-settings-window-too-small
Increase width of project settings window.
2024-05-22 09:26:49 +02:00
Rémi Verschelde 381ce56f8a
Merge pull request #90770 from kitbdev/show-version
Display Godot version and last edited timestamp in project manager
2024-05-22 09:26:47 +02:00
Rémi Verschelde c40c89f94c
Merge pull request #90457 from Chubercik/ruff-formatter
Replace `black` formatter with `ruff`
2024-05-22 09:26:42 +02:00
Rémi Verschelde e34b97312e
Merge pull request #89630 from jsjtxietian/pick-color
Make "Pick Color"'s result less precise, keep only 3 decimals
2024-05-22 09:26:37 +02:00
lmyers421 dfc9976c6f
Increase width of project settings window
Fixes #91009.
2024-05-22 08:41:39 +02:00
clayjohn c5346a62b0 Only apply LOD when camera is outside the AABB of mesh in mobile renderer.
This copies the existing logic from the Forward+ renderer
2024-05-21 18:32:04 -07:00
Bastiaan Olij db32707bb2 Stereo rendering: Fix omni lights 2024-05-22 10:09:31 +10:00
Jakub Marcowski d9f8ef68df
Update pre-commit hooks configuration to use ruff instead of black 2024-05-21 18:02:29 -05:00
kobewi e065d7132a Remove duplicate shortcut definitions 2024-05-21 23:28:49 +02:00
Rémi Verschelde 214968243c
Merge pull request #92216 from dsnopek/runtime-classes-err-print-once
Don't use `ERR_PRINT_ONCE()` for runtime class error because it will hide errors
2024-05-21 23:19:09 +02:00
Rémi Verschelde 9d792dd4dc
Merge pull request #92204 from akien-mga/pre-commit-downstream-hooks
Pre-commit: Allow adding downstream hooks without (less) risk of conflicts
2024-05-21 23:19:06 +02:00
Rémi Verschelde 4c0d5e59bf
Merge pull request #92200 from devloglogan/composition-layer-viewport-fix
Allow `OpenXRCompositionLayer` property `layer_viewport` to always be assigned `nullptr`
2024-05-21 23:19:03 +02:00
Rémi Verschelde 03aa82849d
Merge pull request #92197 from lyuma/better_fbx_defaults
FBX: Change trimming default and use FBX2glTF for compatibility
2024-05-21 23:18:59 +02:00
Rémi Verschelde 7ecf3eb437
Merge pull request #92194 from KoBeWi/TileMap_is_dead
Remove some TileMap dependencies from TileMapLayer
2024-05-21 23:18:56 +02:00
Rémi Verschelde d916423327
Merge pull request #92181 from smix8/recast_vertices_dup
Remove duplicated vertices after 3D NavigationMesh bake
2024-05-21 23:18:53 +02:00
Rémi Verschelde aa20f54cb7
Merge pull request #92137 from BastiaanOlij/fix_fb_swapchain_foveation
OpenXR: Fix updating swapchain for foveation
2024-05-21 23:18:45 +02:00
David Snopek 62f9365b21 Don't use ERR_PRINT_ONCE() for runtime class error because it will hide errors 2024-05-21 13:55:56 -05:00
Lyuma c433754d34 fbx: change import option defaults
ufbx has special logic to handle animation/trimming, and most users expect trimming to be on.
For existing projects, we should upgrade files0 to FBX2glTF to preserve node compatibility.
2024-05-21 07:58:36 -07:00
Rémi Verschelde 00e52d975c
Pre-commit: Allow adding downstream hooks without (less) risk of conflicts
Apply Godot copyright header only on the platform folders that we maintain upstream.
This lets downstream forks decide what to do with their potential proprietary platforms.
2024-05-21 15:58:47 +02:00
devloglogan 3d7b712c86 Allow OpenXRCompositionLayer property layer_viewport to be assigned to nullptr 2024-05-21 07:52:40 -05:00
smix8 4128c7b311 Remove duplicated vertices after 3D NavigationMesh bake
Removes duplicated vertices that may exist on shared polygon corners after a ReCast navigation mesh bake.
2024-05-21 14:18:32 +02:00
Lyuma ef486db569 Support Import As Skeleton Bones on glTF and AnimationLibrary import 2024-05-21 03:19:35 -07:00
kobewi 6559bb68e6 Remove some TileMap dependencies from TileMapLayer 2024-05-21 11:32:14 +02:00
Rémi Verschelde aaa4560729
Merge pull request #92192 from timothyqiu/no-thank-you
Don't translate preview in node batch rename dialog
2024-05-21 11:23:11 +02:00
Rémi Verschelde 0e39ac6ac6
Merge pull request #92176 from emrekultursay/master
Fix detecting when Gradle is invoked from Studio
2024-05-21 11:23:08 +02:00
Rémi Verschelde 365d25de3e
Merge pull request #92173 from cosparks/fix-tilemap-occluder-sdf
Fix 2d sdf collision for TileMapLayer Occluders
2024-05-21 11:23:05 +02:00
Rémi Verschelde 9e9fb165bc
Merge pull request #92171 from KoBeWi/gridder_grid
Fix tile polygon grid not covering whole tile
2024-05-21 11:23:02 +02:00
Rémi Verschelde d7a5f9d67c
Merge pull request #92164 from DarioSamo/force_update_skeleton
Replace List with LocalVector on Skeleton3D's bone transform update.
2024-05-21 11:22:59 +02:00
Rémi Verschelde 0f044855f5
Merge pull request #92158 from bruvzg/win_crlf
[Windows] Use CRLF in the terminal prints.
2024-05-21 11:22:56 +02:00
Rémi Verschelde dcc7cb01a7
Merge pull request #92154 from lawnjelly/is_polygon_clockwise_doc
Clarify `is_polygon_clockwise()` coordinate system
2024-05-21 11:22:53 +02:00
Rémi Verschelde 149e3b85aa
Merge pull request #92145 from jsjtxietian/doc-init
Prevent add shader uniform doc when DocTool is not inited
2024-05-21 11:22:50 +02:00
Rémi Verschelde 008fd5fee6
Merge pull request #92078 from lawnjelly/increase_tight_cull_epsilon
Tight shadow culling - increase epsilon to prevent flickering
2024-05-21 11:22:47 +02:00
Rémi Verschelde ee1f898b5d
Merge pull request #92004 from timothyqiu/drop-audio
Create AudioStreamPlayer when dropping AudioStream
2024-05-21 11:22:44 +02:00
Rémi Verschelde c0eb347946
Merge pull request #91557 from AThousandShips/dotnet_doc_fix
[C#] Unexpose `GodotSharp`
2024-05-21 11:22:40 +02:00
Rémi Verschelde 0cf42d6273
Merge pull request #88919 from nongvantinh/fix-88834
Revise implementation of C# `Aabb.GetSupport` to match the implementation in `core`
2024-05-21 11:22:36 +02:00
Rémi Verschelde a720ce3046
Merge pull request #84331 from Alex2782/debug-InputEventScreenDrag
Fix InputEventScreenDrag on Android
2024-05-21 11:22:31 +02:00
Haoyu Qiu 09feef3572 Don't traslate preview in node batch rename dialog 2024-05-21 15:55:06 +08:00
Emre Kultursay 3b8d0bee4a Fix detecting when Gradle is invoked from Studio
The existing 'idea.platform.prefix' system-property approach
only worked because of a Android Studio bug that leaks the
system properties from Android Studio into Gradle build:
  - https://issuetracker.google.com/201075423

This bug was fixed in Android Studio 2023.3.1 (Jellyfish).

The correct way of identifying builds from Android Studio is to
use the following project property (not system property):
 - android.injected.invoked.from.ide
2024-05-20 17:02:36 -07:00
aaronp64 f81e0fcbf4 Improve memory usage for image import and PortableCompressedTexture2D
When importing images, we store a compressed version of the image to a .ctex file with ResourceImporterTexture::save_to_ctex_format.  When importing many large images at once, this can use a large amount of memory, especially when the .ctex file uses WebP format.

This change is for ResourceImporterTexture::save_to_ctex_format to use the original Image object instead of p_image->get_image_from_mipmap(0), to avoid creating a copy of the full uncompressed image when looping through the base Image and mipmaps.  This reduces the import memory usage for large images by around 10% when using WebP, and 35-40% when Project Settings/Rendering/Textures/Lossless Compression/Force PNG is enabled, may vary depending on the image and number of import threads running.  Same change applied to PortableCompressedTexture2D::create_from_image, which has similar logic.

This helps with #92084, but does not fully resolve the issue on its own, as compressing with WebP on many threads can still use a large amount of memory - this just lowers that amount, and makes it more likely that enabling "Force PNG" will reduce memory usage enough to import the files.
2024-05-20 19:40:39 -04:00