Commit Graph
51458 Commits
Author SHA1 Message Date
kobewi 5947f688fb Make JSON methods static 2022-08-16 14:29:38 +02:00
kobewi cc424bcb18 Add Dictionary.find_key() 2022-08-16 13:48:59 +02:00
VolTer 2599710793 Rename NOTIFICATION_INSTANCED to NOTIFICATION_SCENE_INSTANTIATED 2022-08-16 12:41:10 +02:00
danboo 14ddeb8e44 break out of font search loop after first match
The documentation for the font_names property indicates:

   Array of font family names to search, first matching font found is used.
2022-08-15 20:58:48 -08:00
Jamie Pate c2e3971013 Improve performance of screen_get_dpi() in Javascript
Replace a bisect with a single multiplication when calling
screen_get_dpi() in Javascript

Tested the value of
window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches
which is true except for values that cause a lot of rounding errors
(e.g. dpr : 0.3  => resolution: 28.799999999999997dpi)

Even in these cases the value matches the result of the previous
`findDPI()` method.

See also:

https://github.com/godotengine/godot/commit/6cff589b5bd483b563fe465bde74ca94902aab41#r81273660
2022-08-15 21:12:19 -07:00
Yuri SizovandGitHub d5d22ab035 Merge pull request #64439 from YuriSizov/docs-line2d-clarity
Clarify the `Line2D`, `Curve2D/3D` documentation and fix parameter names
2022-08-15 23:22:22 +03:00
Fredia Huya-KouadioandGitHub 6883e97ff0 Merge pull request #64421 from m4gr3d/investigate_read_write_access_loss_main
Fix issue preventing the Android Editor from displaying the project content
2022-08-15 13:18:06 -07:00
Aaron Franke a165d4dd72 Move ShaderCreateDialog's ShaderType enum out of the header 2022-08-15 15:08:50 -05:00
Aaron Franke 4396f03b70 Rename EditorPropertyShaderMode to EditorPropertyVisualShaderMode 2022-08-15 14:39:53 -05:00
Yuri Rubinsky 13ab70ed2a Add elif directive to shader preprocessor 2022-08-15 22:06:49 +03:00
Yuri Sizov fff0e7b8e2 Clarify the Line2D, Curve2D/3D documentation and fix parameter names 2022-08-15 21:38:14 +03:00
bitsawer 40325006b6 Fix Windows list dir handle leak 2022-08-15 20:27:29 +03:00
Hugo Locurcio 0f95db6786 Hide properties that have no effect in Label3D inspector
- Use the disabled GI mode as Label3D can't contribute to GI in any way.
- Improve Label3D class documentation.
2022-08-15 18:41:32 +02:00
Clay JohnandGitHub 4dbb6ecc21 Merge pull request #64128 from and3rson/convert3to4-fixes-3
Add conversion for instance(), set_shader_param() and node path literals
2022-08-15 09:49:29 -06:00
Haoyu Qiu 660c700f9c Fix action name completion for Input 2022-08-15 23:28:49 +08:00
Yuri Sizov d953d9590b Improve the make_rst.py parser for BBCode tags 2022-08-15 17:45:10 +03:00
Andy Maloney f52128e005 [doc] Clarify that AnimationNode virtual methods need to be implemented rather than called directly
Fixes #62379
2022-08-15 09:47:04 -04:00
Yuri SizovandGitHub 4426049c64 Merge pull request #64314 from YuriSizov/control-theme-item-cache
Add dumb theme item cache to `Control`
2022-08-15 16:35:59 +03:00
Yuri SizovandGitHub 147fa69b2d Merge pull request #64333 from asmaloney/doc-params-8
[doc] Use "param" instead of "code" to refer to parameters (8)
2022-08-15 16:32:44 +03:00
Yuri SizovandGitHub 373439bc4b Merge pull request #64331 from asmaloney/doc-params-7
[doc] Use "param" instead of "code" to refer to parameters (7)
2022-08-15 16:24:35 +03:00
Yuri SizovandGitHub dc661cc9ef Merge pull request #64328 from asmaloney/doc-params-6
[doc] Use "param" instead of "code" to refer to parameters (6)
2022-08-15 16:17:52 +03:00
Yuri SizovandGitHub deec057ff8 Merge pull request #64319 from asmaloney/doc-params-5
[doc] Use "param" instead of "code" to refer to parameters (5)
2022-08-15 16:17:25 +03:00
Andy MaloneyandYuri Sizov ef942718a0 [doc] Use "param" instead of "code" to refer to parameters (5) 2022-08-15 15:49:48 +03:00
Rémi VerscheldeandGitHub 9145420a65 Merge pull request #63872 from Chaosus/shader_branch_color
Implement coloring for disabled branches in the shader editor
2022-08-15 12:16:15 +02:00
Fredia Huya-Kouadio 44dc24ec38 Disable threads used to check on plugins to load
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources
2022-08-15 02:30:43 -07:00
Fredia Huya-Kouadio b3117b6369 Fix issue preventing the Android Editor from displaying the project content
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached.
This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
2022-08-15 02:22:10 -07:00
Rémi VerscheldeandGitHub eda6800f5d Merge pull request #64341 from clayjohn/GLES3-lights
Bind uniform buffer locations for lights even when no lights present
2022-08-15 09:16:25 +02:00
Aaron Franke e0d80b37e9 Don't try to merge unused bone AABBs in the rendering server 2022-08-14 23:30:48 -05:00
Fredia Huya-KouadioandGitHub 5a8d786ef9 Merge pull request #63122 from m4gr3d/split_can_export_main
Refactor the export checking logic to improve separation of concerns
2022-08-14 19:26:22 -07:00
Aaron Franke be81b33e2b GLTF: Fix orthographic cameras, internally store data in GLTF's format 2022-08-14 19:18:53 -05:00
Aaron FrankeandGitHub 128d68796d Merge pull request #64403 from aaronfranke/gltf-doc
Document GLTFLight and GLTFSpecGloss
2022-08-14 19:17:17 -05:00
Aaron Franke 40f37e697c Fix incorrect Camera3D size documentation 2022-08-14 15:57:19 -05:00
Aaron Franke 3bbb50359d Document GLTFLight and GLTFSpecGloss 2022-08-14 14:57:58 -05:00
Fredia Huya-KouadioandFredia Huya-Kouadio 45c7377556 Refactor the export checking logic to improve separation of concerns 2022-08-14 09:12:04 -07:00
smix8 5162d9ac8b Fix NavigationObstacle 2D/3D (re)parent issues
Fixes (re)parent issues with NavigationObstacle 2D and 3D (same as NavigationAgents).
Also adds the option from NavigationAgents to override the default navigation map.
2022-08-14 16:23:27 +02:00
VolTer 2e6108d181 Improve binary operator highlighting 2022-08-14 15:49:07 +02:00
Hugo Locurcio 39ba2b335a Document run-time SceneTree debug property changes not working correctly 2022-08-14 15:06:29 +02:00
Yuri Rubinsky 22df2c527b Implement coloring for disabled branches in the shader editor 2022-08-14 13:57:26 +03:00
Haoyu Qiu d5a559abc2 Fix crash when loading Animation Library after reloading a scene 2022-08-14 18:50:42 +08:00
smix8 4f0730d4bc Add Navigation Debug for GridMap edge connections
Adds navigation visual debug for GridMap edge connections that use baked navigationmesh with bake_navigation=true.
2022-08-13 21:27:56 +02:00
Omar El Sheikh f1fda97c33 Implement Octahedral on OpenGL3 2022-08-13 10:20:14 -07:00
Hugo Locurcio f6417a4ead Hide Dummy text driver in the Project Settings as it makes editor unusable
This also improves documentation related to driver project settings.
2022-08-13 19:05:46 +02:00
Omar El Sheikh 78881b3cc3 Octahedral Normal/Tangent Compression
Implementation of Octahedral normal compression into Godot 4.0
2022-08-13 08:09:32 -07:00
Patrick 2b93f44739 small typo in TextServer, changes bitwise to logical which can be faster in some cases via "short circuiting" 2022-08-13 07:44:41 -06:00
Micky fe86c5cba5 Rename CanvasItem.follow_viewport_enable to end with "d"
For consistency with the rest of the exposed booleans in Godot
2022-08-13 13:00:45 +02:00
Micky 55dff09e93 Rename EditorPlugin.*_PROPERTY_EDITOR_* to *_INSPECTOR_*
The name "Inspector" has been adopted for years and is thus more familiar.
2022-08-13 12:59:03 +02:00
Micky b62d06fbed Rename Navigation's neighbor_dist to neightbor_distance
NavigationAgent2D/3D.`neighbor_dist` -> `neighbor_distance` (also affects setters and getters)

NavigationServer2D/3D.`agent_set_neighbor_dist()` -> `agent_set_neighbor_distance()`

Also changes their parameters' names.

Doesn't affect "Agent.neighborDist_" in Agent.h
2022-08-13 12:40:55 +02:00
Micky 953c78eaff Improve documentation of CanvasItem's draw logic 2022-08-13 01:46:19 +02:00
Hendrik Brucker e96b1a2c0c Implement MSAA for 2D [Vulkan only] 2022-08-13 01:09:48 +02:00
clayjohn 7d6287f616 Properly scale depth in bokeh_dof effect so that setting distance to blur effect is accurate again 2022-08-12 16:39:05 -06:00