Commit graph

38073 commits

Author SHA1 Message Date
Rémi Verschelde
91960b7b81
Merge pull request #52466 from tcoxon/fix_43733_4.0
Prevent shaders from generating code before the constructor finishes.
2021-09-21 13:52:57 +02:00
Rémi Verschelde
8085affdb1
Merge pull request #52890 from bruvzg/rtl_effects_connected
Improve connected grapheme handling in the RTL CharFX.
2021-09-21 13:33:44 +02:00
Tom Coxon
dbe757102c Prevent shaders from generating code before the constructor finishes.
Fixes #43733: "creating SpatialMaterial in a separate thread creates invalid
shaders (temporarily)."

The bug occurred because various setters called in materials' constructors add
materials to queues that are processed on the main thread. This means that
when the materials are created in another thread, they can be processed on the
main thread before the constructor has finished.

The fix adds a flag to affected materials that prevents them from being added
to the queue until their constructors have finished initialising all the
members.
2021-09-21 11:51:39 +01:00
bruvzg
c931906af7 Add flag to connected grapheme. Apply RTL displacement FX only to the whole connected grapheme. Pass more glyph info to the custom RTL FX. 2021-09-21 13:51:38 +03:00
Rémi Verschelde
2717f583a4
Merge pull request #47297 from KoBeWi/📞🌳
Improve call_group documentation
2021-09-21 11:30:37 +02:00
Rémi Verschelde
a412011be7
Merge pull request #52842 from Ev1lbl0w/fix_win_open_errcode
Fix shell_open not returning errors on Windows
2021-09-21 11:26:58 +02:00
Rémi Verschelde
2785ad32df
Merge pull request #52884 from aaronfranke/doc-no-empty
Don't generate empty methods/constants doc sections and reduce code duplication
2021-09-21 11:12:19 +02:00
Rémi Verschelde
be63fdff80
Merge pull request #52605 from TokageItLab/fixed-vtype-in-node-oneshot
Fixed value type and applied small change in `AnimationNodeOneShot`
2021-09-21 10:49:10 +02:00
Rémi Verschelde
40eabbb120
Merge pull request #52601 from KoBeWi/scene_renaissance
Make restore_scenes_on_load true by default
2021-09-21 10:45:18 +02:00
Rémi Verschelde
bd75235b8a
Merge pull request #52649 from Faless/js/4.x_audioworklet_nothreads_pr
[HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads.
2021-09-21 10:44:08 +02:00
Rémi Verschelde
e3ebe8b976
Merge pull request #52886 from bruvzg/rtl_fixes
Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment.
2021-09-21 10:16:56 +02:00
Rémi Verschelde
68256e65f8
Merge pull request #51346 from EricEzaM/fix-focus-key-shortcuts
Fix focus shortcuts triggering incorrectly
2021-09-21 09:48:28 +02:00
Rémi Verschelde
fd5a496f1f
Merge pull request #47815 from Calinou/doc-os-delay-nonblocking
Document how to delay code execution in a non-blocking manner
2021-09-21 09:39:37 +02:00
bruvzg
99dc2ec9e1 Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment. 2021-09-21 10:35:23 +03:00
Rémi Verschelde
b323660fe8
Merge pull request #52868 from jmb462/mouse_input
Allow mouse button event detection in Action Map Editor
2021-09-21 09:33:53 +02:00
Rémi Verschelde
04328b21f6
Merge pull request #35103 from Calinou/tweak-3d-inertia
Tweak the 3D editor inertia defaults for better responsiveness
2021-09-21 08:39:38 +02:00
Yuri Roubinsky
05331a5bb9 Prevent local constant default value from incorrect override by a global 2021-09-21 08:40:50 +03:00
Eric M
caac2e1a87 Fix focus shortcuts triggering incorrectly 2021-09-21 12:24:07 +10:00
Aaron Franke
d54f2ad7ca
Don't generate empty doc sections and reduce code duplication 2021-09-20 20:59:33 -05:00
Hugo Locurcio
1529bf7c10
Document how to delay code execution in a non-blocking manner 2021-09-21 02:15:25 +02:00
jmb462
15b2846eae Allow mouse button event detection in Action Map Editor 2021-09-20 18:16:30 +02:00
Hugo Locurcio
e2718b7717
Tweak the 3D editor inertia defaults for better responsiveness
The default orbit sensitivity was decreased to account for this change.
Rotational inertia (orbit + freelook) was disabled by default due to
known issues.

This also removes the need for separate manipulation inertia settings,
as the default settings are more responsive.
2021-09-20 16:32:37 +02:00
Rémi Verschelde
2d1699ef82
Merge pull request #42103 from dankan1890/import_atlas_fix 2021-09-20 16:09:36 +02:00
Hugo Locurcio
567b6436c9
Improve the documentation for ease() and smoothstep()
This adds a cheatsheet for `ease()` and a comparison graph for
`smoothstep()`, among other things.
2021-09-20 16:08:39 +02:00
Rémi Verschelde
aa4ff588c9
Merge pull request #52312 from Calinou/no-main-scene-gui-alert
Display an alert when attempting to run a project with no main scene
2021-09-20 15:06:46 +02:00
Rémi Verschelde
132ad85670
Merge pull request #52555 from TokageItLab/fixed-discrete-animation-seek
Fixed seeking behavior of property track with discrete interpolation
2021-09-20 14:42:34 +02:00
Hugo Locurcio
87fb9297e3
Display an alert when attempting to run a project with no main scene
This gives visual feedback when not starting Godot from a terminal.
This could lead to confusion when placing a Godot binary within a
project folder that has no main scene defined.
2021-09-20 14:38:14 +02:00
Hugo Locurcio
2560070c0a
Remove Engine.editor_hint in favor of Engine.is_editor_hint()
The `Engine.set_editor_hint()` setter method is no longer exposed
to scripting, which makes the property effectively read-only from
an user perspective.
2021-09-20 14:24:39 +02:00
Rémi Verschelde
a92c58ed3e
Merge pull request #52330 from johnjdonna/add_support_hostname_language_server
LSP: Add support for custom host setting
2021-09-20 13:53:34 +02:00
Rémi Verschelde
b5380f9f59
Merge pull request #52867 from JFonS/upd_giz_fix
Fix error spam on quit
2021-09-20 13:53:13 +02:00
Rémi Verschelde
65e91798a5
Merge pull request #52856 from e8newallm/52816
Corrected GLTFDocument::save_scene from processing a nullptr
2021-09-20 13:22:11 +02:00
Matthew Newall
ca55dfc00c Corrected GLTFDocument::save_scene from processing a nullptr
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-09-20 11:38:39 +00:00
Rémi Verschelde
b1dafd9c16
Merge pull request #52618 from williamd67/GPULightmapper-bounce-improvement
GPULightmapper exclude back-face triangles while calculating bounces
2021-09-20 13:21:16 +02:00
Rémi Verschelde
62aed73d88
Merge pull request #52545 from JFonS/occ_fixes
Occlusion culling fixes
2021-09-20 13:20:03 +02:00
Rémi Verschelde
d54635d9b0
Merge pull request #52543 from TokageItLab/fixed-transition-when-xfade-time-is-zero
Fixed `AnimationNodeTransition`'s behavior when xfade time is zero
2021-09-20 13:19:29 +02:00
Rémi Verschelde
80e2c084cd
Merge pull request #52479 from KoBeWi/the_close_of_all_tabs
Don't stop closing on unsaved script
2021-09-20 13:16:05 +02:00
jfons
6747126c14 Fix error spam on quit 2021-09-20 13:10:19 +02:00
John J. Donna II
be6da39b8a
LSP: Add support for custom host setting
You can now configure host in the `language_server` settings in the editor
settings.
2021-09-20 13:09:51 +02:00
Rémi Verschelde
0068247ab6
Merge pull request #52513 from Ev1lbl0w/fix_path_double_slash
Fix path with multiple slashes not being corrected on templates
2021-09-20 13:00:29 +02:00
Rémi Verschelde
e154820935
Merge pull request #51034 from bruvzg/macos_mime
[macOS] Update MIME codes and file type name to match "dist/linux/org.godotengine.Godot.xml"
2021-09-20 12:53:20 +02:00
Rémi Verschelde
91294b4a21
Merge pull request #52519 from e8newallm/52497-Remove_Unused_Variable
Removed unused Ref<Font> font variables
2021-09-20 12:35:25 +02:00
Rémi Verschelde
327ab9d9f5
Merge pull request #52865 from akien-mga/obj-import-no-threads
Import: Disable thread import for OBJ meshes
2021-09-20 12:33:46 +02:00
Rémi Verschelde
aa463ffb56
Merge pull request #52827 from Chaosus/blend_tree_connection_improvement
Draggin in/out from ports to create nodes in Animation Blend Tree editor
2021-09-20 12:30:21 +02:00
Rémi Verschelde
9d43d49bfd
Merge pull request #52151 from CaptainProton42/fix-y-billboard-shear
Fix y billboard shear when rotating camera
2021-09-20 12:19:42 +02:00
bruvzg
9231aab119 [macOS] Update MIME codes and file type names to match "dist/linux/org.godotengine.Godot.xml" definitions. Add missing "shader" type icon. 2021-09-20 13:12:34 +03:00
Rémi Verschelde
4d9b5852f4
Merge pull request #37228 from rcorre/rcorre/better-load-dialog
Use QuickOpen to load resources in the inspector.
2021-09-20 12:04:47 +02:00
Rémi Verschelde
7da6fcb89e
Import: Disable thread import for OBJ meshes
This can currently lead to deadlocks, possibly due to some race condition
in the Vulkan renderer.

Works around #48265.
2021-09-20 11:57:16 +02:00
Rémi Verschelde
1e93e3fc49
Merge pull request #52848 from Paulb23/code-edit-tests 2021-09-20 11:43:21 +02:00
Rémi Verschelde
56b02a0776
Merge pull request #52862 from bruvzg/cache_index_chk
Add FontData cache index check, remove excessive loop.
2021-09-20 11:22:49 +02:00
Rémi Verschelde
275aa4edb8
Merge pull request #52858 from SilverCreekEntertainment/fix-cursor-disappearing-in-windows-fullscreen-4.x
Fix Windows cursor with trails disappearing in fullscreen
2021-09-20 10:53:03 +02:00