Commit Graph

858 Commits (a9c341656d430ba0db9517ff517dce116fcda50f)

Author SHA1 Message Date
Rémi Verschelde 024f09e1ea
Merge pull request #723 from akien-mga/ci-install-mingw-via-actions 2022-03-09 16:16:38 +01:00
Rémi Verschelde 3846201fbb CI: Install MinGW via `egor-tensin/setup-mingw`
Scoop install is being problematic since their 0.1.0 release.
2022-03-09 13:36:33 +01:00
Rémi Verschelde b6c18d489d headers: Sync with upstream commit f470979 (4.0-alpha4) 2022-03-08 16:15:07 +01:00
bruvzg b1385953fe
Add `ObjectDB::get_instance` method to get wrapped `Object *` from `ObjectID`. 2022-03-08 10:17:33 +02:00
Rémi Verschelde 2f3ead0281
Merge pull request #719 from codecat/fix-method-bind-crash 2022-03-04 13:52:44 +01:00
Melissa Geels d97dc518d3 Fixed crash on release builds due to missing argument type information 2022-03-02 14:44:23 +01:00
dependabot[bot] 73ef81a8de Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 19:09:09 +00:00
Rémi Verschelde 4368f14e9d
Merge pull request #716 from godotengine/dependabot/github_actions/actions/setup-python-3 2022-03-01 01:53:52 +01:00
Rémi Verschelde 3b5ea2f423
Merge pull request #715 from groud/reorder_native_initialization 2022-03-01 01:53:25 +01:00
dependabot[bot] 0987fd6b0e
Bump actions/setup-python from 2 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 19:07:08 +00:00
Gilles Roudière a94148ca4c Reorder native extension initialization steps 2022-02-28 15:44:54 +01:00
Rémi Verschelde 1cbf121b08
Merge pull request #712 from aaronfranke/black
[master] Run black format on SConstruct files and bindings generator
2022-02-26 23:44:54 +01:00
Aaron Franke 101d61b64a
[master] Run black format on SConstruct files and bindings generator 2022-02-26 15:04:11 -06:00
Rémi Verschelde 8ead641b08 headers: Sync with upstream commit 256069e (4.0-alpha3) 2022-02-23 09:13:12 +01:00
Rémi Verschelde d154ffbe86
Merge pull request #708 from Zylann/fix_inheriting_class_with_namespace 2022-02-21 11:27:31 +01:00
Rémi Verschelde 76bad22978
Merge pull request #701 from bruvzg/port_templates 2022-02-21 11:25:40 +01:00
Rémi Verschelde 1f03394643
Merge pull request #683 from nicoraf/test_cmake_windows 2022-02-21 00:16:16 +01:00
Nicolás Carrasco df87396cf3 Merge branch 'master' of https://github.com/godotengine/godot-cpp into test_cmake_windows 2022-02-20 22:59:56 +01:00
Marc Gilleron 6fdcb18f6a Fix GDCLASS when inherited class is in another namespace 2022-02-20 19:33:00 +00:00
Rémi Verschelde 4d9fe6dfaa
Merge pull request #707 from akien-mga/vec2-vec3-forward-declares 2022-02-20 13:28:57 +01:00
Rémi Verschelde 7e3321d1b2 Use forward declares for vector math types
Adds operators to convert from int vector types to float vector types
as done in the upstream engine implementations.
2022-02-20 12:04:08 +01:00
Rémi Verschelde 917b0c2ca3
Merge pull request #688 from zhehangd/master 2022-02-19 16:31:32 +01:00
bruvzg e36180f377
Port a bunch of Godot container templates to GDExtension. 2022-02-18 21:07:53 +02:00
Rémi Verschelde 6a464b53f1
Merge pull request #706 from bruvzg/str_errors 2022-02-17 10:15:14 +01:00
bruvzg 65dc3e89c7
Add ERR_ macros variants using `String` messages. 2022-02-17 10:18:04 +02:00
Rémi Verschelde 6f9d3c31d0
Merge pull request #705 from bruvzg/fix_c_build 2022-02-16 14:31:26 +01:00
Rémi Verschelde 7fa81e798b
Merge pull request #704 from bruvzg/fix_const_ptr 2022-02-16 13:29:29 +01:00
Rémi Verschelde d9111350b9
Merge pull request #699 from bruvzg/enum_and_ptr_binds 2022-02-16 12:32:26 +01:00
bruvzg 3bb86f1e01
Use C++17 flag only for C++ files. 2022-02-16 13:12:10 +02:00
bruvzg a8cd21ac07
Fix "const" NativePtr binds. 2022-02-16 11:35:13 +02:00
Nikita Parfenov 309db943e9 Native structures forward declaration fix 2022-02-16 15:29:01 +06:00
Rémi Verschelde 9bc489eb2a
Merge pull request #695 from bruvzg/ptrs_and_stuff 2022-02-15 10:15:28 +01:00
bruvzg 7aaab11b0f
Add Variant binders for the generated classes, structs and global enums 2022-02-15 10:47:12 +02:00
bruvzg bf8fc4c53d
Add `ptr()` / `ptrw()` to the arrays, add missing `String` methods, add missing `CharString` method implementations. 2022-02-14 23:17:21 +02:00
Rémi Verschelde be34bcfff1
Merge pull request #696 from bruvzg/macos_demo_fw 2022-02-14 11:40:37 +01:00
bruvzg b6b64bcd70
[macOS] Restore demo library output names. 2022-02-14 08:57:35 +02:00
Rémi Verschelde 63531a89b1
Merge pull request #690 from Faless/build/fix_suffix 2022-02-10 12:51:21 +01:00
Fabio Alessandrelli f5172016b8 [Build] Fix exposed suffix, remove unused option. 2022-02-10 07:36:26 +01:00
Fabio Alessandrelli 9d5caf6baa
Merge pull request #636 from Faless/build/tools_pr
Android/iOS build, Scons boilerplate for building projects.
2022-02-10 02:39:22 +01:00
Fabio Alessandrelli 90b7d056ee [CI] Use matrix for builds. 2022-02-10 01:44:48 +01:00
Fabio Alessandrelli dcc52f4321 Library SCons boilerplate to build projects.
Works by executing project `SConstruct`s file in a cloned env (a bit
like Godot does for modules) so you don't have to worry about platform
and toolchain setup.

