Commit Graph

27420 Commits

Author SHA1 Message Date
21d1ea60a7 Fix exporting corrupted Xcode pbxproj if project name has spaces 2020-03-31 09:37:17 +02:00
77dd061345 Mono/C#: Add iOS support
Right now, games only work on devices when exported with FullAOT+Interpreter.
There are some issues left that need to addressed for FullAOT alone. Right now,
it's giving issues with the Godot.NativeCalls static constructor.
2020-03-31 09:37:16 +02:00
fa08437694 Mono/C#: Fix MinGW build not supporting .lib libraries
MinGW should support both its own format `.a` and MSVC's format `.lib`,
but Mono's module was only using the former. With this change it's now
possible to build with MinGW and link the official Mono for Windows
which is built with MSVC.
2020-03-31 09:37:11 +02:00
ece425ace4 Merge pull request #37452 from zak-grumbles/thread_start_docs_fix
Clarify docs for Thread.start() godotengine#36032
2020-03-31 08:55:46 +02:00
d09644dff3 Clarify docs for Thread.start() godotengine#36032
* Updated docs for Thread.start() to specify that the method argument
must accept one parameter.
2020-03-30 21:53:39 -05:00
dfed5efea3 Merge pull request #37445 from nekomatata/hook-makerst-fix
Fixed errors in makerst pre-commit hook
2020-03-31 00:17:51 +02:00
619354fb2c Fixed errors in makerst pre-commit hook 2020-03-31 00:02:11 +02:00
2becffd4e8 Merge pull request #37444 from nekomatata/hook-readme-windows
Pre-commit hook instructions on Windows
2020-03-30 23:22:01 +02:00
7b6e664178 Pre-commit hook instructions on Windows 2020-03-30 22:59:06 +02:00
f3c74afd28 Merge pull request #37436 from akien-mga/doc-node-renames
doc: Update classref with node renames
2020-03-30 20:32:11 +02:00
6fed21c7cb Merge pull request #37356 from akien-mga/scons-enable-werror
SCons: Treat all warnings as errors
2020-03-30 20:30:54 +02:00
8f47ca8fe4 Merge pull request #37432 from reduz/glow-bicubic-upscale-global
Move glow upscale quality to a global setting, for consistency
2020-03-30 18:29:32 +02:00
72ea74bcc1 SCons: Treat all warnings as errors
After an effort spanning several years, we should now be warning-free
on all major compilers, so we can set `-Werror` to ensure that we don't
introduce warnings in new code.

Disable -Werror=strict-overflow on GCC 7 though, as it seems bogus and
was fixed in 8+.
2020-03-30 18:28:51 +02:00
f097511b96 Fix another batch of -Wmaybe-uninitialized warnings
And simplify code in CSGShape.
2020-03-30 18:27:36 +02:00
eaaee63b62 doc: Update classref with node renames
A few extra renames for classes which were missed in last week's PRs.
2020-03-30 18:23:02 +02:00
89e1263117 Move glow upscale quality to a global setting, for consistency 2020-03-30 10:46:03 -03:00
b383484e44 Merge pull request #37421 from akien-mga/python-format-black
SCons: Format buildsystem files with psf/black
2020-03-30 15:07:00 +02:00
3644036fd3 Travis: Add static check for Python black formatting
Also install and use pygmentize to visualize clang-format and black
diffs.
2020-03-30 09:31:53 +02:00
4d52761da6 Hooks: Use pygmentize if available to visualize diff 2020-03-30 09:05:59 +02:00
164826a39b Hooks: Add pre-commit hook for psf/black formatting 2020-03-30 09:05:59 +02:00
cd4e46ee65 SCons: Format buildsystem files with psf/black
Configured for a max line length of 120 characters.

psf/black is very opinionated and purposely doesn't leave much room for
configuration. The output is mostly OK so that should be fine for us,
but some things worth noting:

- Manually wrapped strings will be reflowed, so by using a line length
  of 120 for the sake of preserving readability for our long command
  calls, it also means that some manually wrapped strings are back on
  the same line and should be manually merged again.

- Code generators using string concatenation extensively look awful,
  since black puts each operand on a single line. We need to refactor
  these generators to use more pythonic string formatting, for which
  many options are available (`%`, `format` or f-strings).

- CI checks and a pre-commit hook will be added to ensure that future
  buildsystem changes are well-formatted.
2020-03-30 09:05:53 +02:00
0168709978 Merge pull request #37412 from KoBeWi/great_tree_escape
Properly handle node remove via undo
2020-03-30 06:40:42 +02:00
37ffb40047 Properly handle node remove via undo 2020-03-29 19:59:04 +02:00
fafb0ba06d Merge pull request #37313 from Chaosus/shader_fix_for
Prevent shader crash if multiple variables has been declared in 'for'
2020-03-28 23:33:17 +03:00
fc5e1d0344 Merge pull request #37369 from Calinou/scons-x11-alias-linuxbsd
Alias `platform=x11` to `platform=linuxbsd` in SCons
2020-03-28 20:35:53 +01:00
59fbbdc4af Alias platform=x11 to platform=linuxbsd in SCons
This makes it possible for users to follow outdated documentation
and still get a working binary.

