Commit Graph

31565 Commits

Author SHA1 Message Date
Rémi Verschelde 04bef80b42
Merge pull request #43992 from vnen/variant-internal-object-set
Fix VariantInternal initialization and setting of object
2020-11-30 20:22:15 +01:00
Rémi Verschelde 8f3dde18f1
Merge pull request #43504 from AndreaCatania/gds_fix_2
Implement proper error print, Fixes a crash when no error messages are generated by the analyser.
2020-11-30 19:10:38 +01:00
Rémi Verschelde c653e9c470
Merge pull request #42825 from Chaosus/fix_grid_hotkey
Changes 'always show grid' hotkey to prevent conflict with 'pan mode'
2020-11-30 19:09:13 +01:00
George Marques 029fd88adb
Fix VariantInternal initialization and setting of object
- Initialize Object pointer to nullptr so it's not used by mistake.
- When setting an Object check if it's a reference so refcounting works
  as intended.
2020-11-30 14:49:52 -03:00
Yuri Roubinsky 193cc9a157
Merge pull request #43988 from Chaosus/fix_toggle_script_panel_button
Reversed Toggle Script Button icon
2020-11-30 17:51:24 +03:00
Yuri Roubinsky d936201a05 Reversed Toggle Script Button icon 2020-11-30 17:33:42 +03:00
Rémi Verschelde 84dbd3be63
Merge pull request #43985 from Faless/js/4.0_em_fixes
[HTML5] HiDPI, emscripten fixes
2020-11-30 14:45:41 +01:00
Rémi Verschelde 27f1c67155
Merge pull request #43987 from vnen/gdscript-dont-share-references
GDScript: Don't construct ref values in compiler
2020-11-30 14:34:56 +01:00
George Marques a604e72dc9
GDScript: Don't construct ref values in compiler
Values that are passed by reference are not suited for being constructed
at compile time because in this case they would be shared across all the
construction statements.
2020-11-30 09:42:22 -03:00
Fabio Alessandrelli 178546ac3e [HTML5] Fix broken layout on load in HiDPI screens
This was caused by the devicePixelRatio being applied twice, once by the
HTML code, once by the OS code.
More specifically, OS.get_window_size() would return the canvas element
size, while OS.set_window_size() would set the element size to the
specified value times the devicePixelRatio.
Calling OS.set_window_size(OS.get_window_size()) would reapply the
devicePixelRatio every time.
This commit changes the behaviour so that OS.set_window_size() do not
apply the devicePixelRatio to the canvas element size, by it divides the
CSS size instead.
2020-11-30 12:07:20 +01:00
Fabio Alessandrelli 742729ccfe [HTML5] Remove file flags from writeFile in setup.
Flags where deprecated and partly in removed in emscripten 2.0.9.
2020-11-30 12:07:20 +01:00
Fabio Alessandrelli e2a0c44d06 Sync RasterizerDummy changes. 2020-11-30 12:07:20 +01:00
Rémi Verschelde b9a2787bd1
Merge pull request #43963 from Chaosus/fix_polyline_crash
Fixed crash in canvas_item_add_polyline if color arr has incorrect size
2020-11-30 10:19:37 +01:00
Rémi Verschelde 72366c1858
Merge pull request #43971 from volzhs/fix-tab-container
Fix TabContainer crashes
2020-11-30 09:41:30 +01:00
Rémi Verschelde 2c6e6e930e
Merge pull request #43977 from FIF15/restore-default-focus-mode-on-master
fix #43695 on master by revert part of #41576
2020-11-30 09:39:27 +01:00
Rémi Verschelde 78d9aa99ca
Merge pull request #43970 from EricEzaM/PR/popup-menu-margin-shrink
Reduced EditorTheme margin on PopupMenu
2020-11-30 09:25:48 +01:00
Rémi Verschelde 375cfa0d50
Merge pull request #43968 from KoBeWi/nokia_connecting_nodes_xdxd
Show editable children in the connect dialog
2020-11-30 09:23:09 +01:00
Yuri Roubinsky d980278d81 Fixed crash in canvas_item_add_polyline if color arr has incorrect size 2020-11-30 11:05:55 +03:00
FIF15 96fb9eeca4 fix #43695 by revert part of #41576
Note that #42109 already reverted the change of MenuButton,
and actually fixed #43695.
As a result, this commit only reverts the change to LinkButton,
in order to prevent unpredictable consequences.
2020-11-30 12:28:45 +08:00
volzhs f1eab4afbd Fix TabContainer crashes 2020-11-30 11:05:59 +09:00
Eric M 231231f904 Reduced margin on PopupMenu 2020-11-30 10:18:16 +10:00
Tomasz Chabora c93a3bdaef Show editable children in the connect dialog 2020-11-30 00:37:32 +01:00
Rémi Verschelde 0167bfa530
Merge pull request #43958 from EricEzaM/PR/basebutton-add-property-and-doco
Exposed shortcut_context property to scripting and added documentation.
2020-11-29 16:35:15 +01:00
Eric M 12ded391f5 Exposed shortcut_context property to scripting and added documentation.
I didn't expose this as a property or add documentation in the original PR #42109.
2020-11-30 00:11:40 +10:00
Rémi Verschelde 79d569edd4
Merge pull request #43955 from Chaosus/vs_inputs
Fixed several visual shader inputs
2020-11-29 14:56:56 +01:00
Yuri Roubinsky 82d64ebd19 Fixed several visual shader inputs
Fixed several inputs in visual shaders
2020-11-29 16:10:05 +03:00
Rémi Verschelde d1943f6a77
Merge pull request #38939 from hbina/vk_error_handling
Better error handling of vkEnumerateInstanceExtensionProperties
2020-11-29 13:03:01 +01:00
Rémi Verschelde ef2d1f6d19
Merge pull request #42761 from fire/color-grading-3d
Environment brightness, contrast, saturation restore with 3d LUT.
2020-11-28 23:07:52 +01:00
Rémi Verschelde 75e45e4978
Merge pull request #43938 from Chaosus/vs_fix_renames
Fixed invalid visual shader outputs (TRANSMISSION, ALPHA_SCISSOR)
2020-11-28 23:05:43 +01:00
Yuri Roubinsky 07e752585c Fixed invalid visual shader outputs (TRANSMISSION, ALPHA_SCISSOR) 2020-11-28 20:42:59 +03:00
clayjohn 076908bed9 Environment brightness, contrast, saturation restore with color correction.
Allow gradients and 2d images.

