1
0
Fork 0
godot/servers
Adam Simpkins ad4dff7cbe Fix RenderingServer::mesh_surface_get_lods()
This function was incorrectly using the surface number to index into the
LOD indices vector.  This resulted in just returning the same index over
and over again.  In theory if you had a mesh with more surfaces than one
of its LOD vectors it could read pass the end of the LOD index array.

The SoftBody3D code creates a new ArrayMesh by duplicating the input
mesh, and uses `mesh_surface_get_lods()` to duplicate the LODs.  The
broken behavior here results in SoftBody3D creating broken meshes that
render nothing due to each LOD just using a single vertex.  This commit
fixes SoftBody3D to now work correctly with meshes with LODs.

Fixes #107984.
2025-06-25 10:37:44 -07:00
..
audio Compile out editor-only logic within `validate_property` in games 2025-06-12 12:54:19 +08:00
camera
debugger Add Meshes to the Video RAM Profiler 2025-04-23 18:26:56 -04:00
display
extensions Merge pull request #106321 from elzewyr/shrink-factor 2025-05-27 09:39:29 -05:00
movie_writer Add Ogg Theora support to MovieWriter 2025-06-10 15:52:24 +02:00
navigation Add navigation path query parameter limits 2025-06-13 14:42:26 +02:00
rendering Merge pull request #107928 from Kaleb-Reid/scatter-no-LIGHTX 2025-06-24 18:34:31 -05:00
text Restore per font oversampling override. 2025-06-19 18:10:54 +03:00
xr Adjust names of new XRBodyTracker joints 2025-06-18 12:26:25 -05:00
SCsub
audio_server.cpp Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
audio_server.h
camera_server.cpp Automatically activate camera monitoring when using `CameraTexture`. 2025-04-24 00:22:44 +02:00
camera_server.h
display_server.compat.inc
display_server.cpp [AccessKit] Update API to 0.16.0. 2025-06-03 10:49:04 +03:00
display_server.h [AccessKit] Update API to 0.16.0. 2025-06-03 10:49:04 +03:00
display_server_headless.h Cleanup and unify `DisplayServer` screen methods and documentation. 2025-06-02 08:03:48 +03:00
navigation_server_2d.compat.inc
navigation_server_2d.cpp Fix: make nav_map_2d uses rasterizer cell scale options in 2d navigation settings 2025-06-21 16:51:17 +02:00
navigation_server_2d.h Fix: make nav_map_2d uses rasterizer cell scale options in 2d navigation settings 2025-06-21 16:51:17 +02:00
navigation_server_2d_dummy.h Fix: make nav_map_2d uses rasterizer cell scale options in 2d navigation settings 2025-06-21 16:51:17 +02:00
navigation_server_3d.compat.inc
navigation_server_3d.cpp Change navigation region and link updates to an async process 2025-06-10 14:18:47 +02:00
navigation_server_3d.h Add MultiNodeEdit support for NavigationRegion3D 2025-06-10 16:59:29 +02:00
navigation_server_3d_dummy.h Add MultiNodeEdit support for NavigationRegion3D 2025-06-10 16:59:29 +02:00
physics_server_2d.cpp
physics_server_2d.h
physics_server_2d_dummy.h
physics_server_2d_wrap_mt.cpp
physics_server_2d_wrap_mt.h
physics_server_3d.cpp Merge pull request #106321 from elzewyr/shrink-factor 2025-05-27 09:39:29 -05:00
physics_server_3d.h Merge pull request #106321 from elzewyr/shrink-factor 2025-05-27 09:39:29 -05:00
physics_server_3d_dummy.h Merge pull request #106321 from elzewyr/shrink-factor 2025-05-27 09:39:29 -05:00
physics_server_3d_wrap_mt.cpp
physics_server_3d_wrap_mt.h Merge pull request #106321 from elzewyr/shrink-factor 2025-05-27 09:39:29 -05:00
register_server_types.cpp Move MovieWriterMJPEG class to `jpg` module it depends on 2025-06-05 10:29:22 +02:00
register_server_types.h
rendering_server.compat.inc Physics Interpolation - Move 3D FTI to `SceneTree` 2025-04-26 14:13:30 +01:00
rendering_server.cpp Fix RenderingServer::mesh_surface_get_lods() 2025-06-25 10:37:44 -07:00
rendering_server.h Merge pull request #107116 from beicause/expose-mesh-surface-update-index-buffer 2025-06-05 17:24:54 +02:00
server_wrap_mt_common.h
text_server.compat.inc
text_server.cpp Restore per font oversampling override. 2025-06-19 18:10:54 +03:00
text_server.h Restore per font oversampling override. 2025-06-19 18:10:54 +03:00
xr_server.compat.inc
xr_server.cpp
xr_server.h