Commit graph

50393 commits

Author SHA1 Message Date
Rémi Verschelde
e84bab8e4f
Merge pull request #71101 from dalexeev/fix-unpressable-buttons
Fix unpressable buttons
2023-01-09 10:36:28 +01:00
Pedro J. Estébanez
b1c7665866 Prevent misuse of SafeRefCount 2023-01-09 10:17:55 +01:00
Danil Alexeev
9b3da76640
Fix unpressable buttons 2023-01-09 12:17:48 +03:00
Rémi Verschelde
b6be2ac621
Merge pull request #71028 from adamscott/make-gdscript-clear-less-prone-to-heap-use-after-free
Resolve `GDScript::clear()` `heap-use-after-free` ASAN errors
2023-01-09 09:22:39 +01:00
Rémi Verschelde
2db593ac2f
Merge pull request #70580 from timothyqiu/drop-extern
Fix error when dropping script into script editor
2023-01-09 09:22:08 +01:00
Rémi Verschelde
6a86dfad29
Fix typos with codespell
Also includes #71080.

Co-authored-by: Psychpsyo <60073468+Psychpsyo@users.noreply.github.com>
2023-01-09 08:39:07 +01:00
Rémi Verschelde
31f94574d4
Merge pull request #70996 from reduz/properly-report-callable-bound-arguments
Properly report Callable bound arguments
2023-01-09 08:34:28 +01:00
Rémi Verschelde
9c7723b717
Merge pull request #70920 from KoBeWi/exhibit_inside_catalogmap
Add Show in FileSystem option in the inspector
2023-01-09 08:33:58 +01:00
Rémi Verschelde
e7905f4f48
Merge pull request #71045 from reduz/use-bitfield-in-core-types
Use BitField<> in core type masks
2023-01-09 08:33:26 +01:00
Juan Linietsky
0e0ca01bce Properly report Callable bound arguments
Fixes #63213
Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
2023-01-08 23:35:11 +01:00
kobewi
6d65d886f2 Add Show in FileSystem option in the inspector 2023-01-08 23:25:13 +01:00
Rémi Verschelde
bb08997b87
Merge pull request #70994 from reduz/prevent-inspector-resource-recursion
Prevent recursion (and hence crash) in inspector resource assignment.
2023-01-08 22:51:29 +01:00
Rémi Verschelde
378d589e2d
Merge pull request #71037 from reduz/array-format-bitfield
Use BitField<> hint for Mesh.ArrayFormat and Control.SizeFlags
2023-01-08 22:51:03 +01:00
Rémi Verschelde
c3c5eceb35
Merge pull request #70463 from DarkKilauea/nav-server-const
[4.x] Rework const on NavigationServer methods
2023-01-08 22:50:05 +01:00
Rémi Verschelde
98131c0e32
Merge pull request #71068 from DarkMessiah/fix_about_godot
Fix UTF-8 encoding for copyright in About dialog
2023-01-08 22:48:17 +01:00
Rémi Verschelde
69fd2f3571
Merge pull request #71064 from DarkMessiah/expose_clear_tabs
Expose TabBar::clear_tabs to GDScript
2023-01-08 22:45:58 +01:00
Rémi Verschelde
56522f7f8f
Merge pull request #71057 from EricEzaM/editor-node-cleanup
Remove unnecessary changing of shortcut name in editor node.
2023-01-08 22:45:32 +01:00
Rémi Verschelde
1722947c75
Merge pull request #71055 from EricEzaM/66424-fix-undo-redo
Fix Undo/Redo not working until Scene menu is opened.
2023-01-08 22:45:04 +01:00
Rémi Verschelde
dbd3d8a1f8
Merge pull request #71047 from jordigcs/node-path-apost
Force double quotes for NodePaths with apostrophes
2023-01-08 22:44:19 +01:00
Rémi Verschelde
eff2739cf7
Merge pull request #71052 from Chaosus/fix_astargrid2d
Fix error in `AstarGrid2D::get_id_path`
2023-01-08 22:40:41 +01:00
Rémi Verschelde
1e32a286f3
Merge pull request #70281 from CherrySodaPop/get-impulse-3d
Implement collision impulse in Godot Physics 3D
2023-01-08 22:40:06 +01:00
Rémi Verschelde
30b3434daa
Merge pull request #71036 from Calinou/shader-editor-tweak-disabled-branch-color
Tweak text color for disabled preprocessor branches in the shader editor
2023-01-08 22:39:09 +01:00
Rémi Verschelde
0d6fede757
Merge pull request #69809 from KoBeWi/runtime_enabler_2d
Fix VisibleOnScreenEnabler disabling in editor
2023-01-08 22:38:29 +01:00
Rémi Verschelde
495ec2130e
Merge pull request #70923 from KoBeWi/actual_resource
Refactor inspector code for getting resource
2023-01-08 22:37:05 +01:00
Rémi Verschelde
0081c59198
Merge pull request #71013 from voidedWarranties/fix_ext_property_default_value
Fix `ScriptInstanceExtension::get_property_default_value` return value
2023-01-08 22:36:10 +01:00
Juan Linietsky
2b815df3c1 Use BitField<> in core type masks
* All core types masks are now correctly marked as bitfields.
* The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks.
* Most bitmask operations replaced by functions in BitField<>
* Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is.
* Documentation and API dump updated to reflect bitfields in core types.
2023-01-08 22:17:40 +01:00
Ninni Pipping
86240d97e1 Fix for PackedArray comparison 2023-01-08 21:22:28 +01:00
Dmitrii Maganov
71f7c8a9d3 GDScript: Fix multiline and trailing comma for assert 2023-01-08 20:18:46 +02:00
Juan Linietsky
47592927b3 Use BitField<> hint for ArrayFormat
This was missing in the conversion of bitflags to BitField<>.
2023-01-08 18:47:48 +01:00
Stanislav Labzyuk
0bde4a95e3 Fix UTF-8 encoding for copyright in About dialog 2023-01-08 16:15:26 +01:00
Stanislav Labzyuk
436cd91065 Expose TabBar::clear_tabs to GDScript 2023-01-08 13:52:57 +01:00
Dawid Marzec
9eeed06e65 Expose Tree::deselect_all to GDScript 2023-01-08 12:41:27 +01:00
Eric M
8d0178a589 Remove unnecessary changing of shortcut name.
The same effect which was desired here can just be done with `set_item_text(...)`, which is what this PR does. It removes the need to constantly update the shortcut name when the scene menu is opened.
2023-01-08 20:48:56 +10:00
Eric M
8256b4ea23 Fix Undo/Redo not working until Scene menu is opened. 2023-01-08 20:35:30 +10:00
Yuri Rubinsky
6640eb8065 Fix error in AstarGrid2D::get_id_path 2023-01-08 10:34:33 +03:00
Dmitrii Maganov
5e2ac1a31e GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
Lily Garcia
8ee6264cc9 Implement collision impulse in Godot Physics 3D 2023-01-07 22:34:28 -05:00
jordi
d5e1b4a857 Force double quotes for NodePaths with apostrophes 2023-01-07 20:23:26 -06:00
Josh Jones
a0715b30f9 Rework const on NavigationServer methods
`const` is used on all methods, even when they cause modification of the server.  This reworks the methods of the server to only use `const` on method that don't change the state of the server.
2023-01-07 17:29:00 -08:00
Hugo Locurcio
5ce488b1fc
Tweak text color for disabled preprocessor branches in the shader editor
This makes text within disabled branches easier to distinguish from comments
when using a non-default editor syntax theme.
(The default editor syntax theme uses the same color as the text with 50%
opacity for comments, which means it looks the exact same.)
2023-01-07 20:18:38 +01:00
Adam Scott
d22199990e Resolve GDScript::clear() heap-use-after-free ASAN errors 2023-01-07 11:51:36 -05:00
Rémi Verschelde
fcba87e696
Merge pull request #71026 from bruvzg/fix_prim_detect
[Windows] Fix primary screen detection.
2023-01-07 15:12:05 +01:00
bruvzg
9dc4f4096c [Windows] Fix primary screen detection. 2023-01-07 15:41:06 +02:00
Rémi Verschelde
d642274f75
Merge pull request #70939 from bruvzg/win_screen_2
Add support for the custom initial screen for the main window, fix primary screen detection.
2023-01-07 13:21:36 +01:00
Rémi Verschelde
3579d7a9f7
Merge pull request #36301 from KoBeWi/daddy_node
Add reparent methods to Node
2023-01-07 13:20:56 +01:00
Rémi Verschelde
447aa5b025
Merge pull request #71011 from clayjohn/GLES3-texture-default
Properly map shader language texture hints to sampler hints in GLES3 renderer
2023-01-07 13:20:11 +01:00
Rémi Verschelde
329b85152a
Merge pull request #70902 from Cretezy/2d-polygon-indices-visibility
Fix "2D Polygon indices are barely visible on bright background" (#38009)
2023-01-07 13:19:33 +01:00
Rémi Verschelde
41b74c675f
Merge pull request #71000 from reduz/callable-bind-from-array
Allow binding Callable arguments from an array
2023-01-07 13:18:53 +01:00
Rémi Verschelde
0ab91b3d79
Merge pull request #70993 from rcorre/array-erase-doc
Warn against erasing array elements while iterating.
2023-01-07 13:18:16 +01:00
Rémi Verschelde
57540ae00d
Merge pull request #70858 from Malcolmnixon/fast-concave-support
Optimize GodotConvexPolygonShape3D::get_support
2023-01-07 13:17:39 +01:00