Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
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
Rémi Verschelde
60d486acc8
Fix copyright headers for recently added files
2020-03-28 13:29:29 +01:00
Rémi Verschelde
0c320a6bf3
More server renames for consistency after #37361
2020-03-28 13:20:48 +01:00
Rémi Verschelde
bbbdabc771
Merge pull request #37372 from dankan1890/quick_fix
...
Fixed probable typo in renaming.
2020-03-28 12:57:13 +01:00
dankan1890
06e8740184
Fixed missed occurrences in #37361 renamings.
2020-03-28 12:37:44 +01:00
Juan Linietsky
0c24a844ec
Ensure COWData does not reallocate on push back, fixes #22561
2020-03-27 21:52:42 -03:00
Juan Linietsky
16245f2c29
Remove the audio memory allocator, use regular one instead.
2020-03-27 20:36:43 -03:00
Rémi Verschelde
fcfffd7297
Merge pull request #37361 from reduz/server-renames
...
Renaming of servers for coherency.
2020-03-27 22:14:50 +01:00
Thakee Nathees
0b5bad78c0
Fix for loop range bug: #37358
2020-03-28 02:20:58 +05:30
Michael Alexsander
805ee0ee6c
General enhancements to floating docks
2020-03-27 16:49:41 -03:00
Juan Linietsky
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
Juan Linietsky
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
Rémi Verschelde
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
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
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
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