Commit Graph

55960 Commits

Author SHA1 Message Date
Fredia Huya-Kouadio 307a6eba6b Update the validation logic for the package name:
- When using the project name, allow underscore (`_`) characters
- Send a warning instead of an error when the project name is modified to fit the package name format

(cherry picked from commit 0325568a9b)
2024-01-24 18:12:40 +01:00
A Thousand Ships a8180680af Fix invalid 3-to-4 renames of `add_animation` to `add_animation_library`
This rename breaks `SpriteFrames` and also isn't valid as the new method
takes an `AnimationLibrary`, not an `Animation`

(cherry picked from commit 4b7ea9fe47)
2024-01-24 18:10:23 +01:00
A Thousand Ships ab7d9578b7 Clarify `PackedByteArray.decompress*` limitations with external data
(cherry picked from commit 4850b866e8)
2024-01-24 18:04:32 +01:00
clayjohn dc6ae4a8f0 Disable scissor test after rendering batches in compatibility renderer
(cherry picked from commit 062e8802b7)
2024-01-24 18:04:32 +01:00
Rémi Verschelde 8d479e8389 zlib/minizip: Update to version 1.3.1
Minizip includes previously backported fix for CVE-2023-45853,
and a Debian patch for CVE-2014-9485 was also upstreamed.

(cherry picked from commit 8ead8d2ddb)
2024-01-24 18:04:32 +01:00
Raul Santos f4e6063ed8 Ignore directory entries in TPZ
Zip files may contain directory entries, they always end with a path
separator and zip entries always use forward slashes for path separators.

There's no need to create the directories included in the zip file,
since they'll already be created when creating the individual files.

(cherry picked from commit 59a5a1eb70)
2024-01-24 18:04:32 +01:00
Lyuma a4cabd7497 gltf: fix three bugs which prevented extracted textures from being refreshed.
1. Extracted texture paths in `GLTFDocument::_parse_image_save_image` at the project root started with res:/// which broke cache invalidation
2. md5 hashes were not being written to generator_parameters for new imports, which led Godot to think the file was manually created.
3. `EditorFileSystem::reimport_append` must emit the `resources_reimported` signal in order for the resource cache to be updated.

(cherry picked from commit fea4165ca8)
2024-01-24 18:04:25 +01:00
CardboardCarl b3018d81c5 Clarified behavior of RayCast objects when get_collision_point() is used inside a collision shape
(cherry picked from commit 6dfec4f70d)
2024-01-24 18:00:50 +01:00
A Thousand Ships 3df6145361 Redraw `TreeItem` on more changes
* Custom font changes
* Custom draw changes
* Custom as button

(cherry picked from commit 552594ffdc)
2024-01-24 18:00:49 +01:00
Bartłomiej T. Listwon b113602ce5 Prevent overriding file info of another file when reimport creates files
(cherry picked from commit aae48ac2b6)
2024-01-24 18:00:49 +01:00
jsjtxietian 5376aea688 Fix CollisionObject3D Gizmo not updated after calling shape_owner_* functions
(cherry picked from commit 80a488a242)
2024-01-24 18:00:49 +01:00
Occalepsus a092b1aa38 Fix body leaving area gravity influence
(cherry picked from commit 492f1c2406)
2024-01-24 18:00:49 +01:00
Erik Johnson dfcd70c09f Add descpription for rendering/limits/spatial_indexer/threaded_cull_minimum_instances
(cherry picked from commit 498f46063d)
2024-01-24 18:00:49 +01:00
31 2c062f1922 Include animation.length in Animation example
The length of an Animation isn't automatically set by adding keys, and
it must be set manually. The existing example only has keys up to 0.5s,
so the default value of 1.0s may be acceptable. However, this results in
unexpected behavior for anyone who makes an animation longer than 1.0s.
Include animation.length in the example because it's important.

Also, increase the key position to 2.0s so it won't be confusing that
the assignment is somewhat redundant.

