summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2022-06-27Refactor bezier interpolation functionsHendrik Brucker
2022-06-27Merge pull request #62185 from reduz/export-node-pointer-pathRémi Verschelde
Add ability to export Node pointers as NodePaths
2022-06-25Add ability to export Node pointers as NodePathsreduz
This PR implements: * A new hint: PROPERTY_HINT_NODE_TYPE for variant type OBJECT, which can take specific node types as hint string. * The editor will show it as a node path, but will set it as a pointer to a node from the current scene if you select a path. * When scene is saved, the node path is saved, then restored as a pointer. NOTE: This is a proof of concept and this approach will most likely not work. The reason if that, if the node referenced is deleted, then when trying to edit this the node will become invalid. Potential workarounds: Since this uses the Variant API, it should obtain the pointer from the Variant object ID. Yet, this would either only really work in GDScript or it would need to be implemented with workarounds in every language. Alternative ways to make this work: Nodes could export an additional property with a node path (like for which_node, it could be which_node_path). Another alternative: Path editing could happen as a hidden metadata (ignoring the pointer).
2022-06-25Merge pull request #62314 from tefusion/capsulemesh-radius-height-settersRémi Verschelde
Fix CapsuleMesh height/radius setters
2022-06-25Merge pull request #62309 from reduz/remake-resource-thread-safetyRémi Verschelde
Remake ResourceCache thread safety code and API
2022-06-23Fix Curve{2D,3D} notifying property list changedRaul Santos
Make `Curve2D` and `Curve3D` more consistent with `Curve` and avoid calling `notify_property_list_changed` when the list of points doesn't change.
2022-06-23Merge pull request #62348 from smix8/navigation_baking_aabb_4.xRémi Verschelde
2022-06-23Merge pull request #61628 from Vitika9/61617Rémi Verschelde
2022-06-23Merge pull request #61931 from KoBeWi/how_to_windowRémi Verschelde
Document most of the Window's members
2022-06-23Implement NavigationMesh bake areasmix8
Adds two new properties to NavigationMesh resources to restrict the navmesh baking to an area enclosed by an AABB with volume.
2022-06-23Merge pull request #62268 from V-Sekai/lightmap-errorsJFonS
2022-06-23Mend crash importing a scene with static lightmaps.K. S. Ernest (iFire) Lee
2022-06-22Add surface indices to TriangleMeshreduz
Helps unblock #56597
2022-06-22Document most of the Window's memberskobewi
2022-06-22Fixed dragging curve pointsVitika9
2022-06-22Fix CapsuleMesh loading issue (radius reset)tefusion
2022-06-22Merge pull request #58544 from Calinou/tileset-source-allow-canvasitemmaterialRémi Verschelde
2022-06-22Merge pull request #56185 from nikitalita/fix-save-as-binaryRémi Verschelde
Fix ResourceLoaderText::save_as_binary()
2022-06-22Remake resource thread safety and APIreduz
* Ensures thread safety when resources are destroyed. * Simplified API by always forcing `ResourceCache::get_ref`, which needs less hacks and is fully thread safe. * Removed RWLock for resources because its not possible to use for the new logic. Should not be a problem. Supersedes #57533
2022-06-21Allow using CanvasItemMaterial in the TileSet editorHugo Locurcio
Previously, only ShaderMaterial overrides could be added.
2022-06-21Merge pull request #62198 from Calinou/text-resource-remove-extraneous-spacesRémi Verschelde
Remove spaces in `SubResource()/ExtResource/Resource()` in text resources
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-19Remove spaces in `SubResource()/ExtResource/Resource()` in text resourcesHugo Locurcio
These spaces are not needed for the file to be successfully parsed. Other types such as Vector3 are no longer serialized with spaces after the opening parenthesis and before the closing parenthesis, so this is also more consistent.
2022-06-19Declaring emission_tex_ofs globallymightygoat
2022-06-17[Net] Fix SceneReplicationConfig setter.Fabio Alessandrelli
Used by resource loader, it would always add properties as both sync and spawn, disregarding the actual option value.
2022-06-16Merge pull request #61888 from Chaosus/vs_remove_engine_versionRémi Verschelde
Remove engine version from visual shader
2022-06-16Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg
TextServer.
2022-06-15Merge pull request #61952 from V-Sekai/custom-docsRémi Verschelde
`SurfaceTool.set_custom_format` Fixes and documentation.
2022-06-14`SurfaceTool.set_custom_format` Fixes and documentation.Lyuma
Fix mistake making `set_custom_format` impossible to use. Automatically forward custom flags in `SurfaceTool.commit`. Add documentation in `SurfaceTool` and `Mesh` for custom channels. Deprecate `SurfaceTool.generate_lod` and expose `ImporterMesh.generate_lods`.
2022-06-14Merge pull request #62042 from ↵Rémi Verschelde
Calinou/basematerial3d-nearest-height-always-linear Always sample the heightmap with linear filtering in BaseMaterial3D
2022-06-14Always sample the heightmap with linear filtering in BaseMaterial3DHugo Locurcio
Nearest-neighbor filtering of the heightmap results in a broken appearance, with and without Deep Parallax enabled on the material. Linear filtering results in a more expected appearance. This does not affect other texture maps such as albedo, normal or roughness.
2022-06-14Add Vector2/3 linking to more propertiesFireForge
- Camera2D.zoom - CanvasLayer.scale - ParallaxBackground.scroll_base_scale - ParallaxLayer.motion_scale - Polygon2D.texture_scale - BaseMaterial3D.uv1_scale - BaseMaterial3D.uv2_scale
2022-06-13Merge pull request #61974 from Calinou/project-settings-mark-as-basicRémi Verschelde
2022-06-13Merge pull request #61809 from groud/terrain_center_bitRémi Verschelde
2022-06-13Merge pull request #61772 from bruvzg/ft_ot_collectRémi Verschelde
2022-06-12Merge pull request #61961 from jtnicholl/anim_lib_type_hintsRémi Verschelde
Fix type hints for AnimationLibrary's signals' arguments
2022-06-12Mark some common project settings as basicHugo Locurcio
2022-06-12Fix type hints for AnimationLibrary's signalsJonathan Nicholl
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-11Revert vector4 output ports in visual shadersYuri Rubinsky
2022-06-10Add terrain center bitGilles Roudière
2022-06-10Remove engine version from visual shaderYuri Rubinsky
2022-06-09Add a property hint to Environment's `sky_rotation` propertyHugo Locurcio
This property hint is identical to Node3D's `sky_rotation` property and provides degree-based editing.
2022-06-09Merge pull request #61813 from smix8/navigationmesh_properties_naming_4.xRémi Verschelde
2022-06-09Remove slash delimiter from NavigationMesh propertiessmix8
Remove slash delimiter from NavigationMesh properties.
2022-06-09Merge pull request #61830 from XutaxKamay/fix-image-textureRémi Verschelde
Fix for regression of an ImageTexture being imported
2022-06-09Fix for ImageTexture importedKamay Xutax
Someone apparently forgot to return true ... on ImageTexture::_set/_get
2022-06-08Merge pull request #61662 from smix8/navigation_map_cell_defaults_4.xRémi Verschelde
2022-06-08Re-add internal image field to ImageTexturekobewi
2022-06-07Merge pull request #61558 from kleonc/triangle_mesh_from_triangle_stripRémi Verschelde
Make `Mesh::generate_triangle_mesh()` handle `PRIMITIVE_TRIANGLE_STRIP`