summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-30Merge pull request #37436 from akien-mga/doc-node-renamesRémi Verschelde
doc: Update classref with node renames
2020-03-30Merge pull request #37356 from akien-mga/scons-enable-werrorRémi Verschelde
SCons: Treat all warnings as errors
2020-03-30Merge pull request #37432 from reduz/glow-bicubic-upscale-globalRémi Verschelde
Move glow upscale quality to a global setting, for consistency
2020-03-30SCons: Treat all warnings as errorsRémi Verschelde
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-30Fix another batch of -Wmaybe-uninitialized warningsRémi Verschelde
And simplify code in CSGShape.
2020-03-30doc: Update classref with node renamesRémi Verschelde
A few extra renames for classes which were missed in last week's PRs.
2020-03-30Move glow upscale quality to a global setting, for consistencyJuan Linietsky
2020-03-30Merge pull request #37421 from akien-mga/python-format-blackRémi Verschelde
SCons: Format buildsystem files with psf/black
2020-03-30Travis: Add static check for Python black formattingRémi Verschelde
Also install and use pygmentize to visualize clang-format and black diffs.
2020-03-30Hooks: Use pygmentize if available to visualize diffRémi Verschelde
2020-03-30Hooks: Add pre-commit hook for psf/black formattingRémi Verschelde
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
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-30Merge pull request #37412 from KoBeWi/great_tree_escapeRémi Verschelde
Properly handle node remove via undo
2020-03-29Properly handle node remove via undoTomasz Chabora
2020-03-28Merge pull request #37313 from Chaosus/shader_fix_forYuri Roubinsky
Prevent shader crash if multiple variables has been declared in 'for'
2020-03-28Merge pull request #37369 from Calinou/scons-x11-alias-linuxbsdRémi Verschelde
Alias `platform=x11` to `platform=linuxbsd` in SCons
2020-03-28Alias `platform=x11` to `platform=linuxbsd` in SConsHugo Locurcio
This makes it possible for users to follow outdated documentation and still get a working binary. This closes #37367.
2020-03-28Prevent shader crash if multiple variables has been declared in 'for'Yuri Roubinsky
2020-03-28Merge pull request #37364 from ThakeeNathees/fix-forloop-range-bug-#37358Rémi Verschelde
Fix for loop range bug: #37358
2020-03-28Merge pull request #37373 from reduz/fix-vector-resizeRémi Verschelde
Ensure COWData does not always reallocate on resize, fixes #22561
2020-03-28Merge pull request #37362 from reduz/audioserver-memory-cleanupRémi Verschelde
Remove the audio memory allocator, use regular one instead.
2020-03-28Merge pull request #37379 from akien-mga/server-renames-followupRémi Verschelde
More server renames for consistency after #37361
2020-03-28Fix copyright headers for recently added filesRémi Verschelde
2020-03-28More server renames for consistency after #37361Rémi Verschelde
2020-03-28Merge pull request #37372 from dankan1890/quick_fixRémi Verschelde
Fixed probable typo in renaming.
2020-03-28Fixed missed occurrences in #37361 renamings.dankan1890
2020-03-27Ensure COWData does not reallocate on push back, fixes #22561Juan Linietsky
2020-03-27Remove the audio memory allocator, use regular one instead.Juan Linietsky
2020-03-27Merge pull request #37361 from reduz/server-renamesRémi Verschelde
Renaming of servers for coherency.
2020-03-28Fix for loop range bug: #37358Thakee Nathees
2020-03-27Renaming of servers for coherency.Juan Linietsky
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
2020-03-27Merge pull request #37340 from reduz/rename-3d-nodesJuan Linietsky
Make 2D and 3D node names more explicit
2020-03-27Rename more 2D and 3D nodes to follow conventionRémi Verschelde
Rename editor plugins to match the new node names.
2020-03-27Merge pull request #37347 from akien-mga/displayserver-fix-create-funcRémi Verschelde
DisplayServer: Fix registration of GetRenderingDriversFunction
2020-03-27Merge pull request #37353 from bruvzg/fix_editor_fontRémi Verschelde
Fix default editor font.
2020-03-27Fix build with disable_3d=yes, remove dependency on WorldEnvironmentRémi Verschelde
2020-03-27Renamed 2D and 3D nodes to make their types explicitJuan Linietsky
Fixes #30736.
2020-03-27Merge pull request #37351 from akien-mga/fix-warnings-Wmaybe-initializedRémi Verschelde
Fix some -Wmaybe-uninitialized warnings
2020-03-27Fix some -Wmaybe-uninitialized warningsRémi Verschelde
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-27Merge pull request #37354 from marxin/fix-maybe-uninitialized-warningsRémi Verschelde
Fix various -Wmaybe-uninitialized (#37352).
2020-03-27Fix various -Wmaybe-uninitialized (#37352).Martin Liska
2020-03-27Fix default editor font.bruvzg
Fix popup_centered_clamped definition typo.
2020-03-27DisplayServer: Fix registration of GetRenderingDriversFunctionRémi Verschelde
Also improve `--help` output.
2020-03-27Merge pull request #37339 from bruvzg/mac_disp_server_fixesRémi Verschelde
[macOS] Prevent recursive `_dispatch_input_event` calls, improve window focus regain.
2020-03-26Prevent recursive `_dispatch_input_event` calls, improve focus regain on ↵bruvzg
window deletion.
2020-03-26Merge pull request #37317 from akien-mga/display-server-rebasedRémi Verschelde
Separate DisplayServer from OS and add multiple windows support
2020-03-26Travis: Disable HTML5 again until ported to DisplayServerRémi Verschelde
Also re-enable macOS builds disabled in dbb3f992a4f4a145c46df69e0e900262b956f0e3.
2020-03-26Add macOS DisplayServer implementation.bruvzg
Change global menu to use Callable, add support for check items and submenus.
2020-03-26Fixes to X11, still pretty brokenJuan Linietsky
2020-03-26Multiple changes to DisplayServerX11Mateo Kuruk Miccino
- Travis: Change x11 to linuxbsd - SCons: Change x11 plataform to linuxbsd - Plugins: Remove ; to avoid fallthrough warning - DisplayServerX11: Implement set_icon - DisplayServerX11: Fix X11 bug when a window was erased from windows map, all the changes from that erased windows are sending to the main window - DisplayServerX11: Reorder create_window commands - DisplayServerX11: Change every Size2 to Size2i and Rect2 to Rect2i where it belongs + More X11 fixes which have been integrated directly back into reduz's original commits while rebasing the branch.