Commit graph

20203 commits

Author SHA1 Message Date
clayjohn 3689ac6c6b fix CPU particles bug with local_coords and transform
(cherry picked from commit 52696e98b4)
2019-09-27 12:49:40 +02:00
Colin Redman abf19bdab2 Fix ParallaxBackground breaking when moving it out the scene tree
(cherry picked from commit 359d7f178c)
2019-09-26 14:49:37 +02:00
Anish c70a3671b0 Fixes VideostreamGDNative crash on audio_channel=0.
Added an if case to check if the mix_callback exists before running any
of the audio code.

Fixes: #28644
(cherry picked from commit f0757f31a4)
2019-09-26 14:48:53 +02:00
Michael Alexsander Silva Dias cd1bb5d3db Make 'TabContainer' update when icon/title is changed
Fixes #28655.

(cherry picked from commit 37f4d51a75)
2019-09-26 14:48:35 +02:00
Bojidar Marinov 33b2d65f98 Fix slight issues with autocompletion and member lists in GDScript
Fixes #27152
Fixes #28591

(cherry picked from commit f9d9530902)
2019-09-26 14:48:16 +02:00
Hugo Locurcio 759b488b22 Add a property hint for DynamicFont size
This caps its size to reasonable values in the Inspector.

This closes #22581.

(cherry picked from commit 818f756d90)
2019-09-26 14:46:43 +02:00
Maxime Leroy 123dc78f2b Fixing Curve2D/3D baked interpolated values
If bake interval is a multiple of the curve length, the curve would return NaN for some offset values (when `frac == 0.0`, it matches the start and end of the curve segment so `fmod == 0.0`, `frac` becomes NaN)

```
# Godot 3.1.1
var c = Curve3D.new()
c.add_point(Vector3())
c.add_point(Vector3(0.5,0,0))
c.add_point(Vector3(1,0,0))
c.bake_interval = 0.5
c.interpolate_baked(0.5) == Vector3(NAN, NAN, NAN)

```

(cherry picked from commit 6bd271139d)
2019-09-26 14:46:25 +02:00
MJacred f1fdaf32f3 Fix application window not listed in taskbar (X11)
* for executable
* for editor and exported executable (on older Cinnamon versions)

(cherry picked from commit 1d86929dcb)
2019-09-26 14:45:39 +02:00
XiaoLongHan d585b1a5b1 fix file system not refresh on exFAT
(cherry picked from commit 9d309096c9)
2019-09-26 14:45:02 +02:00
AnthonyYoManz 41f6a800bd Fix Crash On Close When 3D Is Disabled
(cherry picked from commit fc65cc64b9)
2019-09-26 14:44:20 +02:00
Andrii Doroshenko (Xrayez) 9114357bc5 Fix BMP loader to distinguish between compression types
Some of the values in compression enumeration represent uncompressed formats:

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/4e588f70-bd92-4a6f-b77f-35d0feaf7a57

This allows the loader to proceed with uncompressed formats.
Note that loading compressed BMP's is still not supported.

(cherry picked from commit 422a8ffe02)
2019-09-26 14:42:51 +02:00
Andrii Doroshenko (Xrayez) f8dce7ade9 Fix BMP loader incorrectly interpreting color table size
Color table should exist for images with bit count <= 8. Importing 16-bit
BMP images could also likely have a color table but they're not currently
supported in Godot.

(cherry picked from commit d5c5aabbf2)
2019-09-26 14:42:13 +02:00
Andrii Doroshenko (Xrayez) 5dd3d3dadf Import 4/1 bit bmp images
Add some sanity checks according to bmp specification.

Read color table and index data within the same scope and
then simply extend the color palette.

This particular implementation has one limitation: not all 4/1 bit images
can be imported as it requires bit unpacking (size dimensions must be
a multiple of 8 for 1-bit and 2 (even) for 4-bit images).

