aboutsummaryrefslogtreecommitdiff
path: root/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add condition check in Imgae::create(...)RaphaelHunter2018-05-051-0/+3
|
* Merge pull request #18501 from touilleMan/clean-variant-_data-RefPtrMax Hilbrunner2018-05-051-1/+0
|\ | | | | Remove unused Variant._data.RefPtr
| * Remove unused Variant._data.RefPtrEmmanuel Leblond2018-04-291-1/+0
| |
* | Merge pull request #18488 from AndreaCatania/ie0Max Hilbrunner2018-05-052-0/+9
|\ \ | | | | | | Added method to clear input events of an action
| * | Added method to clear input events of an actionAndreaCatania2018-05-032-0/+9
| | |
* | | Vector3::round, Vector2::round & Vector2::ceil methods were added.Alexander Alekseev2018-05-044-0/+24
| | | | | | | | | | | | | | | Now both structs (Vector2 & Vector3) have round, floor & ceil methods. (see #18603)
* | | Merge pull request #18589 from karroffel/oahashmap-robinhoodJuan Linietsky2018-05-031-442/+175
|\ \ \ | | | | | | | | updated OAHashMap to use robinhood hashing
| * | | updated OAHashMap to use robinhood hashingkarroffel2018-05-031-442/+175
| |/ /
* | | Merge pull request #18514 from neikeq/api-hash-fixesRémi Verschelde2018-05-031-1/+1
|\ \ \ | |/ / |/| | API hash fixes
| * | ClassDB API hash now only includes exposed classesIgnacio Etcheverry2018-04-291-1/+1
| |/
* | Merge pull request #17196 from RandomShaper/improve-gui-touchRémi Verschelde2018-05-022-2/+3
|\ \ | | | | | | Implement universal translation of touch to mouse (3.1)
| * | Implement universal translation of touch to mousePedro J. Estébanez2018-04-302-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* | | Merge pull request #18520 from paulloz/gdscript-api-string-pathRémi Verschelde2018-05-023-5/+5
|\ \ \ | | | | | | | | fix API string path
| * | | fix API string pathPaul Joannon2018-04-303-5/+5
| | | |
* | | | Merge pull request #18530 from garyo/missing-arg-errRémi Verschelde2018-05-011-1/+5
|\ \ \ \ | | | | | | | | | | Handle missing arg pointer in Variant::get_call_error_text
| * | | | Handle missing arg pointer in get_call_error_textGary Oberbrunner2018-04-301-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-varRémi Verschelde2018-05-012-1/+3
|\ \ \ \ \ | | | | | | | | | | | | Fix Coverity reports of uninitialized scalar variable
| * | | | | Fix Coverity reports of uninitialized scalar variableRémi Verschelde2018-04-192-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | | | | Merge pull request #16649 from ibrahn/visual-script-release-crashRémi Verschelde2018-05-011-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | fix for segfault when using CallBasic in visual script on release build
| * | | | | | fix for segfault when using CallBasic in visual script on release buildIbrahn Sahir2018-02-121-1/+1
| | | | | | |
* | | | | | | Fix #17019 : overrides with unknown base settingManuel Moos2018-05-011-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #18428 from groud/fix_inputRémi Verschelde2018-05-013-5/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fixing input strength and the impossibility to erase action events
| * | | | | | | Fixing input strength and the impossibility to erase action eventsgroud2018-04-253-5/+7
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Merge pull request #18355 from ShyRed/fix18344Rémi Verschelde2018-05-011-9/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Keep alpha when changing h, s or v Color property in GDScript
| * | | | | | | Keep alpha when changing h, s or v on colorShyRed2018-04-221-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When modifying the h, s or v properties of a color in GDScript the alpha value needs to stay unchanged.
* | | | | | | | Merge pull request #18321 from Crazy-P/Fixes-logically-dead-codeRémi Verschelde2018-05-012-2/+6
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | Fixes logically dead code (Coverity)
| * | | | | | | Fixes logically dead code (Coverity)Crazy-P2018-04-212-2/+6
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #18284 from mhilbrunner/pck-versionMax Hilbrunner2018-04-301-4/+4
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | Fix .pck exporting via PCKPacker
| * | | | | | PCKPacker:pck_start(): Update versionMax Hilbrunner2018-04-191-4/+4
| | | | | | |
* | | | | | | Add option to renormalize mipmaps when generating them for normalmaps.Juan Linietsky2018-04-292-13/+37
| |_|/ / / / |/| | | | | | | | | | | | | | | | | Reduces some aliasing.
* | | | | | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-1/+1
| | | | | |
* | | | | | Merge pull request #18176 from nikibobi/string-trimGeorge Marques2018-04-223-0/+64
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Add string trim_prefix, trim_suffix, lstrip and rstrip methods
| * | | | | add string trim_prefix trim_suffix lstrip and rstrip methodsbosak2018-04-173-0/+64
| | |_|_|/ | |/| | |
* | | | | Merge pull request #18280 from groud/fix_inputRémi Verschelde2018-04-191-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | Fixes left/up axis not mappable as actions
| * | | | Fixes left/up axis not mappable as actionsGilles Roudiere2018-04-181-2/+2
| | |/ / | |/| |
* / | | Fix some Coverity warnings in String APIRémi Verschelde2018-04-183-29/+13
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | Add a macro to deprecate methodsJuan Linietsky2018-04-181-0/+10
| | |
* | | Merge pull request #18204 from tagcup/quat_scaleRémi Verschelde2018-04-183-5/+77
|\ \ \ | | | | | | | | Avoid converting Quat to Euler angles when not necessary.
| * | | Avoid converting Quat to Euler angles when not necessary.tagcup2018-04-143-5/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #18227 from bojidar-bg/fix-date-unix-crashRémi Verschelde2018-04-181-7/+7
|\ \ \ \ | | | | | | | | | | Fix crash resulting from bad month check in core_bind.cpp
| * | | | Fix crash resulting from bad month check in core_bind.cppBojidar Marinov2018-04-171-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Also, make it clear that day is 0-based. This might cause very slight differcies in existing games. Fixes #18221
* | | | | Merge pull request #16902 from groud/analog_action_systemJuan Linietsky2018-04-188-52/+154
|\ \ \ \ \ | | | | | | | | | | | | Allow actions to provide an analog value
| * | | | | Allow actions to provide an analog valueGilles Roudiere2018-04-168-52/+154
| | | | | |
* | | | | | Fix names of Variant operatorsGeorge Marques2018-04-161-1/+2
| |_|/ / / |/| | | |
* | | | | Merge pull request #18170 from Chaosus/improvewrapfGilles Roudiere2018-04-141-2/+2
|\ \ \ \ \ | | | | | | | | | | | | Small performance fix to wrapf
| * | | | | Small performance fix to wrapfChaosus2018-04-131-2/+2
| | |_|/ / | |/| | |
* / | | | Revert "Unify http- and percent- encode/decode"Pedro J. Estébanez2018-04-123-7/+72
|/ / / / | | | | | | | | | | | | This reverts commit b76ee30917c63211ac9e94a21bebbddf518d169f.
* | | | iPhone X support and iOS-related fixesRuslan Mustakov2018-04-113-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Update classref and docs, fix missing parameters' namePoommetee Ketson2018-04-111-2/+2
| | | |
* | | | Implement Input.set_default_cursor_shape to change the default shapeGuilherme Felipe2018-04-102-0/+3
| | | | | | | | | | | | | | | | Closes #18043