Yuri Rubinsky
c5bfe1303a
Merge pull request #70585 from Chaosus/vs_custom
2023-01-03 09:46:11 +03:00
Dmitrii Maganov
961b4ac5f5
GDScript: Fix wrong native type for preloaded class
2023-01-03 05:45:06 +02:00
Malcolm Nixon
37e4f8befa
Micro-optimizations of the GodotConvexPolygonShape3D::get_support function. Specifically this uses pointer-array-dereference rather than LocalVector<T> dereference as this performs range-checking on known-good indexes.
...
Added more comments. Changed loops back to classic for-iteration style.
2023-01-02 21:15:46 -05:00
Juan Linietsky
7211e041df
Optimizations for GDScript VM
...
* Removed instruction argument count and instruction prefetching. This is now done on the fly. Reduces jumps.
* OPCODE_DISPATCH now goes directly to the next instruction, like in Godot 3.x.
I have nothing I can use to test performance, so if anyone wants to lend a hand and compare with master (both on debug and release), it would be very welcome.
2023-01-02 23:44:19 +01:00
bruvzg
a28e8f0c8d
[TextServer] Make free
calls thread safe.
2023-01-02 21:59:05 +02:00
Clay John
61c7b7fb13
Merge pull request #67853 from Zylann/fix_lods_with_doubles
...
Fix usages of mesh simplification functions in float=64 builds
2023-01-02 12:33:44 -07:00
VolTer
1af833be95
Rename get_points_count() to get_point_count() internally
2023-01-02 16:52:05 +02:00
Yuri Rubinsky
b29bb11a4c
Merge pull request #70812 from Chaosus/wrapf_optimize
2023-01-02 15:23:49 +03:00
smix8
3e0e315e74
Fix NavigationPolygon error msg
...
Outlines need the same winding order which got confused with the internal conversion.
2023-01-02 01:54:57 +01:00
Yuri Rubinsky
b28571ca3e
Optimize wrapf
function a bit
2023-01-01 23:17:29 +03:00
James Mintram
897de50d71
Update stale node ref after replace_by in GLTF importer
2023-01-01 20:14:33 +00:00
Adam Scott
c3f12592da
Cache script when reloading even if there's errors.
2023-01-01 14:09:17 -05:00
Yuri Rubinsky
57267709e6
Merge pull request #70808 from jamesmintram/james/bug/fix-placeholder-tex-size-binding
...
Fixes https://github.com/godotengine/godot/issues/70735
2023-01-01 20:51:32 +03:00
kobewi
a6e02f149f
Improve RefCounted support in Tween
2023-01-01 18:45:17 +01:00
Yuri Rubinsky
e1ca0012db
Merge pull request #70801 from jamesmintram/james/bugfix/line-edits-in-plugin-dialog
...
Fixes https://github.com/godotengine/godot/issues/70746
2023-01-01 20:03:35 +03:00
James Mintram
af845799da
Change binding type of PlaceholderTexture2D.set/get_size to Vector2
2023-01-01 16:12:10 +00:00
James Mintram
69855b9445
Make description in create plugin dialog expand vertically
2023-01-01 15:59:15 +00:00
James Mintram
8715125317
Make LineEdits in create plugin dialog expand horizontally
2023-01-01 12:30:30 +00:00
千橘 雫霞
467b5f23a0
Introduce appCategory
attribute of android to set category
2023-01-01 10:19:22 +08:00
James Mintram
35d0f712ba
Add missing case statement to handle re-parent to new node
2022-12-31 20:32:32 +00:00
Rindbee
ef2c3398e6
Propagate the keying state in the inspector
...
Toggling the keying state does not significantly change the structure
of the inspector. So it's ok to propagate the keying state and then
use `queue_redraw()` to update the keying icon.
2022-12-31 20:29:09 +08:00
Marius Hanl
6241d00368
Use the vertical scrollbar when calculating the width that can be used for drawing
...
The horizontal scrollbar was used before, which is not correct as it has no influence to the drawing width
Also fixed the other wrong locations
2022-12-31 06:59:51 +01:00
SeleckyErik
99cc3980a7
Fix camera override button not updating in 2D scenes
...
Reconnect accidentally disconnected signal play_pressed to update the button
and enable camera override after launching a project in the editor.
2022-12-30 22:46:24 +01:00
George Marques
8a98110e3e
Merge pull request #62688 from cdemirer/assignments-and-types
...
Fixes https://github.com/godotengine/godot/issues/62650
2022-12-30 16:38:35 -03:00
George Marques
bc739a4687
GDScript: Make using return of void function an error
...
Remove the `VOID_ASSIGNMENT` warning since those cases will be errors
now.
2022-12-30 13:35:38 -03:00
George Marques
33afa82fb0
Merge pull request #70613 from vonagam/fix-enum-as-constant
...
Fixes https://github.com/godotengine/godot/issues/54018
Fixes https://github.com/godotengine/godot/issues/70213
Fixes https://github.com/godotengine/godot/issues/70495
2022-12-30 12:10:50 -03:00
George Marques
0c15844551
GDScript: Error when assigning return value of void function
...
This also makes built-in method calls empty the return value when the
method is void, to avoid keeping returning a garbage value in such case.
2022-12-30 12:08:58 -03:00
Marius Hanl
fd17f67894
Fix substitute buttons were never enabled
...
This happened because the viewport of the scene_tree_editor was queried for the focus owner instead of the current viewport
2022-12-30 16:05:13 +01:00
Haoyu Qiu
1ac35c38be
Fix heap-use-after-free when using TileMap editor
2022-12-30 14:16:54 +08:00
Ignacio Roldán Etcheverry
0daa86d70e
Merge pull request #70511 from raulsntos/dotnet/fix-update-script-class-info
...
C#: Skip getting class info for unbound generics
2022-12-30 01:29:53 +01:00
Fabio Alessandrelli
d123b01e86
[MP] Fix server_relay being unsettable.
...
Clarify nuance in the docs.
2022-12-29 23:15:26 +01:00
Adam Scott
ea33001b95
Add safety-checks before some servers free()
2022-12-29 16:23:38 -05:00
Ricardo Buring
6bc313c765
Bind setter and getter for pin joint parameters in PhysicsServer2D
2022-12-29 17:36:08 +01:00
heppocogne
6f31f7b0bc
Register native base class name of enum types when release build
2022-12-30 00:30:18 +09:00
Marius Hanl
b9be3ce75e
Add tests for signals
...
- Adding signals
- Emitting signals
2022-12-29 16:07:45 +01:00
bruvzg
f7955633de
Improve window_set_current_screen
and fix secondary window initial mode and positions.
2022-12-29 09:43:39 +02:00
Yuri Rubinsky
a754930918
Merge pull request #70642 from vonagam/fix-constructor-call-type
...
Fixes https://github.com/godotengine/godot/issues/70605
2022-12-29 09:31:49 +03:00
Dmitrii Maganov
9507f65e25
GDScript: Disallow return with value in void functions
2022-12-29 03:06:13 +02:00
Markus Sauermann
c5c40f4f23
Fix hovering-color of MenuBar entries when reentering MenuBar
...
When reentering MenuBar with the mouse cursor, the hovering-color was
not set, because the previously hovered entry was still referenced in
selected_menu. This PR resets selected_menu on mouse-exit.
2022-12-29 01:59:05 +01:00
Raul Santos
a43e8285a7
C#: Avoid generic types in the script path attribute generator
...
- Avoid generic types in `ScriptPathAttributeGenerator`, this
means they won't be added to the `[AssemblyHasScripts]` attribute
and a `[ScriptPath]` attribute won't be added to the class.
Since generic classes can't be used as scripts they shouldn't use
those attributes, this also makes CSharpScript consider those types
invalid since they won't be added to the script/type map.
- Avoid generic types in `ScriptManagerBridge.LookupScriptsInAssembly`.
- Set `outMethodsDest` in `ScriptManagerBridge.UpdateScriptClassInfo`.
2022-12-28 23:20:02 +01:00
Dmitrii Maganov
b6aa4840d8
Fix usage of Enum as constant
2022-12-28 23:04:40 +02:00
Yuri Sizov
7e1bd3f95a
Merge pull request #70571 from Piralein/optionbutton-classref
...
Add missing OptionButton method descriptions
2022-12-28 21:35:32 +03:00
Hana
f130ad622a
Add missing OptionButton method descriptions
2022-12-28 18:24:46 +01:00
Yuri Sizov
5674fa04ae
Merge pull request #70586 from BastiaanOlij/fix_reflection_probe
2022-12-28 13:56:11 +03:00
Malcolm Nixon
dfa2a0c9ae
Remove unnecessary bail-out if shape A is concave. The test for A being concave is already performed later.
2022-12-27 20:45:43 -05:00
Dmitrii Maganov
f67aa3e46d
GDScript: Fix return type of constructor call for extending class
2022-12-27 23:02:12 +02:00
Riteo
3960c6b8f9
Allow building X11 without Vulkan
...
This limit was likely introduced when Vulkan was the only option.
2022-12-27 21:47:26 +01:00
Markus Grafen
041b64ea7e
visual instance layers are regarded during shadow culling
...
Partially cherry-picked from 16517ecb
. Todos:
- setting Camera cull_mask should mark affected shadows dirty somehow
2022-12-27 18:43:53 +01:00
Michael Alexsander
82d94cc5c0
Fix errors when TabBar
is empty
2022-12-27 08:39:06 -03:00
Fabio Alessandrelli
615fd98620
[Web] Expose API to force file system sync.
...
Mostly useful for modules and extensions that can't use FileAccess to
write files.
2022-12-27 12:33:41 +01:00