(cherry picked from commit 698c67d540)
2024-01-24 18:00:49 +01:00
Alessandro Famà 1fa33b6072 Fix Dummy audio driver initialization issue on WASAPI output device initialization failure
`AudioDriverWASAPI::init` consistently returns `Error::OK`, even when encountering a failure during the initialization of the output device. This behaviour blocks the dummy driver from initializing in `AudioDriverManager::initialize`.

(cherry picked from commit 998078f8d7)
2024-01-24 18:00:49 +01:00
Micky 5ffc22b06f Add missing descriptions to PrimitiveMesh and SoftBody3D
(cherry picked from commit a33777d49d)
2024-01-24 18:00:49 +01:00
BlueCube3310 bf2b98b801 Fix BasisUniversal ETC RA_AS_RG transcoding
(cherry picked from commit 51ad937532)
2024-01-24 18:00:49 +01:00
Yuri Sizov b915d7d9f2
Merge pull request #87514 from YuriSizov/4.1-cherrypicks
Cherry-picks for the 4.1 branch (future 4.1.4) - 1st batch
2024-01-24 11:42:59 +01:00
ChibiDenDen d75566167f fix clear color on mobile renderer
(cherry picked from commit df25e87842)
2024-01-23 22:41:00 +01:00
LRFLEW 38037bae47 Fix transparent viewport backgrounds with custom clear color
(cherry picked from commit 6effd3cde7)
2024-01-23 22:40:53 +01:00
Malcolm Nixon 5115b119f8 Fix memory corruption and assert failures in convex decomposition
This PR fixes how triangular faces are decomposed into vertices and indices. The pre-increment resulted in the indices table skipping entry 0 and potentially overrunning the end of the vertices vector.

(cherry picked from commit bf7cdc5229)
2024-01-23 20:22:01 +01:00
aXu-AP e7db7b552d Fix UV editor not showing polygon correctly
Fix polygon not showing correctly if UVs have been moved around. Show the actual contents of the polygon instead.

(cherry picked from commit a45db4d616)
2024-01-23 20:22:01 +01:00
Haoyu Qiu 32a3b2bf9c Set language encoding flag when using ZIPPacker
When non-ASCII filenames are used, this indicates that the encoding is
UTF-8. Programs like ZIPReader can then parse the filename correctly.

(cherry picked from commit 08b1354b36)
2024-01-23 20:22:00 +01:00
A Thousand Ships 9598a32b7b [Core] Prevent infinite recursion when printing errors
(cherry picked from commit d10617bb3b)
2024-01-23 20:22:00 +01:00
HolySkyMin c51b59c1fc GLES3: Skip batches with zero instance count while rendering
(cherry picked from commit 51dcb38840)
2024-01-23 20:22:00 +01:00
Ellen Poe 97b081b45f Only warn once about OGG seeking issues
(cherry picked from commit 729d270a25)
2024-01-23 20:22:00 +01:00
jsjtxietian 7180817900 Fix bad parameter of rendering_method crashes Godot
Print error and default to forward plus

(cherry picked from commit b6bee1c21e)
2024-01-23 20:22:00 +01:00
bruvzg 9d1d916864 Add unsigned char cast ifdef.
(cherry picked from commit ec052cd38a)
2024-01-23 20:22:00 +01:00
Alex Drozd 3daaaff330 use venv if detected when building godot.sln
(cherry picked from commit 3f22c1bfb6)
2024-01-23 20:22:00 +01:00
Yuri Sizov cf97df236d Fix the Web platform team's codeowners link
(cherry picked from commit 10e714a975)
2024-01-23 20:22:00 +01:00
addmix 87798576f0 Improve documentation for `CameraAttributesPhysical.exposure_shutter_speed`
(cherry picked from commit b7b0022c7a)
2024-01-23 20:22:00 +01:00
Hugo Locurcio 4cec48f1ea Fix typo in BaseMaterial3D conversion from 3.x SpatialMaterial
(cherry picked from commit 70959a9c04)
2024-01-23 20:22:00 +01:00
A Thousand Ships d9af9dd682 [Core] Fix crash when hashing empty `CharString`
(cherry picked from commit ca5ec6aec1)
2024-01-23 20:22:00 +01:00
Hugo Locurcio da200b99c9 Improve and clarify texture filtering documentation
- Mention the Use Nearest Mipmap Filter project setting.
- Fix nearest mipmap claiming to always use bilinear filtering
  (it uses trilinear filtering by default, like linear mipmap).

