Commit Graph

5451 Commits

Author SHA1 Message Date
c3720e2381 Document Camera3D's frustum offset property requiring Frustum projection 2022-08-03 02:46:12 +02:00
d93c3f03f2 Merge pull request #63803 from matjlars/weakref-null
adds null case to weakref docs
2022-08-02 22:00:04 +02:00
dc4e72a3fc adds null case to weakref docs 2022-08-02 11:53:28 -05:00
9db973a473 Rename ParticlesMaterial.turbulence_active to turbulence_enabled 2022-08-02 08:41:14 -05:00
4373a0bb86 [TextServer] Add ICU Unicode security and spoofing detection. 2022-08-02 15:37:49 +03:00
fe2cc6150e Added default values to particle turbulence. 2022-08-02 10:16:09 +02:00
b7346e5025 Merge pull request #53956 from bruvzg/icu_uax_31 2022-08-02 08:54:19 +02:00
5aa48b6ae5 [TextServer] Implement ICU/UAX 31 based is_valid_identifier function. 2022-08-02 08:30:20 +03:00
8cce479c01 Merge pull request #51672 from Calinou/shader-add-hint-transparent-texture
Add `hint_transparent` to use a transparent black placeholder texture
2022-08-02 07:15:59 +02:00
813f6a5d57 Add hint_transparent to use a transparent black placeholder texture
This can be used in shaders to avoid the need to supply a transparent
placeholder texture manually.
2022-08-01 23:38:06 +02:00
ada06f9862 Merge pull request #63007 from jtnicholl/animation_player_docs 2022-08-01 22:03:17 +02:00
245fba26b0 Update classref documentation for AnimationPlayer 2022-08-01 12:46:03 -04:00
5ecd61a315 Merge pull request #54738 from Calinou/expose-os-restart-on-exit 2022-08-01 16:49:18 +02:00
1b713175b2 Expose the "restart on exit" OS functionality
This can be used to restart a project with specific command line arguments
applied. This can work in tandem with `OS.get_cmdline_args()` to restart
with the same command line arguments as used to originally run the project.

Example use cases:

- Restart to apply an user setting change that requires a restart to work.
- Restart with a Godot command line argument to change the video driver,
  audio driver, etc.
2022-08-01 14:06:13 +02:00
ac801494a3 Change LabelSettings default values to match default theme. 2022-08-01 13:33:06 +03:00
cab107d063 docs: Caveats of NavigationMesh.create_from_mesh
Adds a note explaining the requirements of the given [Mesh] when converting a [Mesh] to a [NavigationMesh] using `NavigationMesh.create_from_mesh`.
2022-08-01 09:46:58 +02:00
beb8fd5e8b Merge pull request #55387 from RPicster/particles-turbulence 2022-08-01 09:38:54 +02:00
de53e91b85 Merge pull request #55276 from Calinou/volumetric-fog-tweak-default-gi-inject
Tweak default fog settings for better appearance
2022-08-01 07:55:53 +02:00
677f565ce8 Merge pull request #63587 from clayjohn/specular-occlusion
Treat specular less than 0.02 as occlusion
2022-08-01 07:54:57 +02:00
44f1e540f6 Merge pull request #63733 from akien-mga/file-get_as_text-skip-CR
File: Re-add support to skip CR (`\r`) in `File::get_as_text`
2022-08-01 07:54:20 +02:00
e35e79b802 Tweak default fog settings for better appearance
- Increase the default non-volumetric fog density to 0.01 to make
  adjustments more visible.
- Use a less saturated non-volumetric fog color by default
  (a mix of the sky and horizon colors of the new default
  ProceduralSkyMaterial).
- Set Volumetric Fog Gi Inject to 1.0 by default. Injecting GI results
  in more realistic appearance of volumetric fog, at a very low
  performance cost.
2022-08-01 02:04:20 +02:00
0dd65378e7 Add support for command-line user arguments.
Implements the standard Unix double dash (--) commandline argument:
* Arguments after a double dash (--) are ignored by Godot and stored for the user.
* User can access them via `OS.get_cmdline_user_args()`

Example:

`godot.exe scene_to_run.tscn --fullscreen -- --start-level 2`
2022-08-01 00:56:59 +02:00
0c65ed38a6 Treat specular less than 0.02 as occlusion
This is a very common hack used in almost all PBR renderers to allow removing specular contribution in dielectric materials
2022-07-31 15:45:21 -07:00
1418f97c70 File: Re-add support to skip CR (\r) in File::get_as_text
This was removed in #63481, and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.

For performance this is done directly in `String::parse_utf8`.

Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.

