Commit graph

45848 commits

Author SHA1 Message Date
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:

6cff589b5b (r81273660)
2022-08-15 21:12:19 -07:00
Yuri Sizov
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-Kouadio
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 John
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
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 Sizov
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 Sizov
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 Sizov
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 Sizov
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 Sizov
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 Maloney
ef942718a0 [doc] Use "param" instead of "code" to refer to parameters (5) 2022-08-15 15:49:48 +03:00
Rémi Verschelde
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 Verschelde
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-Kouadio
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
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-Kouadio
45c7377556 Refactor the export checking logic to improve separation of concerns 2022-08-14 09:12:04 -07: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
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
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
953c78eaff Improve documentation of CanvasItem's draw logic 2022-08-13 01:46:19 +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
clayjohn
65e0b266d1 Bind uniform buffer locations for lights even when no lights present to comply with strict webGL drivers 2022-08-12 15:23:01 -06:00
Yuri Rubinsky
f2a6168414
Merge pull request #64310 from Chaosus/shader_texture_funcs 2022-08-12 21:28:22 +03:00
Andy Maloney
9b345e793a [doc] Use "param" instead of "code" to refer to parameters (8) 2022-08-12 14:00:25 -04:00
Yuri Rubinsky
cf1bb3d83a
Merge pull request #64307 from Chaosus/shader_texture_proj_grad 2022-08-12 20:45:55 +03:00
Yuri Rubinsky
e21aad968d Add textureQueryLod/Levels functions to the shader language 2022-08-12 20:44:57 +03:00
QbieShay
ecbeb8de1b Improve visual shader defaults for quality of life
- multiply part of addmultiply defaults to 1
- curvetexture's repeat is turned off
- vectors into float takes first component instead of average
2022-08-12 19:39:56 +02:00
Andy Maloney
d32803fdd6 [doc] Use "param" instead of "code" to refer to parameters (7) 2022-08-12 13:19:48 -04:00
Andy Maloney
ea2192b99e [doc] Use "param" instead of "code" to refer to parameters (6) 2022-08-12 12:07:53 -04:00
Clay John
22bb15cde5
Merge pull request #64306 from RandomShaper/win_spawn_text
Fix jumbled error output when using Windows spawn fix
2022-08-12 09:52:12 -06:00
Yuri Sizov
29492f9084
Merge pull request #64285 from asmaloney/doc-params-4
[doc] Use "param" instead of "code" to refer to parameters (4)
2022-08-12 15:59:11 +03:00
Yuri Sizov
65a1d86c4f
Merge pull request #64196 from asmaloney/doc-params-3
[doc] Use "param" instead of "code" to refer to parameters #3
2022-08-12 15:29:58 +03:00
daylilyzeleen
64e33d9ed1 fixed GraphEdit signal argument type 2022-08-12 20:18:36 +08:00
Yuri Sizov
9f88300007 Add dumb theme item cache to Control 2022-08-12 14:36:06 +03:00
Yuri Rubinsky
7822fbc9e2 Add textureProjGrad function to the shader language 2022-08-12 12:01:37 +03:00