summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Translation: Refactor locale matching to use proper language codeRémi Verschelde2019-12-042-33/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code only parsed the first two characters (potentially reading out of bounds if input was invalid), but some locales use a 3-letter language code (e.g. 'nah_MX'). So I refactored the logic a bit to properly parse the locale and extract the part left of the regional code, if provided (supports both 'en_US' and 'en-US' style). I made TranslationServer::get_language_code() public as I'll use it in a follow up commit.
* | | | Added support for vertical syncing via the Windows OS compositor (DWM.)TerminalJack2019-12-044-1/+34
| | | |
* | | | Fix severe performance drop while deflating polylinesAndrii Doroshenko (Xrayez)2019-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Underscaled arc tolerance produced very small values so that changes to this parameter were negligible when scaled internally, hence significant performance drop (lots of intermediate points inserted in an arc). Now the performance is mostly the same compared to other types of offsetting (SQUARE, MITER).
* | | | Merge pull request #34072 from arlez80/masterRémi Verschelde2019-12-032-16/+33
|\ \ \ \ | | | | | | | | | | fixed pitch bend value and MIDI running status on the InputEventMIDI.
| * | | | fixed set pitch bend value and implemented midi running statusあるる / きのもと 結衣2019-12-032-16/+33
| |/ / /
* | | | Merge pull request #33857 from nekomatata/polygon-2d-antialiasingRémi Verschelde2019-12-031-0/+9
|\ \ \ \ | |/ / / |/| | | Fixed antialiased option for Polygon2D
| * | | Fixed antialiased option for Polygon2D / Line2DPouleyKetchoupp2019-11-281-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
* | | | Merge pull request #33640 from mewin/http_head_requestFabio Alessandrelli2019-12-012-0/+11
|\ \ \ \ | |_|_|/ |/| | | Fix HTTP HEAD requests
| * | | do not wait for response body when making a HEAD requestPatrick Wuttke2019-11-262-0/+11
| | | |
* | | | Revert "Fix localise_path method so that uncached scripts don't sometimes ↵Emmanuel Leblond2019-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | get loaded with two backslashes" This reverts commit 1342551664091c1ceb931ee45d9c43f09df5f1ff.
* | | | Merge pull request #33862 from Faless/net/http_request_chunk_sizeRémi Verschelde2019-11-252-0/+7
|\ \ \ \ | |_|/ / |/| | | Add download_chunk_size property to HTTPRequest.
| * | | Add download_chunk_size property to HTTPRequest.Fabio Alessandrelli2019-11-242-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | This allows setting the `read_chunk_size` of the internal HTTPClient. This is important to reduce the allocation overhead and number of file writes when downloading large files, allowing for better download speed.
* | | | Merge pull request #33652 from Black-Cat/http-client-fixFabio Alessandrelli2019-11-231-0/+2
|\ \ \ \ | |/ / / |/| | | Fix HTTPClient::poll crash when connection set to null
| * | | Fix HTTPClient::poll crash when connection set to nullArtem Burjachenko2019-11-231-0/+2
| |/ /
* | | Merge pull request #33583 from qarmin/fix_overflows_unitializedRémi Verschelde2019-11-205-1/+11
|\ \ \ | | | | | | | | Fix some overflows and unitialized variables
| * | | Fix some overflows and unitialized variablesRafał Mikrut2019-11-205-1/+11
| |/ /
* / / Fixed bug caused by a copy/paste error in Face3::get_closest_point_tostoofin2019-11-191-1/+1
|/ / | | | | | | | | s * edge0 = -d / a * edge0 = -edge0⋅v0 / (edge0⋅edge0) * edge0 = vector projection of -v0 onto edge0 By incorrectly using -e/c instead of -d/a, Face3::get_closest_point_to was returning the wrong point in certain cases. Specifically, I noticed it returning vertex[0] when it should have been returning vertex[1].
* | Fix explain message not being stripped in release.Fabio Alessandrelli2019-11-131-72/+79
| | | | | | | | | | | | | | | | Messages coming from ERR_EXPLAIN / ERR_*_MSG macros used to strip the error explanation in release builds and was changed in a recent refactoring. This commit restores the old behaviour (fixing release builds).
* | Merge pull request #33517 from madmiraal/fix-_MSG-macrosRémi Verschelde2019-11-115-231/+125
|\ \ | | | | | | Send *_MSG macros' explanations directly to the _err_print_error().
| * | Remove ERR_EXPLAIN macros and the scaffolding they needed.Marcel Admiraal2019-11-114-131/+2
| | |
| * | Remove all uses of ERR_EXPLAIN macros.Marcel Admiraal2019-11-111-6/+3
| | |
| * | Send m_msg directly to _err_print_error().Marcel Admiraal2019-11-102-116/+142
| | |
* | | Expose the `OS.low_processor_usage_mode_sleep_usec` propertyHugo Locurcio2019-11-082-0/+18
|/ / | | | | | | This makes it possible to change it at runtime in projects.
* | doc: Sync classref with current sourceRémi Verschelde2019-11-081-1/+1
| | | | | | | | Fix incomplete binding.
* | Merge pull request #33445 from kawa-yoiko/astar-soft-errorRémi Verschelde2019-11-081-6/+6
|\ \ | | | | | | Emit an error rather than crash in A*
| * | Emit an error rather than crash in A*Shiqing2019-11-081-6/+6
| | |
* | | Fix MinGW/clang/LLD/UCRT build.bruvzg2019-11-081-2/+2
|/ /
* | Merge pull request #27742 from rxlecky/camera-replicationRémi Verschelde2019-11-083-1445/+0
|\ \ | | | | | | Game camera override
| * | Implement game camera overrideErik2019-10-233-1445/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented uniform API in Viewport class to override 2D and/or 3D camera. Added buttons in 2D and 3D editor viewport toolbars that override the running game camera transform with the editor viewport camera transform. Implemented via remote debugger protocol and camera override API. Removed LiveEditFuncs function pointers from ScriptDebugger class. Since the debugger got access to the SceneTree instance (if one exists), there is no need to store the function pointers. The live edit functions in SceneTree are used directly instead. Also removed the static version of live edit functions in SceneTree for the same reason. This reduced the SceneTree -> Debugger coupling too since the function pointers don't need to be set from SceneTree anymore. Moved script_debugger_remote.h/cpp from 'core/' to 'scene/debugger/'. This is because the remote debugger is now using SceneTree directly and 'core/' classes should not depend on 'scene/' classes.
* | | Merge pull request #33052 from KoBeWi/naughty_slidersRémi Verschelde2019-11-082-4/+4
|\ \ \ | | | | | | | | Fix analog input in sliders
| * | | Fix analog input in slidersTomasz Chabora2019-11-072-4/+4
| | | |
* | | | Merge pull request #33376 from jamie-pate/masterRémi Verschelde2019-11-081-0/+10
|\ \ \ \ | | | | | | | | | | Fix #24137 Different number of leading zeros on MINGW printf("%lg")
| * | | | Fix #24137 Different number of leading zeros on MINGW printf("%lg")Jamie Pate2019-11-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use _set_output_format() on MINGW platform to force _snprintf_s() to conform to the C99 standard and match the other platforms. Fixes #24137
* | | | | Merge pull request #32477 from aaronfranke/equal-approx-separateRémi Verschelde2019-11-0724-67/+129
|\ \ \ \ \ | | | | | | | | | | | | Make is_equal_approx separate and make == exact again
| * | | | | Expose is_equal_approx and restore == to be exact againAaron Franke2019-10-144-40/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes behavior for GDScript and C#. Also did some organizing of the order to logically group related methods, mostly for Rect2 and AABB.
| * | | | | Replace vector == and is_zero_approx(distance) with is_equal_approxAaron Franke2019-10-145-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | Internal changes only
| * | | | | Make is_equal_approx separate for structuresAaron Franke2019-10-1421-16/+68
| | | | | | | | | | | | | | | | | | | | | | | | This commit adds exposed behavior for C#
* | | | | | Merge pull request #30556 from kawa-yoiko/astar-directedRémi Verschelde2019-11-072-35/+76
|\ \ \ \ \ \ | | | | | | | | | | | | | | Improve support for directed graphs in A*; docs update included
| * | | | | | Reduce memory usage for edges in A* and add testsShiqing2019-09-282-37/+69
| | | | | | |
| * | | | | | Improve support for directed graphs in AStarShiqing2019-09-112-26/+35
| | | | | | |
* | | | | | | Merge pull request #33380 from SaracenOne/localise_path_fixRémi Verschelde2019-11-061-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix localise_path method
| * | | | | | | Fix localise_path method so that uncached scripts don't sometimes get loaded ↵Saracen2019-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with two backslashes
* | | | | | | | Remove implicit dependency on String from error_macros.h.Marcel Admiraal2019-11-062-12/+25
| |_|_|/ / / / |/| | | | | |
* | | | | | | Merge pull request #33254 from SneakyFish5/update-zstdRémi Verschelde2019-11-031-0/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Update zstd to 1.4.3
| * | | | | | | Update zstd to 1.4.3unknown2019-11-031-0/+2
| |/ / / / / /
* | | | | | | Merge pull request #33238 from qarmin/other_fixesRémi Verschelde2019-11-013-2/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix some crashes, overflows and using variables without values
| * | | | | | | Fix some crashes, overflows and using variables without valuesRafał Mikrut2019-11-013-2/+9
| | | | | | | |
* | | | | | | | Merge pull request #32643 from mewin/add_global_classGeorge Marques2019-11-011-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Check for cyclic inheritance when adding a global script class
| * | | | | | | | check for cyclic inheritance when adding a global classPatrick Wuttke2019-10-081-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #33210 from nekomatata/pool-array-emptyRémi Verschelde2019-11-012-0/+21
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | Added empty() function to pool array types