summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2018-04-19Fix Coverity reports of uninitialized scalar variableRémi Verschelde
Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
2018-04-18Fix some Coverity warnings in String APIRémi Verschelde
- StringName::StringName(const StringName &p_name) Non-static class member _data is not initialized in this constructor nor in any functions that it calls. - StringName::_Data() Non-static class member idx is not initialized in this constructor nor in any functions that it calls. - String::num_uint64(...) This less-than-zero comparison of an unsigned value is never true. n % base < 0UL. - String::hex_to_int(...) and String::hex_to_int64(...) Execution cannot reach this statement (deadcode)
2018-04-18Add a macro to deprecate methodsJuan Linietsky
2018-04-18Merge pull request #18204 from tagcup/quat_scaleRémi Verschelde
Avoid converting Quat to Euler angles when not necessary.
2018-04-18Merge pull request #18227 from bojidar-bg/fix-date-unix-crashRémi Verschelde
Fix crash resulting from bad month check in core_bind.cpp
2018-04-18Merge pull request #16902 from groud/analog_action_systemJuan Linietsky
Allow actions to provide an analog value
2018-04-17Fix crash resulting from bad month check in core_bind.cppBojidar Marinov
Also, make it clear that day is 0-based. This might cause very slight differcies in existing games. Fixes #18221
2018-04-16Allow actions to provide an analog valueGilles Roudiere
2018-04-16Fix names of Variant operatorsGeorge Marques
2018-04-14Avoid converting Quat to Euler angles when not necessary.tagcup
Also ensure that get_scale doesn't arbitrarlity change the signs of scales, ensuring that the combination of get_rotation and get_scale gives the correct basis. Added various missing functions and constructors. Should close #17968.
2018-04-14Merge pull request #18170 from Chaosus/improvewrapfGilles Roudiere
Small performance fix to wrapf
2018-04-13Small performance fix to wrapfChaosus
2018-04-12Revert "Unify http- and percent- encode/decode"Pedro J. Estébanez
This reverts commit b76ee30917c63211ac9e94a21bebbddf518d169f.
2018-04-11iPhone X support and iOS-related fixesRuslan Mustakov
Starting from April 2018 Apple no longer accepts apps that do not support iPhone X. For games this mainly means respecting the safe area, unobstructed by notch and virtual home button. UI controls must be placed within the safe area so that users can interact with them. This commit: - Adds OS::get_window_safe_area method that returns unobscured area of the window, where interactive controls should be rendered. - Reorganizes how launch screens are exported - the previous way was incorrect and modern iPhones did not pick up the correct screens and because of that used a non-native resolution to render the game. - Adds launch screen options for iPhone X. - Makes launch screens optional in the export template. If not specified, a white screen will be used. - Adds App Store icon (1024x1024) export option as it now has to be bundled with the app instead of being provided in iTunes Connect. - Fixes crash when launching games in iOS Simulator. It happened because controllerWasConnected callback came before the engine was initialized. Now in such case the controllers will be queued up and registered after initialization is done. - Fixes issue with the virtual keyboard where for some reason autocorrection panel would intersect with the keyboard itself and not allow you to use the top row of the keyboard. This is fixed by disabling autocorrection altogether. Closes #17358. Fixes #17428. Fixes #17331.
2018-04-11Update classref and docs, fix missing parameters' namePoommetee Ketson
2018-04-10Implement Input.set_default_cursor_shape to change the default shapeGuilherme Felipe
Closes #18043
2018-04-09Resolves Inccorect Quaternion ConversionCrazy-P
Fixes https://github.com/godotengine/godot/issues/18025
2018-04-08Merge pull request #16495 from Chaosus/is_point_in_triangle_fixJuan Linietsky
Fix is_point_in_triangle function
2018-04-08Merge pull request #16898 from Lerc/masterJuan Linietsky
add Image::bumpmap_to_normalmap conversion function
2018-04-08Merge pull request #17227 from Faless/multiplayer_apiJuan Linietsky
[RFC] MultiplayerAPI refactor
2018-04-08Merge pull request #17232 from playster000/masterJuan Linietsky
enhance mipmaps, non power of 2 textures
2018-04-08Merge pull request #17382 from bojidar-bg/13971-path-array-unsavedJuan Linietsky
Duplicate Arrays and Dictionaries when instancing scene in editor
2018-04-08Merge pull request #17967 from Nibodhika/all-device-modeJuan Linietsky
Allows to map an action to all devices.
2018-04-07Allows to map an action to all devices.Nibodhika
This is accomplished by setting a special value (-1) to the device variable in the InputEvent that's being used to compare with the one received from the OS. This special value is invalid for a regular input, so it should be safe. Implements #17942
2018-04-07Merge pull request #17583 from RandomShaper/enhance-uri-utilsJuan Linietsky
Enhance uri utils
2018-04-07Merge pull request #17636 from rainerdeyke/fix_issue_17585Juan Linietsky
Fixes moving files causes scene corruption
2018-04-06Fixed signal input variable nameAndrea Catania
2018-04-05Fix buggy percent-encodingPedro J. Estébanez
Fixes #17875.
2018-04-05Merge pull request #17827 from bruvzg/macos_shortcut_key_remapping_fixRémi Verschelde
[macOS] Fix keyboard shortcuts on non QWERTY keyboard layouts.
2018-04-03Merge pull request #17847 from Faless/lws_updateRémi Verschelde
LWS v2.4.2, mbedTLS v2.8.0, Websocket SSL support
2018-04-03Ctrl+Clicking a enum now scrolls down to it in the docs.Felix Yang
2018-04-03Generalize SSL cert reading from fileFabio Alessandrelli
2018-03-28[macOS] Fix keyboard shortcuts on non QWERTY keyboard layouts.bruvzg
2018-03-27Enhance HTTPClient.query_string_from_dict()Pedro J. Estébanez
2018-03-27Unify http- and percent- encode/decodePedro J. Estébanez
There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative). This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
2018-03-24Fixes scene corruption when updating dependencies.Rainer Deyke
This commit fixes issue #17585: renaming/moving resources can corrupt scene files. The corruption was caused by 'ResourceFormatLoaderBinary::rename_dependencies' updating the file format version field of the affected scene file to the latest version without actually updating the content of the file to that version, resulting in a file whose content does not match its file format version field. The fix preserves the file format version field and the engine version fields when renaming dependencies.
2018-03-22Fix for clang warning at distance_toMarcelo Fernandez
2018-03-22Fix several in-class initialization clang warningMarcelo Fernandez
2018-03-21Merge pull request #17653 from eska014/rwlock-dummyRémi Verschelde
Add RWLockDummy for NO_THREADS builds
2018-03-20Add RWLockDummy for NO_THREADS buildsLeon Krause
2018-03-18Fix listing files inside directory in pack filePedro J. Estébanez
When adding a directory path to the inventory of the pack, an empty file name was being added to the file list. That made `Directory.get_ntext()` signal end-of-list too early so that files in a subdirectory were missed. Fixes #15801. Helps with #16798.
2018-03-16Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli
GUI elements ui_action usage, improvements
2018-03-15Merge pull request #17237 from RandomShaper/fix-ssl-handshakeFabio Alessandrelli
Fix HTTPClient SNI support when verify is off
2018-03-16change bumpmap_to_normalmap range from [1...255] to [0...255]Neil Graham
2018-03-15Merge pull request #17376 from marcelofg55/file_get_pathHein-Pieter van Braam
Added File.get_path and File.get_path_absolute functions
2018-03-15Merge pull request #17407 from poke1024/fix-hsv-mismatchHein-Pieter van Braam
Fix mismatch between Color.h and Color.from_hsv()
2018-03-15Merge pull request #17388 from Hinsbart/mono_class_nameRémi Verschelde
Mono: Avoid invalid class names.
2018-03-15Mono: Avoid invalid class names.Andreas Haas
Disallow reserved keywords as class names and prefix base class with the Godot namespace if it's the same as the class name. Fixes #12483
2018-03-14Fix mismatch between Color.h and Color.from_hsv()Bernhard Liebl
2018-03-13Merge pull request #17486 from bojidar-bg/x-fix-clang-negation-warnRémi Verschelde
Fix a potential bug hinted by clang