summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Fix error explanation in core_bind Thread::_start_funcPoommetee Ketson2019-01-111-1/+1
|
* Merge pull request #24877 from neikeq/issue-24280Rémi Verschelde2019-01-102-18/+12
|\ | | | | Fix properties being lost when reloading placeholder GDScript instance
| * Fix properties being lost when reloading placeholder GDScript instanceIgnacio Etcheverry2019-01-102-18/+12
| | | | | | | | | | | | | | During reloading in `GDScriptLanguage::reload_all_scripts` a placeholder instance that must remain so is replaced with a new placeholder instance. The state is then restored by calling `ScriptInstance::set` for each property. This does not work if the script is missing the properties due to build/parse failing. The fix for such cases is to call `placeholder_set_fallback` instead of `set` on the script instance. I took this chance to move the `build_failed` flag from `PlaceHolderScriptInstance` to `Script`. That improves the code a lot. I also renamed it to `placeholder_fallback_enabled` which is a much better name (`build_failed` could lead to misunderstandings).
* | Consistency in resource format saver/loader de-registrationRémi Verschelde2019-01-101-21/+12
| | | | | | | | | | | | | | | | | | | | Some used 'is_valid()' checks, others not. Validity is already checked in 'unref()', and 'remove_resource_format_*()' has an ERR_FAIL condition on 'is_null()' already (which shouldn't happen since we're only unregistering things that we previously registered. Also add missing GDCLASS statement in ResourceFormatLoaderVideoStreamGDNative, missed in #20552 which was last amended before #19501 was merged.
* | Removed splits in Polygon editor, replace by internal vertices and polygon ↵Juan Linietsky2019-01-082-1/+33
| | | | | | | | support.
* | Update random_pcg.hCalamander2019-01-071-2/+2
| | | | | | little fix to function types
* | Repair String lstrip and rstrip.Ibrahn Sahir2019-01-074-19/+29
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #21708 from hpvb/fix-21242v2Hein-Pieter van Braam2019-01-042-2/+21
|\ \ | | | | | | String[size()] should return a default constructed CharType
| * | String[size()] should return a default constructed CharTypeHein-Pieter van Braam2019-01-042-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #24585 from Xrayez/fix-crash-hex-numberRémi Verschelde2019-01-041-1/+4
|\ \ \ | |/ / |/| | Fix crash when checking empty string for valid hex number
| * | Fix crash when checking empty string for valid hex numberAndrii Doroshenko (Xrayez)2018-12-241-1/+4
| | |
* | | Merge pull request #24732 from hpvb/vector-pod-optimizationRémi Verschelde2019-01-042-25/+44
|\ \ \ | | | | | | | | Optimizations for trivial types
| * | | Optimizations for trivial typesHein-Pieter van Braam2019-01-032-25/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Update zstd to 1.3.8Guilherme Felipe2019-01-032-4/+8
|/ / /
* | | Update copyright statements to 2019Rémi Verschelde2019-01-01258-516/+516
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | doc: Sync classref with current sourceRémi Verschelde2018-12-271-1/+1
| | | | | | | | | | | | Fix various code formatting issues and argument names.
* | | Bind `is_valid_hex_number` string method to GDScriptAndrii Doroshenko (Xrayez)2018-12-241-0/+2
|/ /
* | ProjectManager: Warn when projects have different config_versionRémi Verschelde2018-12-212-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #24500 from akien-mga/drop-global_defaultsRémi Verschelde2018-12-202-18/+0
|\ \ | | | | | | Core: Drop unused global_defaults logic
| * | Core: Drop unused global_defaults logicRémi Verschelde2018-12-202-18/+0
| | | | | | | | | | | | | | | It used to be used for Android and iOS to specify platform-specific project settings overrides, but we now have feature tags for that.
* | | Added OS.get_system_time_msecs()volzhs2018-12-204-0/+10
|/ /
* | Merge pull request #24388 from Chaosus/fix_csv_spamRémi Verschelde2018-12-171-1/+2
|\ \ | | | | | | Removed error message arriving whenever csv file changed
| * | Removed error message arriving whenever csv file changedChaosus2018-12-161-1/+2
| | |
* | | Merge pull request #24385 from hpvb/reduce-string-coewRémi Verschelde2018-12-163-8/+39
|\ \ \ | | | | | | | | Reduce String CoW
| * | | Reduce String CoWHein-Pieter van Braam2018-12-163-8/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #19501 from Zylann/custom_loadersRémi Verschelde2018-12-169-40/+419
|\ \ \ \ | | | | | | | | | | Added basic support for custom resource savers and loaders
| * | | | Added basic support for custom resource savers and loadersMarc Gilleron2018-12-159-40/+419
| | | | |
* | | | | Don't allocate in Vector's ctorHein-Pieter van Braam2018-12-141-33/+23
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #21856 from AlexHolly/fix-undo-not-showing-errorRémi Verschelde2018-12-141-1/+18
|\ \ \ \ | |_|/ / |/| | | Fix undo redo not showing errors
| * | | Fix undo redo not showing errorsAlexander Holland2018-09-081-1/+18
| | | |
* | | | Merge pull request #23799 from marcelofg55/custom_psRémi Verschelde2018-12-142-1/+16
|\ \ \ \ | | | | | | | | | | Add application/config/project_settings_override option to override project settings
| * | | | Add application/config/project_settings_override option to override project ↵Marcelo Fernandez2018-12-132-1/+16
| | | | | | | | | | | | | | | | | | | | settings
* | | | | Merge pull request #24135 from Chaosus/rngRémi Verschelde2018-12-122-2/+8
|\ \ \ \ \ | | | | | | | | | | | | Added ranged integer generation function to RNG class
| * | | | | Added integer number generation function to RNG classChaosus2018-12-062-2/+8
| | | | | |
* | | | | | Merge pull request #24241 from Rubonnek/move-to-initializer-listRémi Verschelde2018-12-1219-161/+156
|\ \ \ \ \ \ | | | | | | | | | | | | | | Moved member variables to initializer list
| * | | | | | Moved member variables to initializer listWilson E. Alvarez2018-12-1119-161/+156
| | | | | | |
* | | | | | | Merge pull request #23923 from bruvzg/ime_gdscriptRémi Verschelde2018-12-115-3/+19
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Changes IME to make it possible to use it from gdscript/gdnative
| * | | | | | Changes IME input to use notification instead of callback, exposes IME ↵bruvzg2018-11-235-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | methods to gdscript/gdnative.
* | | | | | | Merge pull request #22630 from dualtagh/22478Rémi Verschelde2018-12-071-1/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | 22478: Can't duplicate folder with another folder inside
| * | | | | | | 22478: Can't duplicate folder with another folder insideDualtagh Murray2018-10-021-1/+5
| | | | | | | |
* | | | | | | | Merge pull request #22733 from guilhermefelipecgs/fix_wm_classRémi Verschelde2018-12-071-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | [x11] Use "application/config/name" for WM_CLASS
| * | | | | | | | [x11] Use "application/config/name" for WM_CLASSGuilherme Felipe2018-10-051-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #24194 from bojidar-bg/23567-fix-message-queue-overflowRémi Verschelde2018-12-061-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Make thumbnail cache less tasking on the message queue
| * | | | | | | | | Make thumbnail cache less tasking on the message queueBojidar Marinov2018-12-061-1/+1
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #23567
* | | | | | | | | Merge pull request #24090 from RandomShaper/fix-blit-from-negativeRémi Verschelde2018-12-061-4/+8
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | Fix blitting from negative position
| * | | | | | | | Fix blitting from negative positionPedro J. Estébanez2018-11-301-4/+8
| | |_|_|_|_|_|/ | |/| | | | | |
* | | | | | | | const char* operator on CharString now const.Ibrahn Sahir2018-12-031-1/+1
| |_|_|_|/ / / |/| | | | | |
* | | | | | | Fix text files constantly asking for reload as no last modified timePaulb232018-12-022-0/+3
|/ / / / / /
* | | | | | Merge pull request #24039 from clayjohn/transform_bugRémi Verschelde2018-11-281-1/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | Construct Transform from Transform2D bug
| * | | | | | construct transform from transform2d bugclayjohn2018-11-281-1/+11
| | | | | | |