summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2019-04-21Merge pull request #28217 from hpvb/fix-28089Hein-Pieter van Braam
Don't crash on printing nested types
2019-04-20Merge pull request #24951 from Mr-Slurpy/local-rpc-sender-id-fixFabio Alessandrelli
Sender network id is now set to local network id for local rpc calls.
2019-04-20Merge pull request #28210 from hpvb/fix-28134Rémi Verschelde
Object::script may not be a valid Ref<Script>
2019-04-20Object::script may not be a valid Ref<Script>Hein-Pieter van Braam-Stewart
It appears that Object::script may be a valid ScriptInstance but not be castable to Ref<Script>. There were only 5 places in the code that made this assumption. This commit fixes that.
2019-04-20Don't crash on printing nested typesHein-Pieter van Braam-Stewart
When adding an Array or Dictionary to itself operator String() got in an infinite loop. This commit adds a stack to operator String() (Through the use of a new 'stringify method'). This stack keeps track of all unique Arrays and Dictionaries it has seen. When a duplicate is found only a static string is printed '[...]' or '{...}'. This mirror Python's behavior in a similar case.
2019-04-19Added ability for multiple images to be imported as an atlasJuan Linietsky
This adds support for groups in the import system, which point to a single file. Add property hint for saving files in file field
2019-04-18Compression: Set Zstd max window size via public parameterRémi Verschelde
`ZSTD_DCtx_setMaxWindowSize` is still part of the experimental API (thus unexposed in the shared library). Upstream examples seem to use `ZSTD_d_windowLogSize` instead, so it's probably what we should use too. Fixes #17374. Distro packagers can now unbundle Zstd.
2019-04-16Sender network id is now set to local network id for local rpc calls.Daniel Eliasinski
2019-04-16Merge pull request #28052 from muiroc/settings_decodes_objectsRémi Verschelde
Enable object decoding when serializing binary project settings
2019-04-15Add Input::get_current_cursor_shapeGuilherme Felipe
[Clean up] Removed unused/unnecessary methods.
2019-04-15Enable object decoding when serializing binary project settingsmuiroc
2019-04-11No more metadata and dependency indices kept in resources saved.Juan Linietsky
-Node folding is now saved externally together with the properties -External resources remember their ID when scenes are saved.
2019-04-10Added generator audio stream, and spectrum analyzer audio effectJuan Linietsky
Made AudioFrame and Vector2 equivalent for casting. Added ability to obtain the playback object from stream players. Added ability to obtain effect instance from audio server.
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-04-08Add ability to edit editor feature profilesJuan Linietsky
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
2019-04-08Merge pull request #27711 from neikeq/ifdef-clang-tidyRémi Verschelde
Replace a few #if/#elif with #ifdef and "#elif defined"
2019-04-08Merge pull request #27506 from Chaosus/astarRémi Verschelde
Added functions to AStar for disable/enable points to effectivly create obstacles
2019-04-08Merge pull request #27452 from Chaosus/direction_toRémi Verschelde
Added method to retrieve a direction vector from one point to another
2019-04-08Merge pull request #27644 from lupoDharkael/busRémi Verschelde
Allow default audio bus layout modification
2019-04-08Merge pull request #26760 from Xrayez/26744-fix-string-to-lowerRémi Verschelde
Reorder reverse caps characters table for string lower case conversion
2019-04-08Merge pull request #27231 from Chaosus/smoothstepRémi Verschelde
Added smoothstep built-in function
2019-04-08Added functions to AStar for disable/enable pointsChaosus
2019-04-07Merge pull request #27776 from neikeq/issue-27772Ignacio Roldán Etcheverry
core_bind: Use the appropriate enum instead of int
2019-04-07core_bind: Use the appropriate enum instead of intIgnacio Etcheverry
2019-04-07Added smoothstep built-in functionChaosus
2019-04-07Merge pull request #27043 from Chaosus/randfnYuri Roubinsky
Added gaussian distribution function to RNG
2019-04-06Merge pull request #27733 from nekomatata/transform_flip_fixRémi Verschelde
Fixed Transform FLIP_Y and FLIP_Z set as identity transform
2019-04-06Merge pull request #26486 from marxin/fix-Wdeprecated-copyRémi Verschelde
Fix new GCC 9 warnings: -Wdeprecated-copy.
2019-04-06Fixed Transform FLIP_Y and FLIP_Z set as identity transformPouleyKetchoupp
2019-04-06Fix wrong method binds and registered classIgnacio Etcheverry
2019-04-06Merge pull request #26699 from Schroedi/fix-line-circle-intersectRémi Verschelde
Fixes Geometry.segment_intersects_circle working only one way.
2019-04-05Replace a few #if/#elif with #ifdef and "#elif defined"Ignacio Etcheverry
2019-04-05Revert "Properly explain RPC/RSET mode failure."Rémi Verschelde
This reverts commit 95ad747deaa474b30c04b01f60634f2be9a5ea18. It introduced regressions, see #27655.
2019-04-05Allow default audio bus layout modificationlupoDharkael
2019-04-05Merge pull request #27677 from akien-mga/Wimplicit-fallthroughRémi Verschelde
Fix -Wimplicit-fallthrough warnings from GCC 8
2019-04-05Added direction_to method to vectorsChaosus
2019-04-05Fix -Wimplicit-fallthrough warnings from GCC 8Rémi Verschelde
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional. Can be replaced by `[[fallthrough]]` if/when we switch to C++17. The warning is now enabled by default for GCC on `extra` warnings level (part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet, but we could enable it manually once we switch to C++11. There's no equivalent feature in MSVC for now. Fixes #26135.
2019-04-05Reorder reverse caps characters table for string lower case conversionAndrii Doroshenko (Xrayez)
The binary search algorithm used to lookup character codes in the table relies that the data must be ordered. This fixes `to_lower()` string method to convert upper case to lower case properly, so that the algorithm doesn't terminate prematurely. Co-authored-by: AndreevAndrei (avandrei) <avandrei@MacBookAAV.local>
2019-04-04Fix 'UndoRedo' increasing its version on actions that should be mergedMichael Alexsander Silva Dias
2019-04-04Clean up notifications and merge Node and MainLoop ones for clarity, closes ↵Juan Linietsky
#27614
2019-04-03Properly explain RPC/RSET mode failure.Fabio Alessandrelli
_can_call_mode used to call is_network_master/get_network_master internally. This would reset any potential last error set via ERR_EXPLAIN, preventing it from being displayed correctly. _can_call_mode now expects the node master ID to be passed instead.
2019-04-03Merge pull request #27214 from marcelofg55/midi_note_offRémi Verschelde
Fix MIDI Note Off missing on some devices
2019-04-02Merge pull request #27597 from marxin/fix-Wnon-virtual-dtor-warningsRémi Verschelde
Fix -Wnon-virtual-dtor warnings.
2019-04-02Enable warnings=extra on clang and GCC testers.marxin
And remove 2 warnings from warnings=extra.
2019-04-02Fix -Wnon-virtual-dtor warnings.marxin
Example of the warning: ./core/script_language.h:198:7: warning: 'class ScriptCodeCompletionCache' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
2019-04-01Merge pull request #27171 from Chaosus/randfixRémi Verschelde
Properly setup seed in RNG
2019-04-01Merge pull request #27485 from Faless/io/encode_decode_safety_prRémi Verschelde
Safer encode/decode variant.
2019-04-01Some improvements to is_equal_approx, restored Quat operator.Juan Linietsky
2019-04-01Add object encoding param to serialization methodsFabio Alessandrelli
Network peers get_var/put_var File get_var/store_var GDScript/Mono/VisualScript bytes2var/var2bytes Add MultiplayerAPI.allow_object_decoding member which deprecates PacketPeer.allow_object_decoding. Break ABI compatibaility (API compatibility for GDNative).
2019-04-01Multiplayer API now respects allow_object_decodingFabio Alessandrelli
Add doc about allow_object_decoding in PacketPeer