summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2019-02-20Merge pull request #26069 from hpvb/align-variantRémi Verschelde
Align the Variant data member
2019-02-20Align the Variant data memberHein-Pieter van Braam
This should avoid potential alignment issues when _mem holds real values and speed up some floating point operations in some cases.
2019-02-20Fix HTTPClient keep alive with chunked encoding.Fabio Alessandrelli
We need to consume the trailer part and final CRLF after last chunk as per RFC 7230 section 4.1: ``` chunked-body = *chunk last-chunk trailer-part CRLF ``` We do not return the trailer part, just consume it allowing following requests to work as expected when using keep alive.
2019-02-20HTTPClient read until EOF fixesFabio Alessandrelli
2019-02-18Fix warnings seen with warnings=all and recent GCC 8.2.marxin
2019-02-17Add hex-encoded version number to Engine singleton for easy comparisonsRémi Verschelde
2019-02-16Merge pull request #25680 from Chaosus/random_fixRémi Verschelde
Fix random generation, to not always retrieve 0 after seed()
2019-02-16Merge pull request #25952 from pbrunet/fix/randRémi Verschelde
Fix typo for randd and randf
2019-02-16Make resource loader cycle checker work on a per-thread basis.Juan Linietsky
This removes editor errors saying cycles existed when the thumbnailer was running.
2019-02-16Fix typo for randd and randfPierrick Brunet
* And improve documentation according to issue #25938
2019-02-16Merge pull request #25944 from Faless/net/http_editor_fixesRémi Verschelde
Fix keep-alive without header in HTTP client
2019-02-16Fix keep-alive without header in HTTP clientFabio Alessandrelli
2019-02-16Expose OS::get_current_video_driver to scripting languagesRémi Verschelde
2019-02-16Merge pull request #25924 from Calinou/add-gamepad-button-shortcutRémi Verschelde
Make Button shortcuts triggerable by gamepads
2019-02-16Fix alignment and locking issues with CommandQueueMTHein-Pieter van Braam
The allocations of commands in CommandQueueMT weren't aligned. This commit aligns all accesses on 64bit boundaries regardless of target platform. This ensures that all types are aligned. Lock-wise the semaphores were maked as usable when the command had ran but not when the synchronous stub had finished with it. This lead to a race condition where sometimes the semaphore got reused before it was waited on. We now mark the semaphore as free only once we're done waiting on it.
2019-02-16Make Button shortcuts triggerable by gamepadsHugo Locurcio
This closes #25741.
2019-02-14-Fixes to undo redo to avoid crash, closes #24251Juan Linietsky
-Changed Animation to have a special signal when tracks are changed, to avoid unnecesary track cache rebuilds in AnimationPlayer -Added missing emit_changed whe modifying keys to Animation -Changed AnimationPlayer to use the new refcounted connections instead of the previous hacky way to keep references -Changed AnimationEditor to update the current track when keys are edited -Fixed bug where undo/redo did not work with AnimationKeyEdit (was not being updated) -Made sure UndoRedo does not mind deleted objects in undo/redo history, this would corrupt the history or clear it without need.
2019-02-13Fix typos with codespellRémi Verschelde
Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2019-02-13Merge pull request #25821 from akien-mga/sync-class-and-filenamesRémi Verschelde
Ensure classes match their header filename
2019-02-12[Core] Transform2D add set_scale and fix set_rotationAaron Franke
Note: These are still not exposed to GDScript
2019-02-12Merge pull request #25721 from neikeq/wwRémi Verschelde
Use script instance binding for objects constructed from C#
2019-02-12Core: Ensure classes match their header filenameRémi Verschelde
Also drop some unused files. Renamed: - `core/dvector.h` -> `pool_vector.h` - `core/io/resource_import.h` -> `resource_importer.h` - `core/sort.h` -> `sort_array.h` - `core/string_db.h` -> `string_name.h` Dropped: - `core/allocators.h` - `core/os/shell.h` - `core/variant_construct_string.cpp`
2019-02-12Merge pull request #25481 from hpvb/fix-ubsan-asan-reportsRémi Verschelde
Fix many asan and ubsan reported issues
2019-02-10Merge pull request #25727 from aaronfranke/matrix3-basisRémi Verschelde
[Core] Rename Matrix3 file to Basis
2019-02-10Fix random generation, to not retrieve 0 after seed()Chaosus
2019-02-09Warn when using GPU particles with GLES2Rémi Verschelde
Closes #25733.
2019-02-09[Core] Rename Matrix3 file to BasisAaron Franke
The code already referred to "Basis", it's just the file name that was different for some reason.
2019-02-09Use script instance binding for objects constructed from C#Ignacio Etcheverry
Only possible if the object class is a "native type". If the object class is a user class (that derives a "native type") then a script is needed. Since CSharpLanguage does cleanup of script instance bindings when finished, cases like #25621 will no longer cause problems. Fixed ~Object() trying to free script instance bindings after the language has already been removed, which would result in a NULL dereference.
2019-02-08Image: Fix decompressing ETC2Rémi Verschelde
Thanks to @Rriik for finding the bug and its cause. Fixes #25595.
2019-02-03Mono: Lifetime fixes for CSharpInstance and instance binding dataIgnacio Etcheverry
Avoid CSharpInstance from accessing its state after self destructing (by deleting the Reference owner). It's now safe to replace the script instance without leaking or crashing. Also fixed godot_icall_Object_weakref return reference being freed before returning.
2019-02-03Merge pull request #25478 from neikeq/rrIgnacio Etcheverry
Mono: Fix MonoPosixHelper not being found
2019-02-03Added set_environment to OS classIgnacio Etcheverry
2019-01-31Merge pull request #25494 from RandomShaper/fix-21677Rémi Verschelde
Let memory stat functions return uint64_t
2019-01-30Fix AStar crashing with large (>1e30) estimated valuesBojidar Marinov
Fixes #21601
2019-01-30Let memory stat functions return uint64_tPedro J. Estébanez
2019-01-30Fix many asan and ubsan reported issuesHein-Pieter van Braam
This allows most demos to run without any ubsan or asan errors. There are still some things in thirdpart/ and some things in AudioServer that needs a look but this fixes a lot of issues. This should help debug less obvious issues, hopefully. This fixes #25217 and fixes #25218
2019-01-28Prevent upscaled SVG from exceeding Image boundsRémi Verschelde
Also expose Image MAX_WIDTH and MAX_HEIGHT. Fixes #24455.
2019-01-27Avoid cyclic resource loading of any type, fixes #22673Juan Linietsky
2019-01-26Fix code style issuesRémi Verschelde
2019-01-26Warn of invalid pointer when converting object to RID, closes #19023Juan Linietsky
2019-01-23Expose InputEventMIDI to scriptsMarcelo Fernandez
2019-01-23Revert "Revert "Update random_pcg.h""Rémi Verschelde
This reverts commit 6f704c338aa7448a65ced554804ae568063f35eb. Sorry about this, this was a test and not meant to be pushed to master. :/
2019-01-23Revert "Update random_pcg.h"Rémi Verschelde
This reverts commit 64e584a97e0505cec592d3c98a2899ba8426f35a.
2019-01-22Fixed possible crash in pck_packer.cpp due to wrong memory freeing.Ivan Ponomarev
2019-01-21Add function to obtain filesystem type from DirAccess.Juan Linietsky
Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
2019-01-20Fix HTML5 build warningLeon Krause
2019-01-15Don't reset MultiplayerAPI when setting same peer.Fabio Alessandrelli
A GDScript call to: `multiplayer.network_peer.some_prop = true` seems to transalte to: ``` var temp = multiplayer.network_peer temp.some_prop = true multiplayer.network_peer = temp ``` Which caused the MultiplayerAPI to be resetted. The call to set_network_peer is now ignored if the peer that's beeing set is the same as the currently set one.
2019-01-15Fix MultiplayerAPI initialization, clear.Fabio Alessandrelli
rpc_sender_id is now correctly initialized to 0 so get_rpc_sender_id() work reliably even if called before receiving any RPC. root_node is initialized to NULL (fix crashes when incorrectly using the MultiplayerAPI). clear function now resets the packet cache size to free more memory when not running.
2019-01-14Merge pull request #24987 from akien-mga/gles2-nvidia-rect-hack-opt-inRémi Verschelde
GLES2: Make Nvidia flicker workaround opt-in
2019-01-14Added a flag to specify an exported node path must be supplied from scene ↵Juan Linietsky
root, fixes #24412