(cherry picked from commit 6484da5721)
2019-09-26 14:41:27 +02:00
Shinryuuji c6ee986f53 Add support for 8bpp bmp files
(cherry picked from commit b9578b8f46)
2019-09-26 14:41:04 +02:00
xDGameStudios 6b07e4b535 Fixed optional idx argument in add_item (OptionMeny & PopupMenu)
(cherry picked from commit ffc5f360e8)
2019-09-26 14:32:01 +02:00
Anish Bhobe fdb94e3409 Fixes physic_fps=0 bug.
Added a condition to check if the loop exited without iteration
being run by checking the return value from idle().

Fixes: #26321
(cherry picked from commit 3c27980a17)
2019-09-26 14:31:38 +02:00
Rémi Verschelde 9bd5501a22 Update AUTHORS and DONORS list
New contributors added to AUTHORS:
@merumelu, @sparkart

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit 41beecaa08)
2019-09-24 13:20:58 +02:00
Rémi Verschelde 1018079219
Merge pull request #32303 from akien-mga/3.1-bullet-clang8
bullet: Backport upstream patch to fix clang 8 build
2019-09-24 13:17:30 +02:00
Rémi Verschelde 471daf4773 bullet: Backport upstream patch to fix clang 8 build
Fixes #32301.
2019-09-24 11:21:30 +02:00
Rémi Verschelde 300838dad2
Merge pull request #31531 from akien-mga/3.1
Assorted cherry-picks from the master branch for Godot 3.1.2
2019-09-24 10:05:49 +02:00
Fabio Alessandrelli 138aeeabb9 Fix HTML5 export after #30864
(cherry picked from commit e7760deb74)
2019-09-24 09:00:56 +02:00
Vasiliy Makarov d3422f8cf7 Fix pvrtc encoder
Always resize image to square of power2
Enable mipmaps only if original texture has it enabled
Fix #28534, #28541

(cherry picked from commit 4009d26022)
2019-09-24 09:00:46 +02:00
Michael Alexsander Silva Dias e40293942d Regression fixup to the theme editor
(cherry picked from commit b7c2bcff76)
2019-09-24 09:00:46 +02:00
Michael Alexsander Silva Dias 7ff607290a Minor fixups to the theme editor
(cherry picked from commit 1c872c75db)
2019-09-24 09:00:46 +02:00
Ken Paulson f0039bd18b Added TranslationServer::get_loaded_locales to return an array of all locales with a loaded Translation
(cherry picked from commit 6b117c44fb)
2019-09-24 09:00:46 +02:00
Chaosus 9953b2ab43 Disallow loopback connection in visual scripts and visual shaders
(cherry picked from commit 21ca9f6c7c)
2019-09-24 09:00:46 +02:00
Rémi Verschelde 6cd6d3aa16 Also disable C and C++ specific warnings in thirdparty code
Move the `Append` up to make sure that the keys exist and avoid the
need to check `if CPPFLAGS in self`, etc.

(cherry picked from commit 8d867cf7c5)
2019-09-24 09:00:45 +02:00
qarmin 49bbec08e2 Disable Project Export button after deleting preset
(cherry picked from commit 2fc2d82465)
2019-09-24 09:00:45 +02:00
Carsten Klein 693f3c9d62 Call minimum_size_changed() on redo/undo if expand_to_text_length is true
Fixes #28241

(cherry picked from commit da2a0a3814)
2019-09-24 09:00:45 +02:00
Andrii Doroshenko (Xrayez) f6c0078264 Fix TGA indexed images loaded with flipped color table
This fixes incorrect color table lookup where red and blue channels were flipped.

(cherry picked from commit d0f0f1f1cb)
2019-09-24 09:00:45 +02:00
Michael Alexsander Silva Dias 660acc3913 Fix 'LineEdit' offset limit not accounting for the right/clear icon width
Fully fixes #28242.

(cherry picked from commit ac1c523989)
2019-09-24 09:00:45 +02:00
Michael Alexsander Silva Dias 8e7f5c8628 Fix 'LineEdit' contents not ending before the clear button if no right icon was set
Fixes #28242.

(cherry picked from commit d84acb98d0)
2019-09-24 09:00:45 +02:00
Kenneth Lee aa36c0c56c Fixes build for Windows cross-compilation
Fixes #28299

