aboutsummaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #18545 from vnen/editor-autoloadJuan Linietsky2018-05-141-0/+2
|\ \ \ \ | | | | | | | | | | Enable autoload in editor
| * | | | Enable autoload in editorGeorge Marques2018-05-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Tool scripts will be executed and can be accessed by plugins. - Other script languages can implement add/remove_named_global_constant to make use of this functionality.
* | | | | Allow sending raw bytes through MultiplayerAPIFabio Alessandrelli2018-05-122-1/+41
| |/ / / |/| | |
* | | | Merge pull request #18709 from Faless/multiplayer_docsMax Hilbrunner2018-05-092-25/+25
|\ \ \ \ | | | | | | | | | | Rename multiplayer_api to multiplayer, add docs
| * | | | Internal methods in MultiplayerAPI start with _Fabio Alessandrelli2018-05-082-25/+25
| | | | |
* | | | | Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam2018-05-084-0/+29
|\ \ \ \ \ | | | | | | | | | | | | Experimental support for windows with per-pixel transparency.
| * | | | | Experimental support for windows with per-pixel transparency (macOS, X11 and ↵bruvzg2018-04-074-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | Windows).
* | | | | | Merge pull request #15305 from poke1024/checks-peerJuan Linietsky2018-05-081-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Checks on input_buffer in PacketPeerStream
| * | | | | | Checks on input_buffer in PacketPeerStreamBernhard Liebl2018-01-031-0/+2
| | | | | | |
* | | | | | | Merge pull request #15282 from poke1024/check-obj-classJuan Linietsky2018-05-081-1/+27
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Check implicit casts on object classes in bound method calls
| * | | | | | Object class checking on bound method callsBernhard Liebl2018-01-101-1/+27
| | | | | | |
* | | | | | | Local debugger fixes and extensionsBlazej Floch2018-05-074-45/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | | | | Merge pull request #17316 from ShyRed/significantdigitsJuan Linietsky2018-05-071-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Adjust decimal precision
| * | | | | | | Adjust decimal precisionShyRed2018-03-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase the number of significant digits when converting from double to string.
* | | | | | | | Merge pull request #17353 from zmanuel/timer_hysteresis_multiframe_pr1Juan Linietsky2018-05-074-0/+29
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Use hysteresis for smoother physics update frequency
| * | | | | | | | Add hysteresis to physics timestep count per frameManuel Moos2018-04-094-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new class _TimerSync to manage timestep calculations. The new class handles the decisions about simulation progression previously handled by main::iteration(). It is fed the current timer ticks and determines how many physics updates are to be run and what the delta argument to the _process() functions should be. The new class tries to keep the number of physics updates per frame as constant as possible from frame to frame. Ideally, it would be N steps every render frame, but even with perfectly regular rendering, the general case is that N or N+1 steps are required per frame, for some fixed N. The best guess for N is stored in typical_physics_steps. When determining the number of steps to take, no restrictions are imposed between the choice of typical_physics_steps and typical_physics_steps+1 steps. Should more or less steps than that be required, the accumulated remaining time (as before, stored in time_accum) needs to surpass its boundaries by some minimal threshold. Once surpassed, typical_physics_steps is updated to allow the new step count for future updates. Care is taken that the modified calculation of the number of physics steps is not observable from game code that only checks the delta parameters to the _process and _physics_process functions; in addition to modifying the number of steps, the _process argument is modified as well to stay in expected bounds. Extra care is taken that the accumulated steps still sum up to roughly the real elapsed time, up to a maximum tolerated difference. To allow the hysteresis code to work correctly on higher refresh monitors, the number of typical physics steps is not only recorded and kept consistent for single render frames, but for groups of them. Currently, up to 12 frames are grouped that way. The engine parameter physics_jitter_fix controls both the maximum tolerated difference between wall clock time and summed up _process arguments and the threshold for changing typical_physics_steps. It is given in units of the real physics frame slice 1/physics_fps. Set physics_jitter_fix to 0 to disable the effects of the new code here. It starts to be effective against the random physics jitter at around 0.02 to 0.05. at values greater than 1 it starts having ill effects on the engine's ability to react sensibly to dropped frames and framerate changes.
* | | | | | | | | Merge pull request #15943 from poke1024/geometry-line-lineJuan Linietsky2018-05-073-0/+27
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Add Geometry::line_intersects_line_2d()
| * | | | | | | | | Add Geometry::line_intersects_line_2d()Bernhard Liebl2018-01-213-0/+27
| | | | | | | | | |
* | | | | | | | | | Merge pull request #16033 from poke1024/marshalls-dictJuan Linietsky2018-05-071-1/+3
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Detects crash-related marshalling errors due to NAN values
| * | | | | | | | | | Detects crash-related marshalling errors due to NAN valuesBernhard Liebl2018-01-241-1/+3
| |/ / / / / / / / /
* | | | | | | | | | Add is_instance_valid() method to GDScript, ending more than a decade of pain.Juan Linietsky2018-05-072-9/+0
| | | | | | | | | |
* | | | | | | | | | Merge pull request #16893 from GodotExplorer/debugger-improvement-3Juan Linietsky2018-05-072-0/+15
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Save runtime node as scene from remote scene tree.
| * | | | | | | | | | Save runtime node as scene from the remote scene tree.geequlim2018-02-222-0/+15
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #18121 from ↵Juan Linietsky2018-05-071-15/+26
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Crazy-P/Resolves-Freeze-on-change-reflection-probe Resolves editor freezes on change of reflection probe
| * | | | | | | | | | | Fixes incorrect adding to last in self_listCrazy-P2018-04-111-15/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/godotengine/godot/issues/18052
* | | | | | | | | | | | Merge pull request #18219 from AlexHolly/fix-image-blit-blendJuan Linietsky2018-05-071-0/+24
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | blit and blend fix when dst<Vector2
| * | | | | | | | | | | | blit and blend fix when dst<Vector2Alexander Holland2018-04-151-0/+24
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #18505 from AlexHolly/image-point2-helperJuan Linietsky2018-05-072-1/+13
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | add Point2 helper for Image.get_pixel and Image.set_pixel
| * | | | | | | | | | | | | add Point2 helper for Image.get_pixel and Image.set_pixelAlexander Holland2018-04-292-1/+13
| | |_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | image-point2-helper
* | | | | | | | | | | | | 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.