summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash when executing PackedDataContainer._iter_initHaoyu Qiu2021-11-211-0/+4
|
* Merge pull request #54932 from briansemrau/expose-main-thread-idRémi Verschelde2021-11-202-0/+6
|\
| * Expose Thread::get_main_id in core bindingsBrian Semrau2021-11-122-0/+6
| |
* | [HTML5] Add WebGL2 (GLES3) support using the OpenGL renderer.Fabio Alessandrelli2021-11-191-1/+1
| | | | | | | | | | | | | | Note, the editor build requires the mbedtls module to be manually enabled, as it is currently needed as a ResourceUID dependency. This will need to be addressed in a separate PR.
* | Merge pull request #54499 from Faless/threads/4.x_work_pool_defaultRémi Verschelde2021-11-192-1/+2
|\ \
| * | [OS] Add ThreadWorkPool default size to OS.Fabio Alessandrelli2021-11-022-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some platforms (*cough* web *cough*) have hard limits on the number of threads that can be spawned. Currently, ThreadPoolWork (mostly used in rendering/physics servers) will spawn as many threads as CPUs available causing exception on machines with high CPU count. This commit adds a new overridable method to OS that returns the default thread pool size (still the CPU count by default), and overrides it for the JavaScript platform so it always allocate only one thread. We can likely improve the whole ThreadPoolWork in the future to always allocate X amount of threads, and assign jobs to them on the fly, but that will require some more architectural changes.
* | | Fix divide by zero in pck_packerPaulb232021-11-172-2/+3
| | |
* | | Merge pull request #55042 from nekomatata/fix-segment-intersectionRémi Verschelde2021-11-171-2/+1
|\ \ \
| * | | Fix segment intersection in Geometry2DPouleyKetchoupp2021-11-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Doing a multiplication to reduce the amount of tests was causing precision which lead to 2D raycast detecting false positive contacts in some cases with convex polygons.
* | | | Merge pull request #49793 from Chaosus/expose_randfnRémi Verschelde2021-11-173-0/+10
|\ \ \ \
| * | | | Expose `randfn` to global scopeYuri Roubinsky2021-11-173-0/+10
| | | | |
* | | | | Fix the exceptions in signal disconnectionXwdit2021-11-171-1/+1
|/ / / / | | | | | | | | Use the correct method to get SignalData to fix exceptions in signal disconnection
* | | | Fix array access in gdextensionsBastiaan Olij2021-11-171-2/+2
| | | |
* | | | Rename built-in `SGN()` macro to `SIGN()`Hugo Locurcio2021-11-1610-20/+20
| | | | | | | | | | | | | | | | | | | | This matches the name of the GDScript function (except it's uppercase here).
* | | | Allow dehardcoding documentation branch and URL in docs linksRémi Verschelde2021-11-151-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to change the branch of the documentation that URLs are pointing to without having to modify all class reference files. In the XML class reference, the `$DOCS_URL` placeholder should be used, and will be replaced automatically in the editor and when generating the RST class reference. The documentation branch string is set in `version.py`. Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* | | | Merge pull request #43072 from KoBeWi/point_to_angleRémi Verschelde2021-11-151-1/+1
|\ \ \ \
| * | | | Fix Vector2.angle_to_point() being reversedTomasz Chabora2021-11-091-1/+1
| | | | |
* | | | | Merge pull request #54976 from reduz/importer-options-by-pathRémi Verschelde2021-11-151-2/+2
|\ \ \ \ \
| * | | | | Add path to functions that return iporter optionsreduz2021-11-141-2/+2
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | -Allows displaying custom options for specific file format variants -Added support for scene format import to retrieve custom options This PR is necessary for #54886 to be implemented properly.
* | | | | Merge pull request #53710 from ↵Hugo Locurcio2021-11-141-1/+6
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | CaptainProton42/fix-extension-class-inspector-properties
| * | | | Fetch extension class props from ClassDBCaptainProton422021-10-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extension class properties that have been registered with ClassDB(`GDNativeInterface::classdb_register_extension_class_property`) were not fetched previously. (Only directly providing a property list using `GDNativeExtensionClassCreationInfo::get_property_list_func` would work.) This especially caused problems with the C++ bindings since they exclusively rely on ClassDB to register properties.
* | | | | Use "enum class" for input enumsAaron Franke2021-11-1214-1302/+1386
| |_|/ / |/| | |
* | | | Merge pull request #54869 from akien-mga/string-remove-eraseRémi Verschelde2021-11-113-8/+1
|\ \ \ \
| * | | | String: Remove `erase` method, bindings can't mutate StringRémi Verschelde2021-11-113-8/+1
| | | | |
* | | | | Color: Bind `from_hsv` as static methodRémi Verschelde2021-11-113-55/+52
|/ / / /
* | | | Add missing characters for property name quotingHaoyu Qiu2021-11-111-1/+1
| | | |
* | | | Merge pull request #53819 from TokageItLab/re-implement-ping-pongRémi Verschelde2021-11-092-0/+18
|\ \ \ \ | |_|/ / |/| | | Reimplement ping-pong animation and reverse playback
| * | | reimplement ping-pongSilc 'Tokage' Renew2021-11-032-0/+18
| | | |
* | | | Fix incorrect encoding (Latin-1 instead of UTF-8) used in `_error_handler` ↵bruvzg2021-11-081-1/+1
| | | | | | | | | | | | | | | | functions.
* | | | Merge pull request #54486 from ibrahn/thread-work-pool-lazierRémi Verschelde2021-11-081-4/+20
|\ \ \ \
| * | | | ThreadWorkPool no longer starts worker threads if given zero work.Ibrahn Sahir2021-11-011-4/+20
| | | | |
* | | | | Merge pull request #54186 from miraz12/fix-packedByteArray-memcpy-crashRémi Verschelde2021-11-081-4/+8
|\ \ \ \ \
| * | | | | Fixed crash in `variant_call` when trying to memcpy 0 bytes.Anton Christoffersson2021-10-271-4/+8
| | | | | |
* | | | | | Rename AABB `get_area` to `get_volume`Brian Semrau2021-11-053-5/+5
| | | | | |
* | | | | | Fix Quaternion multiplication operatorAaron Franke2021-11-041-7/+0
| | | | | |
* | | | | | Add is_built_in() method to Resourcekobewi2021-11-043-5/+6
| | | | | |
* | | | | | Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-035-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* | | | | | Sync controller mappings DB with SDL2 community repoRémi Verschelde2021-11-032-287/+764
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Synced with gabomdq/SDL_GameControllerDB@322aac4bb71d8c62ec7dcd4eb627a9d338b37684. Also improve parser errors to allow identifying the problematic mappings.
* | | | | Merge pull request #54453 from KoBeWi/slice_of_stringRémi Verschelde2021-11-021-0/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Expose String.get_slicekobewi2021-11-021-0/+1
| | | | |
* | | | | Merge pull request #35816 from touilleMan/dictionary-operator==-true-comparisonEmmanuel Leblond2021-11-0211-93/+229
|\ \ \ \ \ | | | | | | | | | | | | Modify Array/Dictionary::operator== to do real key/value comparison
| * | | | | Modify Dictionary::operator== to do real key/value comparison with recursive ↵Emmanuel Leblond2021-10-3011-93/+229
| |/ / / / | | | | | | | | | | | | | | | support (and add unittests)
* | | | | Merge pull request #54490 from q66/ppcRémi Verschelde2021-11-011-0/+9
|\ \ \ \ \
| * | | | | Add support for PowerPC familyDaniel Kolesa2021-11-011-0/+9
| | | | | |
* | | | | | Merge pull request #54387 from ↵Rémi Verschelde2021-11-011-1/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | Calinou/editor-translations-increase-zlib-compression-level
| * | | | | Use maximum zlib compression when generating editor translation headersHugo Locurcio2021-10-291-1/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | With comments stripped, this reduces the combined generated translation size from 28.7 MB to 28.4 MB (-240 KB).
* | | | | [macOS] Add `create_instance` function to spawn editor copies.bruvzg2021-11-013-0/+16
| | | | | | | | | | | | | | | | | | | | [macOS] Modify `create_project` function to detect and run app bundles using NSWorkspace to ensure app window is registered and activated correctly.
* | | | | Merge pull request #53452 from aaronfranke/who-let-the-docs-outRémi Verschelde2021-10-311-0/+2
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Move the docs for constructors and operators out of methods sectionAaron Franke2021-10-291-0/+2
| | | | |
* | | | | Use OpenGL 3.3 core profile instead of compatibility profileClay John2021-10-312-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename OpenGL to GLES3 in the source code per community feedback. - The renderer is still exposed as "OpenGL 3" to the user. - Hide renderer selection dropdown until OpenGL support is more mature. - The renderer can still be changed in the Project Settings or using the `--rendering-driver opengl` command line argument. - Remove commented out exporter code. - Remove some OpenGL/DisplayServer-related debugging prints.