Convert the project test file to work as submodule, add it to CI

Run with:

```
scons build_projects=test,/path/to/other/project
```
2022-02-10 01:44:48 +01:00
Fabio Alessandrelli cf3fcab6b4 Always require C++17. Shuold fix other platforms. 2022-02-10 00:19:01 +01:00
Rémi Verschelde 75b180d2cd
headers: Sync with upstream commit 79077e6 (4.0-alpha2) 2022-02-09 16:46:48 +01:00
Zhehang Ding df0e28fe43 Add missing Vector2::operator Vector2i() 2022-02-07 01:23:18 -08:00
Zhehang Ding 24c94e4af0 Add missing Vector3::operator Vector3i 2022-02-07 00:31:48 -08:00
ondy-personal 3d237fc7d7
Fixed crash when called methods return nullptr.
The returned value "ret" may be nullptr in which case the code would crash because "object_get_instance_binding" can't be called on nullptr input.

This should be very easy to reproduce, I encountered it pretty much any time I called a method that returned Ref<Something>. E.g.:

Ref<GeometryInstance3D> instance;
instance.instantiate();
instance.get_mesh();    // Crash because no mesh was set for the instance and the returned value was nullptr.
2022-01-31 17:12:45 -08:00
Hugo Locurcio 4dddd0b55b
Merge pull request #685 from paddy-exe/master 2022-01-29 17:21:33 +01:00
Patrick Exner 31eddf9e87 Update README file for macos support 2022-01-29 17:03:35 +01:00
Bastiaan Olij 4e2411ad98 headers: Sync with upstream commit 9f5c18c 2022-01-27 09:56:46 +11:00
Nicolás Carrasco f227a0179f Fix Test CMake project for Windows and parametrize paths 2022-01-26 20:12:05 +01:00