aboutsummaryrefslogtreecommitdiff
path: root/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added the set/get_setting function in Editor/Project settings. Renamed has() ↵Juan Linietsky2017-10-054-6/+19
| | | | to has_setting. Fixes #11844
* Merge pull request #11812 from NathanWarden/fix_validate_sslGilles Roudiere2017-10-041-1/+1
|\ | | | | Fixed a bug where ssl would force validation even though you told it not to.
| * Fixed a bug where ssl would force validation even though you told it not to.Nathan Warden2017-10-031-1/+1
| |
* | Merge pull request #11823 from endragor/virtual-keyboard-heightGilles Roudiere2017-10-044-0/+13
|\ \ | | | | | | Allow to obtain virtual keyboard height
| * | Allow to obtain virtual keyboard heightRuslan Mustakov2017-10-044-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | On mobile platforms virtual keyboards take up significant amount of screen space and UI containing a text box may need to be adjusted after the keyboard appears to keep the text box visible to user. This commit adds a way to obtain virtual keyabord height so that controls are aware of how much they need to move.
* | | fixed the OS.has_feature() API, and added support for 32 and 64.Juan Linietsky2017-10-036-4/+20
| |/ |/|
* | Merge pull request #11782 from eska014/persistent-userfs-testHein-Pieter van Braam2017-10-033-0/+10
|\ \ | |/ |/| Add OS::is_userfs_persistent, allow starting HTML5 platform in private mode
| * Add OS::is_userfs_persistent to check user:// persistenceLeon Krause2017-10-023-0/+10
| | | | | | | | Allows starting HTML5 export when IndexedDB is not available.
* | Merge pull request #11568 from endragor/loggersAndreas Haas2017-10-0220-29/+433
|\ \ | | | | | | Extract logging logic
| * | Extract logging logicRuslan Mustakov2017-09-2520-29/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* | | Merge pull request #11659 from AndreaCatania/prephysicsAndreas Haas2017-10-029-27/+27
|\ \ \ | | | | | | | | Renamed fixed_process to physics_process
| * | | Renamed fixed_process to physics_processAndreaCatania2017-09-309-27/+27
| | |/ | |/|
* | | Merge pull request #11730 from gabrielformiga/fix-small-png-texture-importAndreas Haas2017-10-021-2/+2
|\ \ \ | | | | | | | | Change to Image::shrink_x2 function preventing it set a 0 width/height for mipmapped textures
| * | | Change to shrink_x2 function preventing it set a 0 width/heightGabriel2017-09-301-2/+2
| |/ /
* | | Merge pull request #11575 from marcelofg55/move_path_to_trashPoommetee Ketson2017-10-021-0/+2
|\ \ \ | |/ / |/| | FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trash
| * | FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trashMarcelo Fernandez2017-09-251-0/+2
| |/
* | Build MSVC safe_refcount in a separate compilation unitHein-Pieter van Braam2017-09-272-86/+183
| | | | | | | | | | | | Including windows.h in a globally included header gives all kinds of issues. Move the MSVC implementation for safe_refcount back into a .cpp file to prevent this from happening.
* | Merge pull request #11445 from Cradmon/refactorCoreMapRémi Verschelde2017-09-252-231/+216
|\ \ | | | | | | Refactor core/map.h
| * | Refactor core/map.h to be similar to core/set.hCradmon2017-09-201-160/+157
| | |
| * | Refactor core/set.hCradmon2017-09-201-71/+59
| | |
* | | Merge pull request #11518 from hpvb/gdscript-direct-dispatchRémi Verschelde2017-09-253-330/+236
|\ \ \ | | | | | | | | Some more GDScript performance optimizations
| * | | Make variant_op jumptable constHein-Pieter van Braam2017-09-251-26/+26
| | | | | | | | | | | | | | | | Not doing this was a bit of an oversight
| * | | Allow inlining of all parts of safe_refcountHein-Pieter van Braam2017-09-252-304/+210
| | |/ | |/| | | | | | | | | | Differences with this aren't huge but the effort is minimal, in some workloads gain a couple of percent of performance.
* | | Merge pull request #11567 from QuLogic/scons-var-typesRémi Verschelde2017-09-251-1/+1
|\ \ \ | | | | | | | | Add types to scons command-line options
| * | | Use BoolVariable for third-party options.Elliott Sales de Andrade2017-09-251-1/+1
| |/ /
* / / Fixed constness of variant functions, as well as visual script sequence ↵Juan Linietsky2017-09-252-21/+50
|/ / | | | | | | ports. Closes #11258
* | Merge pull request #11549 from hpvb/fix-11543Hein-Pieter van Braam2017-09-241-1/+1
|\ \ | | | | | | Fix Dictionary set_named
| * | Fix Dictionary set_namedHein-Pieter van Braam2017-09-241-1/+1
| | | | | | | | | | | | | | | | | | Reduz optimized field indexing in 3c85703 but the changes didn't apply to dictionary so this code remained untouched. However, the logic for validity checking was changed but not updated for the dictionary case.
* | | Fix Variant::get_named return when p_index is invalidMarcelo Fernandez2017-09-241-0/+1
|/ /
* | Merge pull request #11473 from hpvb/fix-11466Rémi Verschelde2017-09-241-8/+14
|\ \ | | | | | | Implement operator != on Pool*Array types
| * | Implement operator != on Pool*Array typesHein-Pieter van Braam2017-09-221-8/+14
| | | | | | | | | | | | | | | | | | | | | These types previously had equality checks but not inequality checks. Add these too. This fixes #11466
* | | Enable building against system zstd.Elliott Sales de Andrade2017-09-232-20/+3
| | |
* | | Massive optimization to Variant::set_named/get_named. Should give a nice ↵Juan Linietsky2017-09-233-29/+506
|/ / | | | | | | boost to GDScript.
* | Merge pull request #11461 from hpvb/add-likely-macrosRémi Verschelde2017-09-223-12/+21
|\ \ | | | | | | Implement Linux-style likely()/unlikely() macros
| * | Implement Linux-style likely()/unlikely() macrosHein-Pieter van Braam2017-09-213-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implement branch prediction macros likely() and unlikely() like in Linux. When using these macros please ensure that when you use them the condition in the branch really is very, very likely or unlikely. Think 90+% of the time. Primarily useful for error checking. (And I implement these macros for all our error checking macros now) See this article for more information: https://kernelnewbies.org/FAQ/LikelyUnlikely There are more places where these macros may make sense in renderer and physics engine. Placing them will come in another commit down the line.
* | | Fixed a bunch of typos, including an error code.Ross Hadden2017-09-217-17/+17
|/ /
* | Fix import order, so scenes are imported after textures.Juan Linietsky2017-09-204-4/+59
| | | | | | | | Also fix bugs when meshes are always generated.
* | Merge pull request #11437 from hpvb/allow-compare-to-nullJuan Linietsky2017-09-201-156/+201
|\ \ | |/ |/| Allow equality checks between null and arbitrary types
| * Allow equality checks between null and arbitrary typesHein-Pieter van Braam2017-09-201-156/+201
| | | | | | | | | | | | | | | | Uninitialzed values in GDScript are of type NIL so not allowing null comparisons did end up breaking some code. This commit reenables NULL equality checks for all types. We're going to have to figure out how to make this fast for the compiler later.
* | Merge pull request #11409 from MarufSarker/PR-core-math-is_nanRémi Verschelde2017-09-201-2/+38
|\ \ | | | | | | Verbose and Platform-specific implementation for is_nan
| * | verbose and platform specific implementation for is_nanABU MD. MARUF SARKER2017-09-201-2/+38
| |/
* / Rename pos to position in user facing methods and variablesletheed2017-09-2032-74/+72
|/ | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Merge pull request #10748 from Cradmon/fixCoreSetRémi Verschelde2017-09-191-118/+125
|\ | | | | Refactor core/set.h
| * Refactor core/set.hCradmon2017-09-121-118/+125
| |
* | Merge pull request #11208 from kitsune/hex-color-shortcutsRémi Verschelde2017-09-191-0/+8
|\ \ | | | | | | Adds 3 and 4 digit html shortcuts to Color
| * | Adds 3 and 4 digit html shortcuts to ColorDylan Enloe2017-09-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Color::html now expands 3 and 4 digit hex values into 6 and 8 digit values by repeating each digit. This is to bring it in line with how html handles these values fixes #10997
* | | Merge pull request #11388 from hpvb/fix-missing-return-failRémi Verschelde2017-09-192-143/+76
|\ \ \ | | | | | | | | Be type-strict checking on equality checks
| * | | Allow booleanization of all typesHein-Pieter van Braam2017-09-192-76/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now allow booleanization of all types. This means that empty versions of all types now evaluate to false. So a Vector2(0,0), Dictionary(), etc. This allows you to write GDScript like: if not Dictionary(): print("Empty dict") Booleanization can now also no longer fail. There is no more valid flag, this changes Variant and GDNative API.
| * | | Be type-strict checking on equality checksHein-Pieter van Braam2017-09-191-67/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a short discussion with @reduz and @karroffel we decided to make all non number/number comparisons return type errors on comparisons. Now bool == bool is allowed but Vector2 == Vector3 is a type error and no longer 'not equal'. The same has been done for the != operators. In addition I forgot to add some failures to some Object operators meaning that there was a potential for a crasher.
* | | | Merge pull request #11405 from karroffel/new-hashmapRémi Verschelde2017-09-193-33/+627
|\ \ \ \ | |/ / / |/| | | added OAHashMap type