(cherry picked from commit 5c5c3a590a)
2019-09-24 09:00:45 +02:00
KLee1248 2e5fa9f043 Use SHGetKnownFolderPath instead of SHGetFolderPathW.
When getting system directories for Windows, we currently use
SHGetFolderPathW. This is a deprecated function and doesn't support
"Downloads" folders.

As a replacement, this commit uses the newer SHGetKnownFolderPath
function, which is supported since Windows Vista. Godot 3.0 only
supports Windows 7+, so we don't need to use SHGetFolderPathW for
backwards compatibility.

Fixes #26876

(cherry picked from commit 3d908f57d8)
2019-09-24 09:00:45 +02:00
Vasiliy Makarov 3cb47c9b66 Make Xcode recursive search frameworks in project dir
(cherry picked from commit 641922782e)
2019-09-24 09:00:45 +02:00
Matheus Lima Cunha 1e5709265c Move vertex along a single axis while editing and holding shift
(cherry picked from commit 0110a88547)
2019-09-24 09:00:45 +02:00
Hugo Locurcio 614dbe74e2 Scale animation track editor line widths on hiDPI displays
(cherry picked from commit c0959f00a0)
2019-09-24 09:00:45 +02:00
Anders Stenberg e18f18dbec Proper passing of the "transform_key_request"
signal from SpatialEditorViewport to InspectorDock

(cherry picked from commit 645c656571)
2019-09-24 09:00:45 +02:00
Jean Dao b6ab75504b Fix: use function in SceneTree::call_group
When calling call_group from C++, the function name is not passed on to
call_group_flags, resulting in first argument being mistakenly used
instead of function.

(cherry picked from commit 7240701ec9)
2019-09-24 09:00:45 +02:00
ShyRed a849625813 Fix missing re-activation of bullet physics sleep feature
Adds the missing option of re-enabling the sleep feature in bullet physics once a body had the sleep feature disabled.

(cherry picked from commit 0877cf6419)
2019-09-24 09:00:45 +02:00
hbina085 8c2e10c393 Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
(cherry picked from commit 9f0c6a6009)
2019-09-24 09:00:45 +02:00
Rémi Verschelde fc18d637a8 Fix -Wimplicit-fallthrough warnings from GCC 8
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.

The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.

Fixes #26135.

(cherry picked from commit fc370b3feb)
2019-09-24 09:00:45 +02:00
qarmin 3b703d6707 Small fixes, mostly dupicated code
(cherry picked from commit 856a8226a5)
2019-09-24 09:00:45 +02:00
Theis Egeberg a2cf479f07 Removed extra division by format channels causing sounds to get halved.
(cherry picked from commit e630591aea)
2019-09-24 09:00:45 +02:00
Theis Egeberg 330c7a2fb4 Fix end pops when trimming wav files
-Added trim limit constant at top of file, defining at which db trimming should occur (moved from being in the code itself)
-Added fade out frames constant at top of file, defining how many frames should have fade out applied (to avoid pops at the end of trim)
-Rewrote parts of the trimming logic to use an average of volume across all channels instead of any particular channel
-Added fade-out to trimming

(cherry picked from commit 26cc521d55)
2019-09-24 09:00:44 +02:00
Guilherme Felipe 21d3ad2e52 Continuation of #27562
[AnimationTree] Fix scale interpolation

(cherry picked from commit dbda5b6700)
2019-09-24 09:00:44 +02:00
Tomasz Chabora 25074c734d Use filename for scene root of imported models
(cherry picked from commit 82fadde680)
2019-09-24 09:00:44 +02:00
Paul Trojahn f5def1329e Support UTF-8 in TextEdit and LineEdit navigation
This allows jumps over whole non ASCII words with Ctrl+Left/Right in
a LineEdit or TextEdit.
Fixes #25681

(cherry picked from commit 8851e16f75)
2019-09-24 09:00:44 +02:00
Paul Trojahn af3b157517 Support UTF-8 input action names
Fixes #26380

(cherry picked from commit a7430a9d06)
2019-09-24 09:00:44 +02:00
Ibrahn Sahir 78a7f945e4 Removed an unused and leaked CheckButton instance in theme editor plugin
(cherry picked from commit cbf2d3cdc4)
2019-09-24 09:00:44 +02:00