Rémi Verschelde
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
Rémi Verschelde
92d25e62f7
Merge pull request #37353 from bruvzg/fix_editor_font
...
Fix default editor font.
2020-03-27 15:45:31 +01:00
Rémi Verschelde
c3a760c507
Fix build with disable_3d=yes, remove dependency on WorldEnvironment
2020-03-27 14:55:14 +01:00
Juan Linietsky
eaae4b6408
Renamed 2D and 3D nodes to make their types explicit
...
Fixes #30736 .
2020-03-27 14:54:04 +01:00
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
7750302944
Merge pull request #37354 from marxin/fix-maybe-uninitialized-warnings
...
Fix various -Wmaybe-uninitialized (#37352 ).
2020-03-27 14:32:22 +01:00
Martin Liska
c554677c95
Fix various -Wmaybe-uninitialized ( #37352 ).
2020-03-27 13:57:20 +01:00
bruvzg
21c2116744
Fix default editor font.
...
Fix popup_centered_clamped definition typo.
2020-03-27 14:13:01 +02:00
Rémi Verschelde
fe3566e190
DisplayServer: Fix registration of GetRenderingDriversFunction
...
Also improve `--help` output.
2020-03-27 11:07:32 +01:00
Rémi Verschelde
64470ef639
Merge pull request #37339 from bruvzg/mac_disp_server_fixes
...
[macOS] Prevent recursive `_dispatch_input_event` calls, improve window focus regain.
2020-03-27 10:29:03 +01:00
Michael Alexsander
d15e1dafbd
Updade dialog node's icons
2020-03-26 22:44:49 -03:00
bruvzg
e1c1bb03ea
Prevent recursive _dispatch_input_event
calls, improve focus regain on window deletion.
2020-03-26 23:22:04 +02:00
Rémi Verschelde
5f1107aa30
Merge pull request #37317 from akien-mga/display-server-rebased
...
Separate DisplayServer from OS and add multiple windows support
2020-03-26 17:23:11 +01:00
Thomas ten Cate
23a8a8c667
Revert "Allow parameters passed to GDScript functions to be nulled"
...
This reverts commit f0efc7521e
.
Fixes #37312 .
2020-03-26 17:02:28 +01:00
Rémi Verschelde
be07f86f85
Travis: Disable HTML5 again until ported to DisplayServer
...
Also re-enable macOS builds disabled in dbb3f992a4
.
2020-03-26 16:24:10 +01:00
bruvzg
15a9f94346
Add macOS DisplayServer implementation.
...
Change global menu to use Callable, add support for check items and submenus.
2020-03-26 16:24:05 +01:00
Juan Linietsky
197cb4e771
Fixes to X11, still pretty broken
2020-03-26 15:50:00 +01:00
Mateo Kuruk Miccino
f387b9b4f4
Multiple changes to DisplayServerX11
...
- 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.
2020-03-26 15:49:54 +01:00
Juan Linietsky
9a5d15a2dc
Implemented drag and drop across windows, both OS and embedded.
2020-03-26 15:49:46 +01:00
Juan Linietsky
047e0b7de5
Reworked tooltips to use the popup system.
2020-03-26 15:49:45 +01:00
Juan Linietsky
b3080bc2f4
Popups have also been converted to windows
...
Controls using the old modal API have been replaced to use popups.
2020-03-26 15:49:44 +01:00
Juan Linietsky
09ba290364
Fixes to window style flags
2020-03-26 15:49:44 +01:00
Juan Linietsky
c7b4dcae2f
Open sub-windows as embedded if the OS does not support them
2020-03-26 15:49:43 +01:00
Juan Linietsky
441f1a5fe9
Popups are now windows also (broken!)
2020-03-26 15:49:42 +01:00
Juan Linietsky
543fb1c4da
Separate DisplayServer from OS on Windows
2020-03-26 15:49:41 +01:00
Juan Linietsky
499e07f010
Make DisplayServerX11 thread safe
2020-03-26 15:49:40 +01:00
Juan Linietsky
4758057f20
Working multiple window support, including editor
2020-03-26 15:49:40 +01:00
Juan Linietsky
f51fdc6eef
Support for transient windows
2020-03-26 15:49:39 +01:00
Juan Linietsky
8e6960a69e
Refactored input, goes all via windows now.
...
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26 15:49:39 +01:00
Juan Linietsky
9e08742de8
Added a Window node, and made it the scene root.
...
Still a lot of work to do.
2020-03-26 15:49:38 +01:00
Juan Linietsky
f8a79a97c7
Effective DisplayServer separation, rename X11 -> LinuxBSD
2020-03-26 15:49:34 +01:00
Juan Linietsky
4396e98834
Refactored Input, create DisplayServer and DisplayServerX11
2020-03-26 15:49:32 +01:00
Rémi Verschelde
a2da99f40c
Merge pull request #37259 from Calinou/doc-editorfeatureprofile
...
Document the EditorFeatureProfile class
2020-03-26 09:29:42 +01:00
Rémi Verschelde
4d5705eefa
Merge pull request #37274 from Janglee123/corrected-text-selection-in-color-picker
...
Corrected text selection in color picker
2020-03-26 09:29:18 +01:00
Rémi Verschelde
4507d0cd2b
Merge pull request #37279 from Waridley/fix_22016
...
Fix volume interpolation in positional audio nodes
2020-03-26 09:28:50 +01:00
Rémi Verschelde
24fa0d871d
Merge pull request #37294 from akien-mga/scons-drop-python2
...
SCons: Drop support for Python 2
2020-03-26 09:28:11 +01:00
Rémi Verschelde
fafff6b379
Merge pull request #37306 from patrickdevivo/master
...
Add TODOs Badge to README
2020-03-26 09:19:40 +01:00
Rémi Verschelde
55ed204274
Merge pull request #37307 from bruvzg/mvk_cubemap_filter
...
[macOS] Rename conflicting variable to fix MoltenVK shader compilation.
2020-03-26 08:39:35 +01:00
bruvzg
1ee27a6d9f
Rename conflicting variable to fix MoltenVK shader compilation.
2020-03-26 09:02:36 +02:00
Yuri Roubinsky
1358febfa1
Merge pull request #37287 from Chaosus/vs_sky
...
Added sky shader mode to visual shaders
2020-03-26 08:38:19 +03:00
Patrick DeVivo
17ac8c1e9b
Add TODOs Badge to README
...
Closes #37217
2020-03-25 19:53:51 -04:00
Yuri Roubinsky
898b843718
Added sky shader mode to visual shaders
2020-03-25 19:04:42 +03:00
Danil Alexeev
97e20b2f30
Improve the File.store_{8,16,32,64}()
documentation
...
Added information about the intervals of values that the functions
`store_{8,16,32,64}()` can correctly write to the file.
2020-03-25 18:02:04 +03:00
Rémi Verschelde
3d2dd79ecd
SCons: Drop support for Python 2
...
We now require SCons 3.0+ (first version with Python 3 support),
and we set min required Python 3 version to 3.5 (3.4 and earlier are
EOL).
2020-03-25 15:25:37 +01:00
Tom Evans
8dc8833782
Mark assert lines as safe in gdscript
...
Now calling _reduce_node_type with debugging enabled to determine
if assert line is safe. Part of doing this required the assert line
to be stored away. Now the AssertNode line is being correctly set.
Newlines are now marked safe always
2020-03-25 08:42:04 -05:00
Rémi Verschelde
35e700e931
Merge pull request #37290 from akien-mga/style-header-guards-core
...
Style: Harmonize header guards to style guide [Core]
2020-03-25 13:58:29 +01:00
Rémi Verschelde
13a9bfbca7
Style: Harmonize header guards to style guide [Core]
2020-03-25 11:22:19 +01:00
janglee
77b70aa79d
Corrected text selection in color picker
...
Fixes #35603
2020-03-25 08:13:31 +00:00
Waridley
ff1fbd2bc5
Fix volume interpolation in positional audio nodes
...
Fixes #22016
2020-03-25 02:37:35 -05:00