aboutsummaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-03-011-3/+3
| | | | (cherry picked from commit d702d7b335c0c9305e75131770c0ea739b70d813)
* Allow degenerate triangles in polygon triangulation when necessary.Nicolas Silva2018-03-012-10/+37
| | | | (cherry picked from commit e73266a51cdcd63a394848d433f854c1c4e29198)
* (Magnify|Pan)Gesture: implement as_textPoommetee Ketson2018-02-272-0/+12
| | | | (cherry picked from commit 67e20dc2b6167e6dd9cb05056fd82de71891395f)
* Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry2018-02-262-0/+31
| | | | (cherry picked from commit f37090ccf4f699800a43878273b8b94b5906f4bc)
* Refactor version macros and fix related bugsRémi Verschelde2018-02-242-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros. (cherry picked from commit 23ebae01dc7e3df9c842ca7d017f7b233837721d)
* Clean up some bad words from code commentsArtem Varaksa2018-02-222-3/+1
| | | | (cherry picked from commit d35e48622800f6686dbdfba380e25170005dcc2b)
* Fix loading project.binary from PCK fileRémi Verschelde2018-02-221-2/+6
| | | | | | | | Regression introduced in #16825. My logic was correct, but not the error code I was expecting. The error reporting in FileAccess likely needs a review too. (cherry picked from commit 57d562b394730649266f902db63d63b448dc1d6e)
* Improve error reporting of ProjectSettings::setup()Rémi Verschelde2018-02-222-27/+52
| | | | | | | | | And use it to better report errors in the console and project manager when a project.godot file is corrupted. Fixes #14963. (cherry picked from commit 7839076f95679c85e7adfdccdd671b2927c82f2f)
* Fix typos with codespellluz.paz2018-02-2212-18/+18
| | | | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ``` (cherry picked from commit 612ab4bbc6f2396f4dcd68c3f142f7dfa2f5f0a5)
* Color:fix setting V switch S to old V valuePoommetee Ketson2018-02-221-1/+1
| | | | (cherry picked from commit f4f92b55e102487527fc7f1c7d8ebc1df73c01a7)
* Change function signature from float to double to match type ↵hungrymonkey2018-02-212-2/+2
| | | | | | get_doubleCloses #16160 (cherry picked from commit d2f1c87063162b284d2e13139eb4ec6bcd9662d4)
* Revert "Fix wrong return type of xform functions"Hein-Pieter van Braam2018-02-211-4/+4
| | | | | | As this will change bindings API this will have to wait for 3.1 This reverts commit 187c40d64dd733ea77b27d96416ab7ad106069b9.
* Add locale renames for Hebrew and Indonesian on WindowsRémi Verschelde2018-02-191-1/+18
| | | | | | | | | Windows does not fully respect ISO 639-1 like other systems, so we have to override its locale values for those languages. Also added comments to document the locale provenance. (cherry picked from commit 0c7bed45c49b19bf49b2f2f462937fe14b26c3bb)
* Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-194-0/+26
| | | | (cherry picked from commit ea1d726a4603fdd6bd4dfa6c1fa3128cfb2915c7)
* Fix polygon triangulation failure.Nicolas Silva2018-02-191-1/+1
| | | | | | | | The ear clipping algorithm used to triangulate polygons has a slightly too conservative point-in-triangle test which can, in some configurations prevent it from finding a possible tessellation. Relaxing the test by considering that points exactly on edges don't belong the triangle fixes the issue. Changing the semantic of the test is safe because no other code makes use of it. A more detailed explanation can be found in issue #16395. Fixes #16395. (cherry picked from commit 91215e191992f3cbbbf4fe047b000ac5a403085c)
* Added all missing VisualServer bindingsMarc Gilleron2018-02-193-1/+44
| | | | | | | | | - Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance - Removed draw and sync, were duplicates of force_* equivalents - Bumped binders max arguments from 11 to 13 - Wrote some wrappers as not all methods were variant-friendly (cherry picked from commit e415fd05bb5f7f66cfa76bf27247ffe329429405)
* Fix inconsistencies and typos in argument namesPaolo Perkovic2018-02-041-4/+4
| | | | (cherry picked from commit 08d4bfacafa8abe435d51a6afecb276030a23280)
* Display set_nodelay to GDScriptMarlon Henry Schweigert2018-02-043-2/+3
| | | | | | | | | | | | Pass enabled arg Rename set_nodelay to set_no_delay Add description to the method Change description (cherry picked from commit 87adf9cfbab00a40aad483b4e709518d5f61b6d1)
* Fix wrong return type of xform functionsPoommetee Ketson2018-01-301-4/+4
| | | | (cherry picked from commit ebe23375156fbc0d610460b2a0e995bb5c966f84)
* Remote debugger send the real instance of WeakRef referenced toGeequlim2018-01-301-1/+7
| | | | (cherry picked from commit 10f0451cc2e114d0077609359149c876589f0b42)
* Use the appropriate Variant hash and compare functions for DictionariesHein-Pieter van Braam2018-01-271-13/+8
| | | | | | | | | | | | | | | Dictionaires did not use the VariantHasher and VariantComparator making them unsafe for use with NaN values as keys. This PR uses the appropriate Variant implementations for these functions. var d = {} d[Vector2(NAN, NAN)] = 0 d[Vector2(NAN, NAN)] = 0 print(d.size()) will now output '1' and not '2' This fixes #16031
* - Improves portability in joystick buttons enumAriel Manzur2018-01-241-2/+2
| | | | - Fixes linking bug in modules split library
* Merge pull request #15844 from letheed/better-error-msgRémi Verschelde2018-01-241-1/+1
|\ | | | | Make cyclic resource inclusion error message more helpful
| * Make cyclic resource inclusion error message more helpfulletheed2018-01-181-1/+1
| |
* | fixed crash with StringBuilderkarroffel2018-01-201-0/+3
| | | | | | | | | | | | | | | | When using a newly created StringBuilder then the as_string() method will crash when trying to free an allocated 0-sized chunk of memory. When 0 bytes get allocated with memnew_arr then a NULL pointer gets returned. When trying to free that pointer the programm will crash.
* | improves portability with some compilersAriel Manzur2018-01-181-1/+1
| |
* | Fix typos in code and docs with codespellRémi Verschelde2018-01-1810-16/+16
|/ | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* doc: Replace some more "val" with "value" + syncRémi Verschelde2018-01-171-13/+12
|
* Revert "Fix bad color to HTML conversion. Alpha channel was added before RGB."Rémi Verschelde2018-01-161-1/+1
|
* Filled tutorial field in most relevent classes.Juan Linietsky2018-01-151-0/+3
| | | | Added tutorial display in doc.
* Make sure PropertyHint matches in the VisualScript editor.K. S. Ernest (iFire) Lee2018-01-151-0/+1
|
* Fix String::itos/String::num_int64(INT64_MIN) output.bruvzg2018-01-131-4/+3
|
* get_target_fps and set_target_fps now both use an intPaul Joannon2018-01-122-2/+2
|
* fix set_stream_peer binding in PacketPeerPaul Joannon2018-01-121-1/+1
|
* Merge pull request #15611 from bojidar-bg/x-bind-more-propertiesRémi Verschelde2018-01-1211-4/+55
|\ | | | | Bind many more properties to scripts
| * Bind many more properties to scriptsBojidar Marinov2018-01-1211-4/+55
| | | | | | | | | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* | -Remove color operator clamping, which is unnecesary. Fixes #15184, fixes ↵Juan Linietsky2018-01-122-60/+59
|/ | | | | | #14686. -Refresh progress bar less often, makes baking, exporting, etc. faster.
* Merge pull request #15531 from AndreaCatania/p2Juan Linietsky2018-01-111-0/+1
|\ | | | | Fixed crash on duplicate GIProbe baking
| * Fixed crash on duplicate GIProbe bakingAndreaCatania2018-01-111-0/+1
| |
* | Dont print error when loading resource from cacheRuslan Mustakov2018-01-111-1/+2
| |
* | Fix bad color to HTML conversion. Alpha channel was added befor RGB.robfram2018-01-091-1/+1
| |
* | Mono: Implement stack info for errors and exceptionsIgnacio Etcheverry2018-01-095-43/+51
|/
* obsolete UndoRedo max_steps; no users identifiedTodd Ross2018-01-082-24/+0
|
* Merge pull request #15337 from ↵Rémi Verschelde2018-01-081-0/+6
|\ | | | | | | | | touilleMan/fix-classdb_get_method_list-without-instrospection Fix _ClassDB::get_method_list when instrospection is disabled
| * Fix _ClassDB::get_method_list to returns only what's available when ↵Emmanuel Leblond2018-01-041-0/+6
| | | | | | | | introspection is disabled
* | Merge pull request #15437 from GodotExplorer/pr-fix-15424Rémi Verschelde2018-01-071-0/+6
|\ \ | | | | | | Add null checking for paramaters in UndoRedo
| * | Add null checking for paramaters in Undoredogeequlim2018-01-071-0/+6
| | |
* | | Merge pull request #15382 from mrcdk/poolarrays_neq_fixRémi Verschelde2018-01-071-4/+4
|\ \ \ | | | | | | | | Fix NEQ operation for Arrays and Pool*Arrays
| * | | Fix NEQ operation between 2 different ArraysMrCdK2018-01-061-4/+4
| | | | | | | | | | | | | | | | it was returning false if it found the same content in both arrays which isn't correct, it should return true when it finds different values
* | | | Merge pull request #15297 from poke1024/runner-limit-errsRémi Verschelde2018-01-072-5/+42
|\ \ \ \ | |_|/ / |/| | | Limit number of errors and messages sent by runner