summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2019-01-08Removed splits in Polygon editor, replace by internal vertices and polygon ↵Juan Linietsky
support.
2019-01-07Update random_pcg.hCalamander
little fix to function types
2019-01-07Repair String lstrip and rstrip.Ibrahn Sahir
Background: lstrip and rstrip were broken by changes to String in: 0e29f7974b59e4440cf02e1388fb9d8ab2b5c5fd which removed it's access to Vector::find(CharType). Moved Vector's find up into CowData so it can be shared by Vector and String. Added String::find_char using CowData::find. Implemented rstrip and lstrip using find_char. Added a few tests for String rstrip and lstrip.
2019-01-04Merge pull request #21708 from hpvb/fix-21242v2Hein-Pieter van Braam
String[size()] should return a default constructed CharType
2019-01-04String[size()] should return a default constructed CharTypeHein-Pieter van Braam
As per the C++ standard 21.3.4.1 for std::string: Returns: If pos < size(), returns data()[pos]. Otherwise, if pos == size(), the const version returns charT(). Otherwise, the behavior is undefined. Since the behavior is undefined Godot now does the same thing for const and non-const versions of operator[]. This fixes #21242 and fixes #22221.
2019-01-04Merge pull request #24585 from Xrayez/fix-crash-hex-numberRémi Verschelde
Fix crash when checking empty string for valid hex number
2019-01-04Merge pull request #24732 from hpvb/vector-pod-optimizationRémi Verschelde
Optimizations for trivial types
2019-01-03Update zstd to 1.3.8Guilherme Felipe
2019-01-03Optimizations for trivial typesHein-Pieter van Braam
Relying on various compiler primitives we can reduce the work done in our memory allocators and CowData. For types with trivial ctors or dtors we can skip looping over all elements when creating, resizing, and destroying lists of objects. These primitives are supported by clang, msvc, and GCC. However, once we've moved to C++11 we can rely on several std:: primitives that do the same thing and are standardized. In my testing the extra conditionals introduced here get removed from the generated program entirely as the results for these primitives is known at compile time.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-27doc: Sync classref with current sourceRémi Verschelde
Fix various code formatting issues and argument names.
2018-12-24Bind `is_valid_hex_number` string method to GDScriptAndrii Doroshenko (Xrayez)
2018-12-24Fix crash when checking empty string for valid hex numberAndrii Doroshenko (Xrayez)
2018-12-21ProjectManager: Warn when projects have different config_versionRémi Verschelde
When opening projects for edition through the project manager, the following checks are now done: 1. If the config_version is lower than the one used by the current engine version, users are asked if they want to convert to the new format or abort editing. Fixes #20626. 2. If the config_version is higher than the expected one (project from a more recent and incompatible engine version), projects are grayed out and can't be edited. Fixes #18758. When editing from the command line, the behaviour is unchanged: projects in situation (1) are automatically converted, while projects in situation (2) show an error message (made more explicit). The "Run" option from the project manager was not changed, so it will still run (1) projects without converting them, and fail running (2) projects. Co-authored-by: groud <gilles.roudiere@gmail.com>
2018-12-20Merge pull request #24500 from akien-mga/drop-global_defaultsRémi Verschelde
Core: Drop unused global_defaults logic
2018-12-20Core: Drop unused global_defaults logicRémi Verschelde
It used to be used for Android and iOS to specify platform-specific project settings overrides, but we now have feature tags for that.
2018-12-20Added OS.get_system_time_msecs()volzhs
2018-12-17Merge pull request #24388 from Chaosus/fix_csv_spamRémi Verschelde
Removed error message arriving whenever csv file changed
2018-12-16Merge pull request #24385 from hpvb/reduce-string-coewRémi Verschelde
Reduce String CoW
2018-12-16Reduce String CoWHein-Pieter van Braam
By introducing an intermediate proxy class for the array subscript operator for String and CharString we can control better when CowData will actually CoW. This should improve performance of String usage for most cases.
2018-12-16Merge pull request #19501 from Zylann/custom_loadersRémi Verschelde
Added basic support for custom resource savers and loaders
2018-12-16Removed error message arriving whenever csv file changedChaosus
2018-12-15Added basic support for custom resource savers and loadersMarc Gilleron
2018-12-14Don't allocate in Vector's ctorHein-Pieter van Braam
By relying on the fact that a struct or class's first member has the same address as the struct itself we can cast VectorWriteProxy<T> to Vector<T> and access the CowData field. This allows a Vector to be moved in memory without invalidating the pointer to the cowdata field.
2018-12-14Merge pull request #21856 from AlexHolly/fix-undo-not-showing-errorRémi Verschelde
Fix undo redo not showing errors
2018-12-14Merge pull request #23799 from marcelofg55/custom_psRémi Verschelde
Add application/config/project_settings_override option to override project settings
2018-12-13Add application/config/project_settings_override option to override project ↵Marcelo Fernandez
settings
2018-12-12Merge pull request #24135 from Chaosus/rngRémi Verschelde
Added ranged integer generation function to RNG class
2018-12-12Merge pull request #24241 from Rubonnek/move-to-initializer-listRémi Verschelde
Moved member variables to initializer list
2018-12-11Moved member variables to initializer listWilson E. Alvarez
2018-12-11Merge pull request #23923 from bruvzg/ime_gdscriptRémi Verschelde
Changes IME to make it possible to use it from gdscript/gdnative
2018-12-07Merge pull request #22630 from dualtagh/22478Rémi Verschelde
22478: Can't duplicate folder with another folder inside
2018-12-07Merge pull request #22733 from guilhermefelipecgs/fix_wm_classRémi Verschelde
[x11] Use "application/config/name" for WM_CLASS
2018-12-06Merge pull request #24194 from bojidar-bg/23567-fix-message-queue-overflowRémi Verschelde
Make thumbnail cache less tasking on the message queue
2018-12-06Make thumbnail cache less tasking on the message queueBojidar Marinov
Fixes #23567
2018-12-06Added integer number generation function to RNG classChaosus
2018-12-06Merge pull request #24090 from RandomShaper/fix-blit-from-negativeRémi Verschelde
Fix blitting from negative position
2018-12-03const char* operator on CharString now const.Ibrahn Sahir
2018-12-02Fix text files constantly asking for reload as no last modified timePaulb23
2018-11-30Fix blitting from negative positionPedro J. Estébanez
2018-11-28Merge pull request #24039 from clayjohn/transform_bugRémi Verschelde
Construct Transform from Transform2D bug
2018-11-28construct transform from transform2d bugclayjohn
2018-11-28Revert "Construct Transform from Transform2D "Juan Linietsky
2018-11-28Merge pull request #23976 from clayjohn/transform_bugRémi Verschelde
Construct Transform from Transform2D
2018-11-28Fix many errors found by PVS-StudioAaron Franke
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
2018-11-27Allow signal connecting even if script is invalid (only when compiled with ↵Juan Linietsky
tools), fixes #17070
2018-11-25construct transform from transform2d bugclayjohn
2018-11-23Changes IME input to use notification instead of callback, exposes IME ↵bruvzg
methods to gdscript/gdnative.
2018-11-23Improved support for custom image loadersFabian
2018-11-22FileAccess::store_csv_line() don't added unnecessary double quotes.allkhor