summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Adjust type of temporaries when neededGeorge Marques2021-04-166-8/+286
|
* GDScript: Pool temporary values by type on the stackGeorge Marques2021-04-145-49/+115
| | | | | So the stack slots perform less type changes, which is useful for future optimizations.
* Add `etcpak` library for faster ETC/ETC2/S3TC imports.K. S. Ernest (iFire) Lee2021-04-1313-544/+253
| | | | | | | | | | | | - `etc` module was renamed to `etcpak` and modified to use the new library. - PKM importer is removed in the process, it's obsolete. - Old library `etc2comp` is removed. - S3TC compression no longer done via `squish` (but decompression still is). - Slight modifications to etcpak sources for MinGW compatibility, to fix LLVM `-Wc++11-narrowing` errors, and to allow using vendored or system libpng. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Reduce number of addressing modes in GDScript VMGeorge Marques2021-04-088-193/+128
| | | | | | | | | | | | | | There's now only 3 addressing modes: stack, constant, and member. Self, class, and nil are now present respectively in the first 3 stack slots. Global and class constants are moved to local constants when compiling. Named globals is only present on editor to use on tool singletons, so its use now emits a new instruction to copy the global to the stack. This allow us to further optimize the VM later by embedding the addressing modes in the instructions themselves, which is better done with less permutations.
* Fix crash on importing empty .fbx fileLyuma2021-04-081-0/+3
|
* Merge pull request #47708 from Calinou/doc-websocketclient-secureFabio Alessandrelli2021-04-081-0/+1
|\ | | | | Document secure wss:// caveats for WebSocketClient
| * Document secure wss:// caveats for WebSocketClientHugo Locurcio2021-04-071-0/+1
| | | | | | | | See https://github.com/godotengine/godot/issues/37739.
* | Merge pull request #47648 from Blackiris/fix-gdscript-editor-hangsRémi Verschelde2021-04-071-1/+1
|\ \ | | | | | | Fix infinite loop when guessing argument type from parent class
| * | Fix infinite loop when guessing argument type from parent classJulien Nguyen2021-04-051-1/+1
| | |
* | | Merge pull request #47672 from Blackiris/fix-setter-stackoverflowRémi Verschelde2021-04-071-0/+2
|\ \ \ | |_|/ |/| | Fix stack overflow in setter
| * | Fix stack overflow in setterJulien Nguyen2021-04-061-0/+2
| | |
* | | Merge pull request #46877 from ↵Rémi Verschelde2021-04-073-1/+7
|\ \ \ | | | | | | | | | | | | | | | | W4RH4WK/always-dynamically-allocate-property-table Always dynamically allocate PropertyTable
| * | | Always dynamically allocate PropertyTableAlex Hirsch2021-03-103-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - `Texture::~Texture` expects `props` to be dynamically allocated. - `GetPropertyTable` returned a pointer to an existing `PropertyTable` but is expected to return a newly, dynamically allocated one. - `PropertyTable::PropertyTable()` suggests that an empty `element` property is valid. fix #46876 fix #45573
* | | | Check for the use of an empty shape in Bullet Kinematic collisionsMarcel Admiraal2021-04-061-0/+4
| |/ / |/| |
* | | Only cleanup meta data if GDNative library is reloadable and we're about to ↵Bastiaan Olij2021-04-061-28/+32
| |/ |/| | | | | unload it
* | Merge pull request #47569 from vnen/gdscript-typed-returnRémi Verschelde2021-04-054-6/+304
|\ \ | | | | | | GDScript: Properly validate return type
| * | GDScript: Properly validate return typeGeorge Marques2021-04-054-6/+304
| | | | | | | | | | | | | | | | | | | | | When the type cannot be validated at compile time, the runtime must do a check to ensure type safety is kept, as the code might be assuming the return type is correct in another place, leading to crashes if the contract is broken.
* | | Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde2021-04-0513-86/+169
| | |
* | | Style: Apply clang-tidy's `modernize-use-nullptr`Rémi Verschelde2021-04-0510-23/+23
| | |
* | | Style: Apply clang-tidy's `modernize-use-default-member-init`Rémi Verschelde2021-04-057-50/+38
| | |
* | | Style: Apply clang-tidy's `modernize-use-bool-literals`Rémi Verschelde2021-04-051-1/+1
| | |
* | | Merge pull request #47592 from ↵Rémi Verschelde2021-04-051-0/+1
|\ \ \ | | | | | | | | | | | | | | | | jmb462/fix-VisualScriptFunctionState-connect-to-null-signal-crash Fix VisualScriptFunctionState connect to null object crash (Fix #47572)
| * | | Fix VisualScriptFunctionState connect to null object crashjmb4622021-04-031-0/+1
| | | |
* | | | Merge pull request #47627 from Blackiris/fix-gdscript-var-addressRémi Verschelde2021-04-051-0/+4
|\ \ \ \ | | | | | | | | | | Fix GDScript variables addresses getting mixed
| * | | | Fix GDScript variables addresses getting mixedJulien Nguyen2021-04-041-0/+4
| |/ / /
* | | | Merge pull request #47636 from qarmin/inputRémi Verschelde2021-04-051-0/+2
|\ \ \ \ | | | | | | | | | | Fix crashes in *_input functions
| * | | | Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
| |/ / /
* / / / Fixes #47607 (forgotten statement in GDNative cleanup)Jan Haller2021-04-041-0/+2
|/ / / | | | | | | | | | Co-authored-by: geekrelief <geekrelief@gmail.com>
* | | Merge pull request #47452 from BastiaanOlij/xr_positional_tracker_refRémi Verschelde2021-04-034-19/+20
|\ \ \ | | | | | | | | Change XRPositionalTracker to a reference (master)
| * | | Change XRPositionalTracker to a reference and better expose it to GDNativeBastiaan Olij2021-03-294-19/+20
| | | |
* | | | Merge pull request #46991 from madmiraal/rename-invert-reverseRémi Verschelde2021-04-019-12/+12
|\ \ \ \ | | | | | | | | | | Rename Array.invert() to Array.reverse()
| * | | | Rename Array.invert() to Array.reverse()Marcel Admiraal2021-03-219-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Does the same internally for List and Vector<>, which includes all PackedArray types.
* | | | | Fix gdnative config file set as nullKyle2021-03-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes # Setting a GDNativeLibrary config file as null or any other object but a ConfigFile will now cause an error.
* | | | | Merge pull request #47250 from BastiaanOlij/check_vulkan_versionRémi Verschelde2021-03-311-4/+59
|\ \ \ \ \ | | | | | | | | | | | | Obtain supported Vulkan API
| * | | | | As GLSLang seems to be all or nothing, added our own definesBastiaan Olij2021-03-311-0/+37
| | | | | |
| * | | | | Obtain supported Vulkan APIBastiaan Olij2021-03-261-4/+22
| | | | | |
* | | | | | [Complex Text Layouts] Provide access to glyph contour points.bruvzg2021-03-3113-2/+83
| | | | | |
* | | | | | Merge pull request #47131 from vnen/gdscript-export-fixRémi Verschelde2021-03-307-143/+167
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix a few issues with @export in GDScript
| * | | | | | GDScript: Implement export of typed arraysGeorge Marques2021-03-301-1/+19
| | | | | | |
| * | | | | | GDScript: Allow export of enum variablesGeorge Marques2021-03-303-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix the enum type in variables to be integer.
| * | | | | | GDScript: Show error on invalid initializer expressionGeorge Marques2021-03-301-0/+3
| | | | | | |
| * | | | | | Move GDSript annotation application after type-checkingGeorge Marques2021-03-306-135/+126
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that annotations that rely on the datatype (such as @export) can validated it timely, allowing compound expressions instead of only literal values.
* | | | | | Merge pull request #47492 from vnen/gdscript-typed-arraysRémi Verschelde2021-03-301-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | GDScript: Fix array type check on constants
| * | | | | GDScript: Fix array type check on constantsGeorge Marques2021-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They mistakenly pointing to the wrong union member (variable instead of constant).
* | | | | | FBX: Fix first bone getting unnecessary '_1' suffixRémi Verschelde2021-03-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #43820. Co-authored-by: Gordon MacPherson <gordon@gordonite.tech>
* | | | | | Merge pull request #46830 from vnen/gdscript-typed-arraysRémi Verschelde2021-03-2912-58/+569
|\| | | | | | | | | | | | | | | | | GDScript typed arrays
| * | | | | Add typed arrays to GDScriptGeorge Marques2021-03-2912-58/+569
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use `Array[type]` for type-hints. e.g.: `var array: Array[int] = [1, 2, 3]` - Array literals are typed if their storage is typed (variable asssignment of as argument in function all). Otherwise they are untyped.
* | | | | | Merge pull request #46844 from geekrelief/gdnative_unregister_script_fixRémi Verschelde2021-03-291-0/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | fixes #46839, ensure library_classes is cleared and free funcs are ca…
| * | | | | | fixes #46839, ensure library_classes is cleared and free funcs are calledgeekrelief2021-03-091-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: toasteater <48371905+toasteater@users.noreply.github.com> Co-authored-by: Jan Haller <bromeon@gmail.com>
* | | | | | | Rename Texture.get_data() to get_image()Marcel Admiraal2021-03-285-32/+33
| |_|_|_|/ / |/| | | | |