summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2018-05-03updated OAHashMap to use robinhood hashingkarroffel
2018-05-02Merge pull request #17196 from RandomShaper/improve-gui-touchRémi Verschelde
Implement universal translation of touch to mouse (3.1)
2018-05-02Merge pull request #18520 from paulloz/gdscript-api-string-pathRémi Verschelde
fix API string path
2018-05-01Merge pull request #18530 from garyo/missing-arg-errRémi Verschelde
Handle missing arg pointer in Variant::get_call_error_text
2018-05-01Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-varRémi Verschelde
Fix Coverity reports of uninitialized scalar variable
2018-05-01Merge pull request #16649 from ibrahn/visual-script-release-crashRémi Verschelde
fix for segfault when using CallBasic in visual script on release build
2018-05-01Fix #17019 : overrides with unknown base settingManuel Moos
If at the time of the _GLOBAL_DEF call a setting itself was unknown, the function would always return the supplied default value instead of checking for overrides. This commit changes that, lookup now always happens which correctly takes overrides into account.
2018-05-01Merge pull request #18428 from groud/fix_inputRémi Verschelde
Fixing input strength and the impossibility to erase action events
2018-05-01Merge pull request #18355 from ShyRed/fix18344Rémi Verschelde
Keep alpha when changing h, s or v Color property in GDScript
2018-05-01Merge pull request #18321 from Crazy-P/Fixes-logically-dead-codeRémi Verschelde
Fixes logically dead code (Coverity)
2018-04-30Handle missing arg pointer in get_call_error_textGary Oberbrunner
I had a situation coming from godot-python where the caller of Variant::get_call_error_text() passed null for `p_argptrs`. In addition to fixing that in the caller, seems like good practice to defend against that situation in the callee to prevent a crash. So this patch just substitutes some semi-useful text for the source type name and keeps going so the user's actual error gets emitted.
2018-04-30Implement universal translation of touch to mousePedro J. Estébanez
Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
2018-04-30Merge pull request #18284 from mhilbrunner/pck-versionMax Hilbrunner
Fix .pck exporting via PCKPacker
2018-04-30fix API string pathPaul Joannon
2018-04-29Add option to renormalize mipmaps when generating them for normalmaps.Juan Linietsky
Reduces some aliasing.
2018-04-25Fixing input strength and the impossibility to erase action eventsgroud
2018-04-22Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio
2018-04-22Merge pull request #18176 from nikibobi/string-trimGeorge Marques
Add string trim_prefix, trim_suffix, lstrip and rstrip methods
2018-04-22Keep alpha when changing h, s or v on colorShyRed
When modifying the h, s or v properties of a color in GDScript the alpha value needs to stay unchanged.
2018-04-21Fixes logically dead code (Coverity)Crazy-P
Fixes reported logically dead codes by Coverity * image.cpp: Doesn't really need any modification. But to remove the bug report then we have to move the MAX call away from the for loop statement. * rasterizer_gles3.cpp: Removes unnecessary elif condition since it is checked earlier in the function * collada.cpp: If stamement never reached due to macro ERR_CONTINUE does the same. * navigation_mesh.cpp: Variables should always be null - however, also checked for the very same condition in their function call. Leaving this for review (whether the function call is necessary or not) * path_editor_plugin.cpp: If cancel is true, then it should restore the edited value to the original provided. http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle * spatial_editor_gizmos.cpp: the very condition of i >= 3 is predetermined in the if case right before it. Thus case 1 is always '1' and case 2 is always '-1' * grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp * voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp * visual_server.cpp: Same as above in spatial_editor_gizmos.cpp * visual_script_expression.cpp: char '-' is already true in the switch case mechanism. Thus it can never reach to default case. * particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking right before the switch execution. * shader_language.cpp: Invalid index is handled in switch default case. `type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`) Fixes the "always false problem" in TODO comment.
2018-04-19Merge pull request #18280 from groud/fix_inputRémi Verschelde
Fixes left/up axis not mappable as actions
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-19PCKPacker:pck_start(): Update versionMax Hilbrunner
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-18Fixes left/up axis not mappable as actionsGilles Roudiere
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-17add string trim_prefix trim_suffix lstrip and rstrip methodsbosak
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