summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-30Prevent editor crash when deleting children of GraphNodezhangjianguo
2022-11-28Merge pull request #65907 from magian1127/4.0FixPropertiesGeneratorIgnacio Roldán Etcheverry
C#: Fix Generated ScriptProperty Error.
2022-11-27Merge pull request #69252 from ↵Rémi Verschelde
godotengine/revert-67831-scene-tree-fix-storing-removed-nodes Revert "`SceneTree` Fix storing removed nodes to be skipped by the group calls"
2022-11-27Revert "`SceneTree` Fix storing removed nodes to be skipped by the group calls"Rémi Verschelde
2022-11-27C#: Fix Generated ScriptProperty Error.Magian
1. Add "this." to prevent errors caused by duplicate variable names. 2. Try to find the default value of property getters.
2022-11-27Merge pull request #69194 from raulsntos/dotnet/begone-variant-disposerIgnacio Roldán Etcheverry
C#: Remove VariantSpanDisposer and use constants in stackalloc
2022-11-27C#: Remove VariantSpanDisposer and use constants in stackallocRaul Santos
- Remove `VariantSpanDisposer`, no need to dispose of the Variant Spans since we are now borrowing the Variants instead of copying them. - Remove `VariantSpanExtensions.Cleared` that was only used so the Span was initialized for `VariantSpanDisposer` to know what to dispose. - Fix stackalloc Spans to use constant VarArgsSpanThreshold and avoid bound checks.
2022-11-26Merge pull request #69204 from Chaosus/rd_texture_usage_bitsYuri Rubinsky
2022-11-26Changed `RenderingDevice::TextureUsageBits` type to enum flagsYuri Rubinsky
2022-11-26Merge pull request #69191 from raulsntos/dotnet/no-throwIgnacio Roldán Etcheverry
Fix `VariantUtils.UnsupportedType` method throwing
2022-11-26Merge pull request #69088 from raulsntos/dotnet/globalIgnacio Roldán Etcheverry
C#: Add `global::` namespace to generated source
2022-11-26Fix `VariantUtils.UnsupportedType` method throwingRaul Santos
This method was not supposed to throw, just return the new constructed exception so it can be thrown by the caller.
2022-11-26C#: Add `global::` namespace to generated sourceRaul Santos
Adds `global::` to the fully qualified types in source generators to prevent ambiguity.
2022-11-25Merge pull request #69079 from adamscott/fix-singleton-scene-cyclic-loadRémi Verschelde
Fix singleton scene cyclic loading
2022-11-25Merge pull request #69172 from akien-mga/android-no-extra-extra-suffixRémi Verschelde
Android: Remove extra arch suffix now redundant with the default one
2022-11-25Merge pull request #69008 from ↵Rémi Verschelde
akien-mga/property-hint-array-type-resource-simplify Add MAKE_RESOURCE_TYPE_HINT macro to simplify binding arrays of resources
2022-11-25Merge pull request #69168 from Mickeon/what-the-heck-is-this-part-2Rémi Verschelde
Remove `Array.find_last()`
2022-11-25Merge pull request #69124 from zaevi/tilemap_fix_alternative_tileRémi Verschelde
[TileMap] Fix alternative tile issues.
2022-11-25Merge pull request #68310 from neikeq/csharp-opt-variant-generic-convRémi Verschelde
C#: Optimize Variant conversion callbacks
2022-11-25Fix singleton scene cyclic loadingAdam Scott
2022-11-25Remove `Array.find_last()`Micky
2022-11-25Android: Remove extra arch suffix now redundant with the default oneRémi Verschelde
We would needlessly get file names like `*.arm64.armv8.o`.
2022-11-25Merge pull request #69144 from DeeJayLSP/update_embreeRémi Verschelde
Update embree to 3.13.5
2022-11-25Merge pull request #69147 from Sauermann/fix-docks-orderingRémi Verschelde
Fix that the History Dock appears before other Docks in old projects
2022-11-25Merge pull request #69165 from timothyqiu/capitalizationRémi Verschelde
Improve editor property capitalization
2022-11-25Merge pull request #69164 from Faless/debugger/4.x_server_keep_openRémi Verschelde
[Editor] Add button to keep the debug server open.
2022-11-25Merge pull request #68447 from Grimmr/clean-tooltips-on-WM-focus-offRémi Verschelde
Viewport cancels existing tooltip when window looses focus
2022-11-25Update embree to 3.13.5DeeJayLSP
2022-11-25Improve editor property capitalizationHaoyu Qiu
* Captialize stop words when they are the last word. * Add stop words logic in `extract.py`.
2022-11-25[Editor] Add button to keep the debug server open.Fabio Alessandrelli
The setting is stored in the project editor metadata, and the server is automatically started/stopped when the option change (only stopped if no session is currently active). The CLI option `--debug-server` now also forces the server to stay open (without saving the state, unlike the menu option). This commit also removes the "Keep debugger open" option in the script editor "debug" menu. That option was really confusing, it used to hide the bottom panel if and only if the debugger pane was selected, so if you had your output log open instead (default when pressing play) it would effectively do nothing. Having an option to save a click in such a very specific case seems very overkill.
2022-11-25Viewport cancels existing tooltip when window looses focusgrimmr
fixes #68197 when NOTIFICATION_WM_WINDOW_FOCUS_OUT is recieved by a viewport it will now call _gui_cancel_tooltip() to avoid it hanging around after the mouse events stop coming in
2022-11-25Merge pull request #69146 from clayjohn/Polygon2D-errorRémi Verschelde
Ensure that mesh instance is properly freed when freeing Polygon2D
2022-11-25Merge pull request #69155 from timothyqiu/group-baseRémi Verschelde
Fix inspector not showing name for `LabelSettings.font`
2022-11-25Merge pull request #69152 from TokageItLab/fix-anim-key-cant-editRémi Verschelde
Fix wrong `AnimationTrackKeyEdit` update timing
2022-11-25Merge pull request #69148 from zaevi/fix_debugger_inspect_sub_objectRémi Verschelde
Fix debugger can't inspect sub objects.
2022-11-25Merge pull request #69123 from queezle42/queezle42/masterRémi Verschelde
Fix GLAD-related build problems on Linux
2022-11-25Merge pull request #67511 from neikeq/issue-66060Rémi Verschelde
C#: Load assemblies as collectible only in the Godot editor
2022-11-25Fix wrong AnimationTrackKeyEdit update timingSilc Renew
2022-11-25Fix inspector not showing name for LabelSettings.fontHaoyu Qiu
2022-11-25FIx debugger can't inspect sub objects.Zae
2022-11-25C#: Optimize Variant conversion callbacksIgnacio Roldán Etcheverry
These callbacks are used for marshaling by callables and generic Godot collections. C# generics don't support specialization the way C++ templates do. I knew NativeAOT could optimize away many type checks when the types are known at compile time, but I didn't trust the JIT would do as good a job, so I initially went with cached function pointers. Well, it turns out the JIT is also very good at optimizing in this scenario, so I'm changing the methods to do the conversion directly, rather than returning a function pointer for the conversion. The methods were moved to `VariantUtils`, and were renamed from `GetFromVariantCallback/GetToVariantCallback` to `ConvertTo/CreateFrom`. The new implementation looks like it goes through many `if` checks at runtime to find the right branch for the type, but in practice it works pretty much like template specialization. The JIT only generates code for the relevant branch. Together with inlining, the result is very close or the same as doing the conversion manually: ```cs godot_variant variant; int foo = variant.Int; int bar = VariantUtils.ConvertTo<int>(variant); ``` If the type is a generic Godot collection, the conversion still goes through a function pointer call. The new code happens to be much shorter as well, with the file going from 1057 lines to 407. Side note: `Variant.cs` was mistakenly created in the wrong folder, so I moved it to the `Core` folder.
2022-11-25Fix that the History Dock appears before other Docks in old projectsMarkus Sauermann
Newly introduced docks, that are not apparent in old projects should be positioned after the ones in the project-config-file. This way it seems to be less irritating.
2022-11-25Fix GLAD-related build problems on LinuxJens Nolte
- Use gl.h provided by GLAD in the OpenXR module - Use non-EXT variants of some OpenGL defines - Remove libGL-related code paths
2022-11-24Ensure that mesh instance is properly freed when freeing Polygon2Dclayjohn
2022-11-25Merge pull request #69143 from raulsntos/dotnet/projection-docsIgnacio Roldán Etcheverry
C#: Add Projection documentation
2022-11-25C#: Add Projection documentationRaul Santos
- Add documentation to Projection type - Reorder Projection members to be consistent with other C# types
2022-11-24Merge pull request #69135 from clayjohn/GLES3-mesh2DRémi Verschelde
Fix drawing of Mesh2D
2022-11-24Merge pull request #69134 from jquinl/export_range_int_fixRémi Verschelde
GDScript: Properly respect `int` type hint for `@export_range`
2022-11-24Merge pull request #69133 from clayjohn/GDscript-static-warningRémi Verschelde
Ensure class name is printed in STATIC_CALLED_ON_INSTANCE warning
2022-11-24GDScript: Properly respect `int` type hint for `@export_range`unknown
Fixes #69104. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>