Supersedes #63717.
2022-08-01 00:40:35 +02:00
787bb0f269 Merge pull request #54732 from zedutch/fix-threaded-load-request-cachemode 2022-07-31 23:55:55 +02:00
790b63b27c Merge pull request #51128 from HaSa1002/add-graphedit-is-ok-method-4 2022-07-31 23:55:19 +02:00
6c5330154e Merge pull request #63429 from RandomShaper/indicate_overridden 2022-07-31 23:54:38 +02:00
e8d9191ff0 Merge pull request #56087 from zaevi/return_key_index 2022-07-31 23:53:19 +02:00
a0795b4347 Tweak VoxelGI defaults for better quality
Overall brightness is similar to the previous settings, but lighting
now fades off more naturally and reflections feature indirect lighting.
Performance is identical.

- Enable Use Two Bounces by default.
- Decrease Propagation to 0.5 to compensate for the second bounce.
2022-07-31 18:05:24 +02:00
Zae
2febf0ccdb Make Animation::track_insert_key return key index 2022-07-31 17:38:49 +02:00
2fb69afde6 Add GraphEdit.is_node_hover_valid(...) method
This is a virtual method that can be used to add additional error
condition checks while the connection is still being dragged. If true is
returned, the connection is valid. If false is returned, the connection
is invalid and thus not possible (ie. it will not snap). The virtual
method is exposed with an underscore to scripts.
2022-07-31 15:35:26 +02:00
1cfe3c3f8b Expose load_threaded_request's cachemode to GDScript 2022-07-31 14:04:11 +02:00
0e26fee3b7 Make Decal's modulate property affect emission color as well
This can be used to recolor special effects such as fake area fog
without having to create separate textures for each color.

- Improve the Decal class documentation.
2022-07-30 21:41:48 +02:00
4a127cb5fe Improve usability of non-default values in the property inspector
- Provide a visual indication that a (sub)group contains non-default (revertable) values when it's collapsed.
- Add a new option to the inspector's tools menu for expanding only (sub)groups containing properties with non-default values.
2022-07-30 15:25:45 +02:00
b2429aab1f Merge pull request #49288 from Calinou/doc-improve-collisionobject
Improve CollisionObject2D and CollisionObject3D pickable documentation
2022-07-30 11:59:16 +02:00
162186cfe8 Merge pull request #63651 from fabriceci/fix-typo-doc-character-body-3d
Fix typos in the CharacterBody3D doc file
2022-07-30 11:20:50 +02:00
1fca76a852 Merge pull request #63648 from snailrhymer/mesh-classref-fixes
Fix add_surface_from_arrays description in classref
2022-07-30 09:21:34 +02:00
9094262a6b Merge pull request #48548 from Calinou/editor-help-add-editor-settings
Add support for documenting most editor settings in the class reference
2022-07-30 00:39:16 +02:00
a6229bf016 Fix add_surface_from_arrays description in classref
Fix add_surface_from_arrays description in ImporterMesh.xml and ArrayMesh.xml to correctly describe sub-array length requirements.

Also add missing comma in MeshInstance3D.xml, reword slightly.
2022-07-29 22:19:48 +01:00
15a02c49be Merge pull request #61647 from KoBeWi/SaverResource 2022-07-29 22:30:51 +02:00
b7639c2995 Merge pull request #63638 from PrecisionRender/improve-shape-cast-docs 2022-07-29 22:29:10 +02:00
4af0a528a7 Fix typos in the CharacterBody3D doc file 2022-07-29 22:11:38 +02:00
63ce655e75 Add support for documenting most editor settings in the class reference
Settings defined in editor plugins are missing (about 100 of them),
but all other settings (about 200 of them) can now be documented in the
EditorSettings class.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-29 22:07:01 +02:00
3f546b7d7c Improve ShapeCast2D and ShapeCast3D docs 2022-07-29 13:26:05 -05:00
c3606cb5f3 Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
6ba7dacf6b Merge pull request #63415 from ajreckof/expose_tilemap_custom_data_methods
Expose TileMap methods related to the name of custom data layers
2022-07-29 19:43:55 +02:00
ba3734e69a Merge pull request #63603 from aaronfranke/editor-paths
Move editor paths into the EditorPaths class
2022-07-29 19:31:59 +02:00
7199314eb3 Merge pull request #63595 from reduz/remove-signal-connect-binds
Remove Signal connect binds
2022-07-29 18:10:39 +02:00
ac870ab1c8 Move editor paths into the EditorPaths class 2022-07-29 11:07:30 -05:00
d4433ae6d3 Remove Signal connect binds
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind().
Changed all uses of it to Callable.bind()
2022-07-29 16:26:13 +02:00