This closes #37367.
2020-03-28 18:20:37 +01:00
aa33db056a Prevent shader crash if multiple variables has been declared in 'for' 2020-03-28 19:51:42 +03:00
0ecca1abd0 Merge pull request #37364 from ThakeeNathees/fix-forloop-range-bug-#37358
Fix for loop range bug: #37358
2020-03-28 17:39:36 +01:00
f8cb0a1b3c Merge pull request #37373 from reduz/fix-vector-resize
Ensure COWData does not always reallocate on resize, fixes #22561
2020-03-28 16:19:28 +01:00
3f7fa93179 Merge pull request #37362 from reduz/audioserver-memory-cleanup
Remove the audio memory allocator, use regular one instead.
2020-03-28 15:49:48 +01:00
d2d359d67c Merge pull request #37379 from akien-mga/server-renames-followup
More server renames for consistency after #37361
2020-03-28 14:20:58 +01:00
60d486acc8 Fix copyright headers for recently added files 2020-03-28 13:29:29 +01:00
0c320a6bf3 More server renames for consistency after #37361 2020-03-28 13:20:48 +01:00
bbbdabc771 Merge pull request #37372 from dankan1890/quick_fix
Fixed probable typo in renaming.
2020-03-28 12:57:13 +01:00
06e8740184 Fixed missed occurrences in #37361 renamings. 2020-03-28 12:37:44 +01:00
0c24a844ec Ensure COWData does not reallocate on push back, fixes #22561 2020-03-27 21:52:42 -03:00
16245f2c29 Remove the audio memory allocator, use regular one instead. 2020-03-27 20:36:43 -03:00
fcfffd7297 Merge pull request #37361 from reduz/server-renames
Renaming of servers for coherency.
2020-03-27 22:14:50 +01:00
0b5bad78c0 Fix for loop range bug: #37358 2020-03-28 02:20:58 +05:30
a6f3bc7c69 Renaming of servers for coherency.
VisualServer -> RenderingServer
PhysicsServer -> PhysicsServer3D
Physics2DServer -> PhysicsServer2D
NavigationServer -> NavigationServer3D
Navigation2DServer -> NavigationServer2D

Also renamed corresponding files.
2020-03-27 15:21:27 -03:00
307b1b3a58 Merge pull request #37340 from reduz/rename-3d-nodes
Make 2D and 3D node names more explicit
2020-03-27 13:47:15 -03:00
d1acbbce7f Rename more 2D and 3D nodes to follow convention
Rename editor plugins to match the new node names.
2020-03-27 16:26:34 +01:00
f48aeeeeef Merge pull request #37347 from akien-mga/displayserver-fix-create-func
DisplayServer: Fix registration of GetRenderingDriversFunction
2020-03-27 15:51:29 +01:00
92d25e62f7 Merge pull request #37353 from bruvzg/fix_editor_font
Fix default editor font.
2020-03-27 15:45:31 +01:00
c3a760c507 Fix build with disable_3d=yes, remove dependency on WorldEnvironment 2020-03-27 14:55:14 +01:00
eaae4b6408 Renamed 2D and 3D nodes to make their types explicit
Fixes #30736.
2020-03-27 14:54:04 +01:00
9a7dbc2aca Merge pull request #37351 from akien-mga/fix-warnings-Wmaybe-initialized
Fix some -Wmaybe-uninitialized warnings
2020-03-27 14:52:32 +01:00
f725bd99f4 Fix some -Wmaybe-uninitialized warnings
Namely:
```
modules/basis_universal/register_types.cpp: In function 'Ref<Image> basis_universal_unpacker(const Vector<unsigned char>&)':
modules/basis_universal/register_types.cpp:266:15: warning: 'imgfmt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  266 |  image->create(info.m_width, info.m_height, info.m_total_levels > 1, imgfmt, gpudata);
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modules/basis_universal/register_types.cpp:255:39: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
  255 |    bool ret = tr.transcode_image_level(ptr, size, 0, i, dst + ofs, level.m_total_blocks - i, format);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

```
servers/visual_server.cpp: In member function 'Error VisualServer::_surface_set_data(Array, uint32_t, uint32_t*, uint32_t, Vector<unsigned char>&, int, Vector<unsigned char>&, int, AABB&, Vector<AABB>&)':
servers/visual_server.cpp:636:15: warning: 'iw' may be used uninitialized in this function [-Wmaybe-uninitialized]
  636 |       copymem(&iw[i * 2], &v, 2);
      |               ^
```

```
core/image.cpp: In member function 'Error Image::generate_mipmap_roughness(Image::RoughnessChannel, const Ref<Image>&)':
core/image.cpp:1683:11: warning: 'roughness' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1683 |     float roughness;
      |           ^~~~~~~~~
```
2020-03-27 14:33:06 +01:00
7750302944 Merge pull request #37354 from marxin/fix-maybe-uninitialized-warnings
Fix various -Wmaybe-uninitialized (#37352).
2020-03-27 14:32:22 +01:00
c554677c95 Fix various -Wmaybe-uninitialized (#37352). 2020-03-27 13:57:20 +01:00