Commit Graph

41474 Commits

Author SHA1 Message Date
Hugo Locurcio
c10e97b604
Clamp environment light sky contribution to the [0.0; 1.0] range
The value is already clamped in the editor, but it wasn't being
clamped when the value was set via code. Values outside the [0.0; 1.0]
range can result in broken rendering.
2022-02-14 17:15:32 +01:00
Rémi Verschelde
45428e91ba
Merge pull request #58095 from timothyqiu/intersect-point 2022-02-14 17:06:23 +01:00
Hugo Locurcio
15244e55bd
Improve completion scroll bar visibility in the script editor
This makes the scroll bar bar thicker and more opaque (roughly
matching the editor theme's scroll bar by default).
2022-02-14 16:49:08 +01:00
Rémi Verschelde
f810f76890
Merge pull request #57306 from trollodel/remove_editornode_param 2022-02-14 16:40:40 +01:00
Rémi Verschelde
cd6301ae25
Merge pull request #58008 from Geometror/increase-checkerboard-contrast 2022-02-14 15:22:50 +01:00
Rémi Verschelde
f3a5df7822
Merge pull request #58090 from pycbouh/editor-missing-check-icons 2022-02-14 15:22:35 +01:00
Rémi Verschelde
89996be091
Merge pull request #57988 from markdibarry/add_get_last_visible_character_line 2022-02-14 15:22:03 +01:00
Haoyu Qiu
66838d88e1 Validate PhysicsDirectSpaceState{2,3}D::_intersect_point input 2022-02-14 22:21:28 +08:00
Rémi Verschelde
af98de8823
Merge pull request #58089 from YeldhamDev/crashy_tabs 2022-02-14 15:21:18 +01:00
Yuri Sizov
7f4b71b682 Add missing CheckButton icons 2022-02-14 16:23:59 +03:00
trollodel
05b56f316d Remove most EditorNode constructor parameters and fields 2022-02-14 14:16:24 +01:00
Rémi Verschelde
6e73aa0497
Merge pull request #57887 from Faless/crypto/4.x_os_get_entropy 2022-02-14 12:15:10 +01:00
Fabio Alessandrelli
f4a80f9ca7 [OSX] Codesign exporter now uses CryptoCore RNG. 2022-02-14 10:45:50 +01:00
Fabio Alessandrelli
f72bd67068 [ResourceUID] Use CryptoCore::RandomGenerator for IDs. 2022-02-14 10:45:50 +01:00
Fabio Alessandrelli
ee7b67e135 [Crypto] Implement CryptoCore::RandomGenerator.
As a cryptographically secure random generator.

Internally it uses mbedTLS CTR-DRBG implementation which gets re-seeded
with entropy from OS::get_entropy when needed.

CryptoCore now additionally depends on `ctr_drbg.c` and `entropy.c`
thirdparty mbedtls files.
2022-02-14 10:45:50 +01:00
Fabio Alessandrelli
6b5634b96a [OS/Crypto] Add get_entropy to OS.
Implemented via `BCryptGenRandom` on Windows.
Implemented via `getentropy` syscall when available.
Implemented via `/dev/urandom` device as a fallback.

The `/dev/urandom` fallback can be disabled via the `NO_URANDOM` build
flag.

Note: The HTML5 version relies on emscripten file system urandom
device which itself uses the Crypto API when available or the plain
old not crypto-safe `Math.random()` otherwise.

Restore get_entropy.
2022-02-14 10:45:50 +01:00
JFonS
8317753c24
Merge pull request #57964 from mbrlabs/deselect
Deselect nodes in the 3D editor when pressing ESC
2022-02-14 10:42:46 +01:00
JFonS
58199e5ad0
Merge pull request #57990 from jmb462/fix-drag-lines-precision-issue
Fix 3D editor axis drag lines precision issue
2022-02-14 10:39:44 +01:00
Rémi Verschelde
b59c482f10
Merge pull request #58053 from kleonc/navmap-polygons-are-triangle-fans-not-triangle-strips
`NavMap` Fix polygons being treated like triangle strips instead of triangle fans
2022-02-14 10:19:34 +01:00
Rémi Verschelde
94f3b2807a
Merge pull request #58079 from timothyqiu/anim-dup-name
Make duplicate animation prompt for new name
2022-02-14 09:44:06 +01:00
Rémi Verschelde
09a61cdf53
Merge pull request #57989 from RandomShaper/update_vma
Update & patch VMA, and re-implement the small buffers optimization
2022-02-14 09:07:11 +01:00
Rémi Verschelde
618324cd84
Merge pull request #57611 from TechnicalSoup/TechnicalSoup-patch-2
Cleanup of preprocessor directives in main.cpp
2022-02-14 08:44:25 +01:00
Rémi Verschelde
f45fedaf96
Merge pull request #57985 from Pineapple/pitchshift-tweaks
PitchShift effect quality and performance tweaks for different pitch scale values
2022-02-14 08:27:08 +01:00
Haoyu Qiu
9aaab5b693 Make duplicate animation prompt for new name 2022-02-14 14:48:25 +08:00
TechnicalSoup
899057c710 Cleanup of preprocessor directives in main.cpp
Remove redundant set of preprocessor directives and combine duplicate if statements.
2022-02-14 16:20:31 +11:00
Michael Alexsander
2b4d417e99 Fix crash when removing tabs from TabBar 2022-02-14 01:58:17 -03:00
FireForge
dbc380af59 Fix EditorProperty text and icon overlap bugs 2022-02-13 22:27:06 -06:00
Hugo Locurcio
7ca843b655
Only store _edit_use_anchors_ metadata if value is not the default
The default value is assumed to be `false`, so this metadata
only needs to be stored if the value is `true`.
2022-02-14 01:26:57 +01:00
kleonc
5422d863e1 NavMap Fix polygons being treated like triangle strips instead of triangle fans 2022-02-13 19:26:17 +01:00
markdibarry
ae7eec53c0 Add get_character_line method for RichTextLabel
Adds the ability to get the line number of provided character position

Fix arg name

Add get_character_paragraph

Replaced glyph logic with code suggestions, added get_character_paragraph method

Run doctool

Use built-in method

Replace TS access with built in method
2022-02-13 11:12:12 -05:00
Rémi Verschelde
48ed0400bc
Merge pull request #58028 from Calinou/doc-array-hash
Clarify identical `hash()` return values due to collisions
2022-02-13 10:38:33 +01:00
Rémi Verschelde
e9ef64526a
Merge pull request #57892 from TechnicalSoup/ProjManager-Patch
Center initial position of project manager window
2022-02-13 10:37:48 +01:00
Rémi Verschelde
7224389468
Merge pull request #57954 from TokageItLab/refactor-cubic-interpolate
Implement `cubic_interpolate()` as MathFunc for refactoring
2022-02-13 10:34:13 +01:00
TechnicalSoup
f3b7419790 Center initial position project manager window
Ensure that the project manager window is centered on the screen if any resizing is performed due to DPI scaling.
Resizing and repositioning code has been moved to after the initialisation of the window contents to improve UI response/presentation.
2022-02-13 19:48:53 +11:00
Rémi Verschelde
aa069a4d31
Merge pull request #58033 from jmb462/fix-mouse-wheel-animation-track-zoom
Fix AnimationTrack mouse wheel zooming at low zoom level
2022-02-13 08:27:27 +01:00
jmb462
64ca6a0696 Fix AnimationTrack mouse wheel zooming at low zoom level 2022-02-13 00:24:35 +01:00
Rémi Verschelde
26b21dc0cb
Merge pull request #58030 from pycbouh/editor-controls-dragging-n-lagging
Limit inspector updates when dragging anchored controls
2022-02-12 23:50:32 +01:00
Rémi Verschelde
35d8d86845
Merge pull request #58026 from jmb462/fix-visual-script-rename-function
Fix renaming function dialog in VisualScript does not work correctly
2022-02-12 23:18:43 +01:00
Rémi Verschelde
0203b34c7a
Merge pull request #58025 from bruvzg/fix_pm_crash
Fix Project Manager crash on exit and editor settings loading / saving.
2022-02-12 23:16:24 +01:00
Rémi Verschelde
4368d6d80e
Merge pull request #58020 from bruvzg/mac_beeps
[macOS] Fix macOS producing alert sound on some input actions.
2022-02-12 23:15:29 +01:00
Hugo Locurcio
08541fe11d
Clarify identical hash() return values due to collisions 2022-02-12 22:21:37 +01:00
Yuri Sizov
ddc8ec6b44 Limit inspector updates when dragging anchored controls 2022-02-13 00:19:06 +03:00
jmb462
e5657a4fbf Fix renaming function dialog in VisualScript does not work correctly 2022-02-12 21:28:28 +01:00
bruvzg
9739a2038a
Fix Project Manager crash on exit.
Fix editor settings loading / saving by Project Manager.
2022-02-12 21:55:11 +02:00
bruvzg
5c641372fc
[macOS] Fix macOS producing alert sound on some input actions. 2022-02-12 19:58:39 +02:00
bruvzg
29199579f7
Add sub-pixel glyph positioning support. 2022-02-12 19:55:52 +02:00
Rémi Verschelde
d3a6b6daaa
Merge pull request #56953 from bruvzg/ex_wnd 2022-02-12 16:46:55 +01:00
Rémi Verschelde
498805282a
Merge pull request #57993 from Calinou/sky-tweak-default-values 2022-02-12 16:46:19 +01:00
Rémi Verschelde
732725d663
Merge pull request #58006 from bruvzg/fix_rtl_img_resize 2022-02-12 15:28:26 +01:00
Rémi Verschelde
7d0b9ec21a
Merge pull request #52742 from Geometror/improve-project-manager-file-dialog 2022-02-12 15:28:09 +01:00