Commit graph

21929 commits

Author SHA1 Message Date
Rémi Verschelde
1769cbc0e2 SCons: Default to builtin libpng/freetype on Linux
The rationale for keeping those shared by default is that they're typical
dependencies found on any Linux system, and it saves compilation time and
binary size to link their dynamically.

But since official builds default to all-builtin, and Debian/Ubuntu still
don't have libpng16 (which we now require) readily available on all their
supported releases, it's simpler to bundle all the things.

This does not change the fact that those dependencies *can* be unbundled
on Linux, it's only the default option changing.
2019-06-23 10:02:35 +02:00
Chaosus
7bed1a0f21 Fix expression node crashes 2019-06-22 17:41:51 +03:00
clayjohn
64ecc8a5a3 properly set emitting when particles restart 2019-06-21 22:33:11 -07:00
Rémi Verschelde
05a0a68c72
Merge pull request #24448 from lukad/toggle-system-console
Add option to toggle console window
2019-06-21 23:43:16 +02:00
Rémi Verschelde
10cf5ac0ff
Merge pull request #29959 from akien-mga/dont-reset-my-curves
Curve: Prevent forcing 1.0 min value to 0.99
2019-06-21 21:17:25 +02:00
hilfazer
9986cf7005 editor save/delete layout dialog with layout list 2019-06-21 19:38:04 +02:00
Rémi Verschelde
ee07560abf Curve: Prevent forcing 1.0 min value to 0.99
The setters are called when the property is first initialized, and before
that its default min and max are 0.0 and 1.0 respectively.

If you configured min_value to 1.0 and max_value to e.g. 3.0, since the
min_value setter can be called before that of max_value (which thus still
defaults to 1.0), the min will be set to 0.99.
Same conflict could happen with a configured max_value of 0 if its setter
is called before that of a valid, negative min value.
2019-06-21 16:08:45 +02:00
Rémi Verschelde
34224d5ce5
Merge pull request #29958 from akien-mga/keep-calm-and-do-particles
Particles: Fix uninitialized angular velocity, fix inconsistency in linear velocity between CPU and GPU Particles
2019-06-21 16:03:19 +02:00
Max Hilbrunner
f854088292
Merge pull request #29957 from Calinou/doc-improve-engine-version-info
Improve the `Engine.get_version_info()` documentation
2019-06-21 15:51:11 +02:00
Rémi Verschelde
b3fe249e94 CPUParticles: Set linear velocity to 0, like GPU Particles 2019-06-21 15:23:48 +02:00
Rémi Verschelde
fae3df1204 Particles: Properly initialize angular velocity parameter
Right now it would take garbage values when loading scenes,
which could end up written to the scene file.
2019-06-21 15:23:10 +02:00
Hugo Locurcio
03335e5250
Improve the Engine.get_version_info() documentation
This documents some keys that were missing and improves formatting.
2019-06-21 15:15:55 +02:00
lawnjelly
512f8ebb93 Fix some keyboards not working with Android
Fixes #17004

Currently the keydown and keyup messages are handled with method like this:

