summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2018-05-12Allow sending raw bytes through MultiplayerAPIFabio Alessandrelli
2018-05-09Merge pull request #18709 from Faless/multiplayer_docsMax Hilbrunner
Rename multiplayer_api to multiplayer, add docs
2018-05-08Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam
Experimental support for windows with per-pixel transparency.
2018-05-08Merge pull request #15305 from poke1024/checks-peerJuan Linietsky
Checks on input_buffer in PacketPeerStream
2018-05-08Merge pull request #15282 from poke1024/check-obj-classJuan Linietsky
Check implicit casts on object classes in bound method calls
2018-05-08Internal methods in MultiplayerAPI start with _Fabio Alessandrelli
2018-05-07Local debugger fixes and extensionsBlazej Floch
- Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
2018-05-07Merge pull request #17316 from ShyRed/significantdigitsJuan Linietsky
Adjust decimal precision
2018-05-07Merge pull request #17353 from zmanuel/timer_hysteresis_multiframe_pr1Juan Linietsky
Use hysteresis for smoother physics update frequency
2018-05-07Merge pull request #15943 from poke1024/geometry-line-lineJuan Linietsky
Add Geometry::line_intersects_line_2d()
2018-05-07Merge pull request #16033 from poke1024/marshalls-dictJuan Linietsky
Detects crash-related marshalling errors due to NAN values
2018-05-07Add is_instance_valid() method to GDScript, ending more than a decade of pain.Juan Linietsky
2018-05-07Merge pull request #16893 from GodotExplorer/debugger-improvement-3Juan Linietsky
Save runtime node as scene from remote scene tree.
2018-05-07Merge pull request #18121 from ↵Juan Linietsky
Crazy-P/Resolves-Freeze-on-change-reflection-probe Resolves editor freezes on change of reflection probe
2018-05-07Merge pull request #18219 from AlexHolly/fix-image-blit-blendJuan Linietsky
blit and blend fix when dst<Vector2
2018-05-07Merge pull request #18505 from AlexHolly/image-point2-helperJuan Linietsky
add Point2 helper for Image.get_pixel and Image.set_pixel
2018-05-05add condition check in Imgae::create(...)RaphaelHunter
2018-05-05Merge pull request #18501 from touilleMan/clean-variant-_data-RefPtrMax Hilbrunner
Remove unused Variant._data.RefPtr
2018-05-05Merge pull request #18488 from AndreaCatania/ie0Max Hilbrunner
Added method to clear input events of an action
2018-05-04Vector3::round, Vector2::round & Vector2::ceil methods were added.Alexander Alekseev
Now both structs (Vector2 & Vector3) have round, floor & ceil methods. (see #18603)
2018-05-03Merge pull request #18589 from karroffel/oahashmap-robinhoodJuan Linietsky
updated OAHashMap to use robinhood hashing
2018-05-03updated OAHashMap to use robinhood hashingkarroffel
2018-05-03Merge pull request #18514 from neikeq/api-hash-fixesRémi Verschelde
API hash fixes
2018-05-03Added method to clear input events of an actionAndreaCatania
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-29ClassDB API hash now only includes exposed classesIgnacio Etcheverry
2018-04-29add Point2 helper for Image.get_pixel and Image.set_pixelAlexander Holland
image-point2-helper
2018-04-29Remove unused Variant._data.RefPtrEmmanuel Leblond
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)