Use shader versions for LUT in tonemap

Co-authored-by: alex-poe <3957610+CptPotato@users.noreply.github.com>
Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2020-11-28 07:37:49 -08:00
AndreaCatania 40403b02fb Implement proper error print, Fixes a crash when no error messages are generated by the analyser. 2020-11-28 13:47:52 +01:00
Hanif Bin Ariffin cc2097c79c Better error handling of vkEnumerateInstanceExtensionProperties
Refer: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkEnumerateInstanceExtensionProperties.html
According to the documentation, there are 2 success code:
1. VK_SUCCESS
2. VK_INCOMPLETE

VK_INCOMPLETE will be returned when not all avaiable properties are returned.
2020-11-28 19:28:23 +08:00
Rémi Verschelde 3b4fad435c
Merge pull request #43061 from qarmin/crash_when_prining_nodes
Fix crash when printing leaked nodes
2020-11-28 10:37:12 +01:00
Rémi Verschelde 53b23c6bdc
Merge pull request #43922 from Calinou/doc-projectsettings-globalize-path
Improve the `ProjectSettings.globalize_path()` documentation
2020-11-28 10:29:23 +01:00
Rémi Verschelde 95572211bb
Merge pull request #43925 from madmiraal/fix-16039a
Remove RigidBody weight property
2020-11-28 09:37:42 +01:00
Yuri Roubinsky 4a3588a51a
Merge pull request #43828 from Chaosus/restore_line_antialiasing
Restored antialiased lines by emulation using triangle strips
2020-11-28 11:32:16 +03:00
Rémi Verschelde 94341ac547
Merge pull request #42987 from clayjohn/VULKAN-sky-only
Add sky_only setting to DirectionalLight3Ds
2020-11-28 09:07:09 +01:00
Rémi Verschelde a09846e015
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
2020-11-28 09:04:25 +01:00
Rémi Verschelde a6751e6c58
Merge pull request #41100 from bruvzg/ctl_text_server_interface
[Complex Text Layouts] Implement TextServer interface.
2020-11-28 09:03:15 +01:00
Rémi Verschelde bd84600132
Merge pull request #43903 from cptchuckles/fix-sign
Fix SGN macro
2020-11-28 09:01:47 +01:00
Rémi Verschelde ad0ce5566c
Merge pull request #43930 from Calinou/add-property-optional-setter-comment
Mention lack of optional setter arguments in `ClassDB::add.property()`
2020-11-28 08:57:22 +01:00
Rémi Verschelde 00e0b3c489
Merge pull request #42676 from nekomatata/x11-clipboard-incr
Implement INCR mechanism for Linux clipboard
2020-11-28 08:56:27 +01:00
Rémi Verschelde 4f486bc7a1
Merge pull request #43928 from charasyn/fix-alsa-bug
Prevent ALSA audio corruption
2020-11-28 08:54:02 +01:00
Hugo Locurcio aa2344afe4
Mention lack of optional setter arguments in `ClassDB::add.property()` 2020-11-28 01:34:13 +01:00
Cooper Harasyn 25b2f82ccf Prevent ALSA audio corruption
When using the ALSA driver, corruption would occur if `snd_pcm_writei`
was unable to consume the entire sound buffer. This would occur
frequently on the Raspberry Pi 3 which uses the `snd_bcm2835` audio
driver.

This bug resulted from incorrect pointer math on line 187, resulting in
the sample source pointer being advanced by `total * ad->channels` bytes
instead of `total * ad->channels` samples. In my opinion, the best fix
is to change `*src` to type `int16_t`, since that is the sample type in
use.

Fixes #43927.
2020-11-27 16:05:59 -05:00
jcgollnick 3347cc25b8 Fix SGN macro
This version behaves the way the documentation states: 0 values will resolve to 0 instead of +1
2020-11-27 13:02:12 -06:00
Yuri Roubinsky 3ec972fc95 Restored antialiased lines by emulation using triangle strips 2020-11-27 20:45:59 +03:00
Marcel Admiraal 981fbcd3e0 Remove RigidBody weight property 2020-11-27 17:39:20 +00:00
Fabio Alessandrelli 828d1ea59e
Merge pull request #40136 from Jummit/multiplayer-root-node-getters
Add root_node as property of MultiplayerAPI
2020-11-27 18:36:07 +01:00