summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-11-06Refactored Variant Operators.reduz
-Using classes to call and a table -For typed code (GDS or GDNative), can obtain functions to call prevalidated or ptr.
2020-11-06Exposed randi_range to global funcs + renamed rand_range to randf_rangeYuri Roubinsky
2020-11-06Merge pull request #43283 from Calinou/color-remove-contrastedRémi Verschelde
Remove `Color.contrasted()` as its behavior is barely useful
2020-11-05Remove unused `PHI` define in math funcsAndrii Doroshenko (Xrayez)
2020-11-05doc: Override default value for RandomNumberGenerator.seedRémi Verschelde
It's non-deterministic so it's better to show a fixed value like 0 instead of having it potentially change whenever `randomize()` is called. Fixes #43317.
2020-11-04doc: Sync classref with current source + fixup some bindingsRémi Verschelde
Includes various changes triggered by the refactoring of method bindings.
2020-11-04Implement DirectionalLight2Dreduz
Also separated Light2D in PointLight2D and DirectionalLight2D. Used PointLight2D because its more of a point, and it does not work the same as OmniLight (as shape depends on texture). Added a few utility methods to Rect2D I needed.
2020-11-03Remove `Color.contrasted()` as its behavior is barely usefulHugo Locurcio
Returning the most contrasting color isn't a trivial task, as there are often many possible choices. It's usually best left for the user to implement using a script.
2020-11-03Merge pull request #40364 from marstaik/alpha2coverage_upRémi Verschelde
Alpha Hash and Alpha2Coverage Implementation
2020-11-02Alpha Hash and Alpha2Coverage ImplementationMarios Staikopoulos
2020-11-02Merge pull request #43260 from HaSa1002/mainloop-remove-deprecated-methodsRémi Verschelde
MainLoop: Remove deprecated methods
2020-11-01Avoid reentrant OBJTYPE_RLOCK in ClassDBLyuma
Fixes #43020 when a thread uses ClassDB while main thread calls is_parent_class().
2020-11-01MainLoop: Remove deprecated methodsHaSa1002
2020-10-30Merge pull request #43184 from Chaosus/fix_randi_range_biasedRémi Verschelde
Fix biased output of randi_range
2020-10-30Refactor pixel snapping.reduz
-Rename pixel_snap to snap_2d_to_vertices -Added snap_2d_to_transforms which is more useful Fixes #41814 Solves proposal https://github.com/godotengine/godot-proposals/issues/1666 Supersedes #35606, supersedes #41535, supersedes #41534
2020-10-29Fix biased output of randi_rangeYuri Roubinsky
2020-10-27Vulkan: Make validation layers optionalRémi Verschelde
They're now disabled by default, and can be enabled with the command line argument `--vk-layers`. When enabled, the errors about them being missing are now warnings, as users were confused and thought this meant Vulkan is broken for them. Fix crash in `~VulkanContext` when validation layers are disabled (exposed by this PR since before they could not be disabled without source modification). Also moved VulkanContext member initializations to header. Fixes #37102.
2020-10-27Merge pull request #43100 from madmiraal/apply-upstream-391Rémi Verschelde
Apply upstream gamecontrollerdb patch 391.
2020-10-27Make `randbase` member protected in `RandomNumberGenerator`Andrii Doroshenko (Xrayez)
Allows to extend `RandomNumberGenerator` via C++ modules.
2020-10-26Apply upstream gamecontrollerdb patch 391.Marcel Admiraal
Co-authored-by: SalvoB <salvob41@users.noreply.github.com>
2020-10-26Provide support for buttons and D-pads mapped to half axes, andMarcel Admiraal
fix axes mapped to buttons and D-pads.
2020-10-23Shows ColorRect in Color constants autocompletionYuri Roubinsky
2020-10-22Fix invalid method namesRafał Mikrut
2020-10-22Merge pull request #43000 from vnen/variant-internal-method-nameGeorge Marques
Add name and base type to Variant::InternalMethod (on debug)
2020-10-22Add name and base type to Variant::InternalMethod (on debug)George Marques
This is useful to showing error messages when a pointer to an InternalMethod is the only information available.
2020-10-22Favor project.binary over project.godotTomasz Chabora
2020-10-18Refactor MethodBind to use variadic templatesreduz
Removed make_binders and the old style generated binders.
2020-10-15Merge pull request #42315 from lyuma/command_queue_fixRémi Verschelde
core/command_queue_mt.h: Fix crash/hang when buffer fills up
2020-10-14Refactored binding system for core typesreduz
Moved to a system using variadic templates, shared with CallableBind. New code is cleaner, faster and allows for much better optimization of core type functions from GDScript and GDNative. Added Variant::InternalMethod function for direct call access.
2020-10-12core/command_queue_mt: Fix crash/hang when buffer fills upLyuma
This patch fixes two related issues. One is the race condition in issue #42107.. The other is a crash which happens when the reader is lapped near the end of the buffer.
2020-10-12core/command_queue_mt: Customizable size and testsLyuma
Adds unit tests for command_queue_mt.h/cpp In this revision, some unit tests will fail due to issue #42107.
2020-10-12Merge pull request #42684 from timothyqiu/conn-self-assignFabio Alessandrelli
Fix HTTPClient::poll crash after connection is self-assigned
2020-10-10Fixes HTTPClient::poll crash after connection is self-assignedHaoyu Qiu
2020-10-09Add ability to bind an unbind arguments to Callable.reduz
2020-10-09Merge pull request #42660 from Chaosus/remove_get_uv84_normal_bitRémi Verschelde
Removed unused method Geometry3D.get_uv84_normal_bit
2020-10-09Implement GPU Particle Collisionsreduz
-Sphere Attractor -Box Attractor -Vector Field -Sphere Collider -Box Collider -Baked SDF Collider -Heightmap Collider
2020-10-09Removed unused method Geometry.get_uv84_normal_bitYuri Roubinsky
2020-10-08Cancel rename if file does not existTomasz Chabora
2020-10-07Fix build after merge of #40097Rémi Verschelde
CI had passed back then but this would have needed a rebase to take into account recent changes to String.
2020-10-07Merge pull request #40097 from mrushyendra/file_sort_masterRémi Verschelde
Fix natural sort comparison for strings with large numbers
2020-10-05Check for global script class information before clearing itAaron Franke
2020-10-05Improve format version mismatch error in binary loaderRémi Verschelde
2020-10-03Don't write global script class information if there is noneAaron Franke
2020-10-02Fixed padding bug of sprintf functionSerhat
2020-09-30Make "function" a property of FuncRefWilson E. Alvarez
2020-09-29Removed unnecessary keyword, fix comment styleCraig-Stoneham
The privacy here is already private
2020-09-28Merge pull request #42133 from vnen/variant-op-consistencyRémi Verschelde
Allow commutative multiplication in Variant
2020-09-28Rename the ".import" folder to ".godot/imported"Aaron Franke
2020-09-28Merge pull request #42304 from akien-mga/os-drop-get_splash_tick_msecRémi Verschelde
OS: Remove unused get_splash_tick_msec
2020-09-27Merge pull request #42340 from Rubonnek/get-funcref-functionRémi Verschelde
Allow retrieval of FuncRef function string