(cherry picked from commit 47cadda3ad)
2024-01-23 20:22:00 +01:00
Roy Berube d8b89badfd Enable scrolling of output with UI scale changes
(cherry picked from commit a7b2e090ad)
2024-01-23 20:22:00 +01:00
aXu-AP 8a395124e6 Fix UV editor not using texture transform
(cherry picked from commit d7e5c25e4a)
2024-01-23 20:22:00 +01:00
Rémi Verschelde 98cfa8bcf2 VideoPlayer: Fix reloading translation remapped stream
Fixes #43917.

(cherry picked from commit 7d0c561e02)
2024-01-23 20:22:00 +01:00
Nico 2ff7b6c830 Specify the behaviour of get_tree when the node is not in the scene tree
(cherry picked from commit ee9c8cb296)
2024-01-23 20:00:34 +01:00
clayjohn 9c82571dd6 Fill out Material documentation and clarify render_priority and next_pass sorting
(cherry picked from commit 6a663959a6)
2024-01-23 20:00:23 +01:00
jsjtxietian 126874bb38 Check nullptr in `_nvapi_disable_threaded_optimization` to prevent crash
update outdated link

(cherry picked from commit a3f44cd67e)
2024-01-23 19:57:34 +01:00
bruvzg d3713220b8 Prevent read-after-free in the queued CallableCustomStaticMethodPointer.
(cherry picked from commit eb81e8b2dc)
2024-01-23 19:53:33 +01:00
kobewi 326314eaa9 Provide more context when scene fails to load
(cherry picked from commit c6c872ba34)
2024-01-23 19:15:04 +01:00
Gabor Koncz 46bcfa82e1 Remove incorrect system_fbo overwrite
(cherry picked from commit 0198eedb06)
2024-01-23 19:15:03 +01:00
Bastiaan Olij 140f5a6a5a Compile OpenXR into MacOS build
(cherry picked from commit a9c8feeba0)
2024-01-23 19:15:03 +01:00
Andreia Gaita d9d4a2bb1d r128: Update to include latest fix for intrinsics being incorrect included.
https://github.com/fahickman/r128/pull/15 is needed to build on platforms
that define R128_STDC_ONLY

(cherry picked from commit 8fad157dbb)
2024-01-23 19:15:03 +01:00
bruvzg b62b3fc40b Fix remapped font reloading on locale change.
(cherry picked from commit 8b2260544a)
2024-01-23 19:15:03 +01:00
smix8 b0179bba74 Fix NavigationObstacle height
Fixes NavigationObstacle height.

(cherry picked from commit 3f26191d16)
2024-01-23 19:15:03 +01:00
smix8 0cf4e79b48 Fix NavigationObstacle elevation
FixesNavigationObstacle elevation.

(cherry picked from commit fc4cc27e66)
2024-01-23 19:15:03 +01:00
Fredia Huya-Kouadio f6a9129219 Preserve the output from the gradle build command
Updates `EditorNode#execute_and_show_output(...)` to return the output of the executed command.

(cherry picked from commit 136b7f9c52)
2024-01-23 19:15:03 +01:00
Fredia Huya-Kouadio a3432848b2 Fix Android editor crash issue
Fix issue causing the Android editor to crash when pressing back from a running project

(cherry picked from commit fcb07ff8dc)
2024-01-23 19:15:03 +01:00