summaryrefslogtreecommitdiffstats
path: root/scene/resources
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #92986 from Repiteo/core/ref-instantiate-integrationThaddeus Crews2024-11-115-8/+8
|\ | | | | | | Core: Integrate Ref `instantiate` where possible
| * Core: Integrate `Ref::instantiate` where possibleThaddeus Crews2024-11-105-8/+8
| |
* | Improve `NavMeshGenerator2D::generator_bake_from_source_geometry_data` ↵Kiro2024-11-111-0/+2
|/ | | | | | performance Avoid copies and redundant work.
* Merge pull request #98036 from bruvzg/para_btn_spacingThaddeus Crews2024-11-102-8/+37
|\ | | | | | | [TextParagraph/Button] Add support for line spacing.
| * [TextParagraph/Button] Add support for line spacing.bruvzg2024-10-102-8/+37
| |
* | Merge pull request #98773 from KeyboardDanni/tileset_collision_priorityThaddeus Crews2024-11-102-0/+33
|\ \ | | | | | | | | | Add collision priority property to TileSet physics layers
| * | Add collision priority property to TileSet physics layersDanni2024-11-022-0/+33
| | |
* | | Merge pull request #96841 from maidopi-usagi/tree_item_height_cacheThaddeus Crews2024-11-102-0/+6
|\ \ \ | | | | | | | | | | | | [Tree] Improve Tree Performance by replacing computed height with TreeItem's cached minimum size
| * | | replace computed height with cached item minimum sizeMaidOpi2024-11-072-0/+6
| | | |
* | | | Merge pull request #86600 from nikitalita/fix-missing-resourcesThaddeus Crews2024-11-102-15/+16
|\ \ \ \ | | | | | | | | | | | | | | | Fix `MissingResource` properties being stripped on save
| * | | | Fix missing resource properties being dropped on savenikitalita2024-11-052-15/+16
| | | | |
* | | | | Merge pull request #94889 from rune-scape/no-const-list-eraseThaddeus Crews2024-11-101-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Remove const_cast in `List::erase`
| * | | | | Avoid const_cast in List::erase by requiring mutable elementsrune-scape2024-11-081-1/+1
| | | | | |
* | | | | | Merge pull request #98717 from nikitalita/fix-save-to-wav-capsThaddeus Crews2024-11-101-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix `AudioStreamWAV::save_to_wav` adding extra '.wav' to file if existing ext is not lower case
| * | | | | | fix save to wavnikitalita2024-11-011-1/+1
| | | | | | |
* | | | | | | Merge pull request #98317 from YYF233333/vformatThaddeus Crews2024-11-071-3/+7
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | Optimize `TileSetAtlasSource::_get_property_list`
| * | | | | | Optimize TileSetAtlasSource::_get_property_listYufeng Ying2024-10-191-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Haoyu Qiu <timothyqiu@users.noreply.github.com>
* | | | | | | Merge pull request #98801 from zeux/my-final-formThaddeus Crews2024-11-054-23/+92
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Rewrite index optimization code for maximum efficiency
| * | | | | | | Rewrite index optimization code for maximum efficiencyArseny Kapoulkine2024-11-044-23/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While all the previous fixes to optimizeVertexCache invocation fixed the vertex transform efficiency, the import code still was missing two crucial recommendations from meshoptimizer documentation: - All meshes should be optimized for vertex cache (this reorders vertices for maximum fetch efficiency) - When LODs are used with a shared vertex buffer, the vertex order should be generated by doing a vertex fetch optimization on the concatenated index buffer from coarse to fine LODs; this maximizes fetch efficiency for coarse LODs The last point is especially crucial for Mali GPUs; unlike other GPUs where vertex order affects fetch efficiency but not shading, these GPUs have various shading quirks (depending on the GPU generation) that really require consecutive index ranges for each LOD, which requires the second optimization mentioned above. However all of these also help desktop GPUs and other mobile GPUs as well. Because this optimization is "global" in the sense that it affects all LODs and all vertex arrays in concert, I've taken this opportunity to isolate all optimization code in this function and pull it out of generate_lods and create_shadow_mesh; this doesn't change the vertex cache efficiency, but makes the code cleaner. Consequently, optimize_indices should be called after other functions like create_shadow_mesh / generate_lods. This required exposing meshopt_optimizeVertexFetchRemap; as a drive-by, meshopt_simplifySloppy was never used so it's not exposed anymore - this will simplify future meshopt upgrades if they end up changing the function's interface.
* | | | | | | | Merge pull request #98571 from timothyqiu/pname-no-editorThaddeus Crews2024-11-052-6/+6
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translation
| * | | | | | | Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translationHaoyu Qiu2024-10-262-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `PNAME()` on these properties are redundant as they won't be displayed in the editor and some of them will be automatically ignored by the extraction script.
* | | | | | | | Merge pull request #93401 from Repiteo/style/clang-tidy-fixesThaddeus Crews2024-11-043-19/+19
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Style: Apply `clang-tidy` fixes
| * | | | | | | | Style: Apply `clang-tidy` fixes (superficial)Thaddeus Crews2024-11-041-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | • `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
| * | | | | | | | Style: Apply `clang-tidy` fixesThaddeus Crews2024-11-042-2/+2
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | • `modernize-use-default-member-init` and `readability-redundant-member-init` • Minor adjustments to `.clang-tidy` to improve syntax & remove redundancies
* | | | | | | | Merge pull request #96705 from elmajime/camera_from_external_feedThaddeus Crews2024-11-041-4/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | Add support for external camera feed from external plugin on Android
| * | | | | | | Added external camera feed from external plugin on Androidmaxime.chambefort2024-10-301-4/+1
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Compile certain `CanvasItem._edit_*()` functions with `DEBUG_ENABLED`Michael Alexsander2024-11-022-4/+5
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge pull request #69197 from aaronfranke/fix-tiny-convexThaddeus Crews2024-10-311-1/+1
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | Fix debug line drawing with tiny convex hull mesh colliders
| * | | | | Fix debug line drawing with tiny convex hull mesh collidersAaron Franke2024-10-301-1/+1
| | | | | |
* | | | | | Merge pull request #98303 from Chaosus/vs_transparency_previewYuri Rubinsky2024-10-311-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Add alpha channel display to vec4 previews of visual shader nodes
| * | | | | | Add alpha channel display to vec4 previews of visual shader nodesChaosus2024-10-181-1/+1
| | |_|_|/ / | |/| | | |
* | | | | | Merge pull request #98620 from zeux/lodgen-cleanupClay John2024-10-302-294/+5
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | LOD: Remove "Raycast Normals" and associated "Normal Split Angle" settings
| * | | | | LOD: Remove "Raycast Normals" and associated "Normal Split Angle" settingsArseny Kapoulkine2024-10-282-294/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Raycast Normals" was introduced in 4.4 dev and defaulted to "false". The limited testing results at the time suggested that raycasting generally reduces normal quality compared to native simplifier results, at the same time increasing vertex memory and import time. To play it safe, we introduced a setting that defaulted to false, with the goal of removing it later in 4.4 development cycle if no regressions are noticed. Since we already had three dev snapshots and no reports, this change removes the setting and associated code. "Normal Split Angle" was only used when raycast normals were enabled; this change removes it from the settings, but keeps it in the script binding for compatibility. Existing meshes import exactly the same after this change (unless they chose to override raycasting which would be surprising). split_normals helper was only used in this code path and is also removed for simplicity; it is unlikely that this code will be useful as is, as it can only regenerate normals without fixing tangents or updating positions.
* | | | | | Merge pull request #97934 from adamscott/give-AThousandShips-a-breakThaddeus Crews2024-10-2910-21/+21
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | [Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
| * | | | | Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-2510-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | - Set clang-format `Standard` rule to `c++20`
* | | | | | Merge pull request #98529 from zeux/meshopt-22Clay John2024-10-272-1/+8
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Update meshoptimizer to 0.22
| * | | | | Update meshoptimizer to 0.22Arseny Kapoulkine2024-10-262-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Godot-specific patch is just a single line now; removing this patch will likely require adjusting Godot importer code to handle error limits better. This also adds new SIMPLIFY_ options; Godot is currently not using any of these but might use SIMPLIFY_PRUNE and SIMPLIFY_SPARSE in the future.
* | | | | | Merge pull request #98477 from ↵Thaddeus Crews2024-10-251-12/+12
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | Calinou/styleboxflat-corner-radius-increase-range-hint Increase range hint for StyleBoxFlat `border_width`, `corner_radius` and `expand_margin`
| * | | | | Increase range hint for StyleBoxFlat `border_width`, `corner_radius` and ↵Hugo Locurcio2024-10-241-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | `expand_margin`
* | | | | | Merge pull request #98293 from timothyqiu/emptiness-is-indeed-formClay John2024-10-241-4/+4
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Fix error when undo tile deletion in TileSetAtlasSourceEditor
| * | | | | Fix error when undo tile deletion in TileSetAtlasSourceEditorHaoyu Qiu2024-10-181-4/+4
| | |/ / / | |/| | |
* | | | | Merge pull request #98451 from RandomShaper/ext_text_errThaddeus Crews2024-10-242-2/+26
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | ExternalTexture: Avoid error when destroyed without having been used
| * | | | ExternalTexture: Avoid error when destroyed without having been usedPedro J. Estébanez2024-10-232-2/+26
| |/ / /
* | | | Merge pull request #98041 from Hilderin/fix-lost-gdextensions-on-startupThaddeus Crews2024-10-211-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Fix loss of gdextension on editor startup
| * | | | Fix lost of gdextension on editor startup.Hilderin2024-10-201-2/+2
| | |/ / | |/| | | | | | | | | | Co-authored-by: NetroScript <noreply@enostrion.com>"
* | | | Merge pull request #97205 from tetrapod00/inspect-native-shader-codeThaddeus Crews2024-10-212-0/+14
|\ \ \ \ | |_|/ / |/| | | | | | | Add "Inspect Native Shader Code" to shader inspector and shader editor
| * | | Add "Inspect Native Shader Code" to shader resource and shader editortetrapod002024-10-082-0/+14
| | | |
* | | | Merge pull request #97770 from tdaven/fix-94151Thaddeus Crews2024-10-141-0/+2
|\ \ \ \ | |_|_|/ |/| | | | | | | Fix immediate mesh modifications that don't call set_mesh
| * | | Fix immediate mesh modifications that don't call set_meshTrevor Davenport2024-10-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mesh_instance_2d has no way to know when the mesh had been modified unless you called set_mesh. This meant that you could modify the underlying mesh without it knowing which could result in incorrect result. Modified mesh_instance_2d to be more similar to mesh_instance_3d which connects to the changed signal of the mesh and reacts occordingly.
* | | | Fix implementation of property_can_revert() in various classeskobewi2024-10-041-6/+3
| |_|/ |/| |