if ((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK
|| (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD
|| (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) {
// joystick input
}
else
{
// keyboard input
}

The constant for SOURCE_DPAD is 513
10 0000 0001

and the constant for SOURCE_KEYBOARD is 257
1 0000 0001

However, rather confusingly, for many keyboards the source sent by android is 769
11 0000 0001

Thus the keyboard is passing the check as being a DPAD and being processed as a joystick rather than keyboard. This PR handles the specific case of 769, allowing input from physical keyboards.
2019-06-21 12:57:33 +01:00
Rémi Verschelde
02319dceb2
Merge pull request #29947 from qarmin/fix_some_editor_crashes
Fix some editor crashes
2019-06-21 12:25:18 +02:00
qarmin
c77ff48a85 Fix some editor crashes 2019-06-21 11:34:32 +02:00
Rémi Verschelde
1e833cadbc
Merge pull request #29935 from Faless/net/get_if_multicast_pr
Multicast, more network interfaces info
2019-06-21 10:21:01 +02:00
Fabio Alessandrelli
e5e3f86648 Multicast support in NetSocket/PacketPeerUDP 2019-06-21 00:14:42 +02:00
Fabio Alessandrelli
b574e476ec Implement IP.get_local_interfaces.
Allow getting interfaces names and assigned names.

On UWP this is not supported, and the function will return one interface
for each local address (with interface name the local address itself).
2019-06-21 00:14:42 +02:00
Jon Ring
9d3089181c Fix updating of collision shape when the transform is set 2019-06-20 16:12:58 -04:00
Rémi Verschelde
5c66771e3e
Merge pull request #29283 from qarmin/fix_some_always_same_values
Remove always true/false values
2019-06-20 21:10:10 +02:00
Rémi Verschelde
7b88ac0843
Merge pull request #29930 from zaksnet/document-referencerect
Document ReferenceRect Node
2019-06-20 19:36:27 +02:00
qarmin
532a7ba06a Fix TextEdit Select 2019-06-20 17:13:16 +02:00
qarmin
072e40368e Fix always true/false values 2019-06-20 16:59:48 +02:00
Luka Dornhecker
ad504b926f Add option to toggle console window on Windows
This is an editor setting and its value can also be toggled
using an entry in the Editor toolbar. The console will still
appear briefly when starting the project manager or editor,
as it's still compiled as console application.

Does not impact exported games, which will still run without
console in release and with console in debug mode.

A project setting or export option could be added to disable
it in debug mode if there's demand for it, but that would
greatly reduce the usefulness of debug builds if Windows users
can no longer report error and crash messages.

Fixes #17889.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2019-06-20 16:55:52 +02:00
Zak
5d0040e340 Document ReferenceRect Node
Added missing documentation for ReferenceRect Node
2019-06-20 17:35:08 +03:00
Rémi Verschelde
d6f8a43b60
Merge pull request #24116 from Calinou/editor-theme-improved-checkbuttons
Improve CheckButtons in the default editor theme
2019-06-20 13:07:53 +02:00
Rémi Verschelde
8591691b9b
Merge pull request #24249 from zorbathut/zorbathut/animimmediate
Implement AnimationPlayer call modes as per #23498.
2019-06-20 13:04:34 +02:00
Rémi Verschelde
cf76b713cb
Merge pull request #24487 from Meirinha/master
Added UV and UV2 to shader function light() built-in, fixes issue #24120
2019-06-20 12:46:54 +02:00
Elia Sarti
81065d53df Fix for #29810
Ensure indentation works properly in rich text
Fix formatting
2019-06-20 11:42:25 +01:00
Rémi Verschelde
237a0488eb
Merge pull request #29918 from akien-mga/scons-gcc-Wclobbered
SCons: Enable -Wclobbered in warnings=extra for GCC
2019-06-20 12:19:57 +02:00
Rémi Verschelde
300d4dfd54
Merge pull request #25573 from nekomatata/button-shortcut-fix
Fixed shortcut events in BaseButton (now acts the same as ui_accept action)
2019-06-20 12:06:31 +02:00
Rémi Verschelde
b9f8e072ce
Merge pull request #26205 from Calinou/spatialmaterial-use-packed-channels
Tweak SpatialMaterial's default metallic and roughness texture channels
2019-06-20 11:46:01 +02:00
Rémi Verschelde
974b07fc70
Merge pull request #29914 from YeldhamDev/fix_onion_errors
Fix minor onion layering control errors
2019-06-20 11:23:46 +02:00
Rémi Verschelde
4853870a18 SCons: Enable -Wclobbered in warnings=extra for GCC 2019-06-20 11:11:44 +02:00
Rémi Verschelde
e09cf96857
Merge pull request #29874 from ibrahn/rework-png-loadsave
PNG driver reworked to use libpng 1.6 simplified API
2019-06-20 11:10:02 +02:00
Rémi Verschelde
d61bce1b75
Merge pull request #29910 from m4gr3d/dev_deprecate_armv6
Deprecate support for Android armv6 architecture
2019-06-20 10:22:23 +02:00
PouleyKetchoupp
1e6fa5d1a5 Fixed shortcut events in BaseButton (now acts the same as ui_accept action) 2019-06-20 09:13:23 +02:00
Michael Alexsander Silva Dias
8a9b3d24f5 Fix minor onion layering control errors 2019-06-19 19:42:26 -03:00
Rémi Verschelde
5a29be31b3
Merge pull request #27188 from samH-FIT/MacroUpdate
Made use of semicolons after GDCLASS more consistent, added semicolons where I found them missing.
2019-06-19 22:59:49 +02:00
Hugo Locurcio
e08fa103f2
Fix Emscripten root directory detection when building for HTML5
Recent Emscripten SDK versions seem to only include the
`BINARYEN_ROOT` variable in the Emscripten configuration file,
whereas the platform's `detect.py` only looked at `EMSCRIPTEN_ROOT`.
2019-06-19 22:23:58 +02:00
fhuya
f7200d6960 Deprecate armv6 support for Android 2019-06-19 12:05:58 -07:00
Rémi Verschelde
02ed4b392c
Merge pull request #29902 from KoBeWi/dem_setters
Fix set_pick_color error
2019-06-19 20:43:15 +02:00
Rémi Verschelde
922a4f5413
Merge pull request #29901 from BastiaanOlij/fix_cameraserver_const
Made constants fully upper case in camera server
2019-06-19 20:20:47 +02:00
Rémi Verschelde
bf7a6f9c46
Merge pull request #29899 from Chaosus/select_all_tracks
Added button to select all tracks in track copy dialog
2019-06-19 20:04:54 +02:00
Rémi Verschelde
1abfd61f6e
Merge pull request #28295 from zqyoung1/fix-gridmap-nav-schemes
Fixed navigation schemes Modo/Maya when used with grid map tile place…
2019-06-19 19:30:57 +02:00
Rémi Verschelde
d8477c0596
Merge pull request #28906 from Xrayez/fix-28824
Enforce Unicode encoding in MSVC
2019-06-19 18:18:00 +02:00
Rémi Verschelde
4476ea81aa
Merge pull request #29897 from Chaosus/fix_animation_track_selection
Fix animation keys selection with SHIFT/CTRL
2019-06-19 16:45:42 +02:00
Michael Alexsander Silva Dias
1c2ba35074 Add 'global_rate_scale' to the AudioServer
Closes #28953.
2019-06-19 11:36:46 -03:00
Rémi Verschelde
ddba2e7b47
Merge pull request #26748 from raphael10241024/instance
Fix editor crash when saving a scene containing an inherited scene instance.
2019-06-19 16:28:15 +02:00
Tristan Grespinet
14f8ed3317 Added a Width Curve to Line2D + UVs fix 2019-06-19 15:44:07 +02:00