Commit Graph

20170 Commits

Author SHA1 Message Date
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
Michael Alexsander Silva Dias 28d48a0886 Enhance theme preview
(cherry picked from commit 5dfbdbcd0b)
2019-09-24 09:00:44 +02:00
Bojidar Marinov ef6807b34c Fix remote scene tree root folding
Fixes #25487

(cherry picked from commit 72472bef05)
2019-09-24 09:00:44 +02:00
Guilherme Felipe 6319d662af [StateMachine] Fix play position
Continuation of 771fbd282a

(cherry picked from commit 0fcbf4da8f)
2019-09-24 09:00:44 +02:00
Guilherme Felipe be47e0546d Show play position of sub state machine
Sub state machine now show the play position of the current state
playing.

(cherry picked from commit 771fbd282a)
2019-09-24 09:00:44 +02:00
UziMonkey cb0e500d27 Add sub-resource name when available to script editor
(cherry picked from commit 7056c825a3)
2019-09-24 09:00:44 +02:00
Mateus Felipe C. C. Pinto 8946ac9616 Make AnimatedSprite.animation complain when invalid animation name
(cherry picked from commit 2933ef42f7)
2019-09-24 09:00:44 +02:00
mellondill 3078f723a8 https://github.com/godotengine/godot/issues/31297 - HTML5: this.rtenv.callMain is not a function when using latest-upstream backend
Added needed changed for normal compiling with emscripten 1.38.41 and later

(cherry picked from commit 3c176827d6)
2019-09-24 09:00:44 +02:00
Emmanuel Barroga 45e4f467e7 Fix ProgressBar Wrong Value with Border
Closes: #30969

The FG rectangle of the progressbar is incorrect when dealing with a non-zero border. This issue stems from wrong order of operations when drawing the rectangle: int p = r * get_size().width - mp;


(cherry picked from commit 7db96e22dd)
2019-09-24 09:00:44 +02:00
Rémi Verschelde b7e2266dc5 jpgd.h: Backport security vulnerabilities fixes from Google Android
Squashed version of https://github.com/richgel999/jpeg-compressor/pull/10
with the line endings fixed (DOS to Unix).

See https://github.com/richgel999/jpeg-compressor/pull/10 and #30952
for details. Relates to CVE-2017-0700.

Fixes #30952.

(cherry picked from commit 5c333270ed)
2019-09-24 09:00:44 +02:00
Fabio Alessandrelli 2a837d525f Add NULL-terminator the string passed to strtol.
This is actually expected by the function although it was apparently
working in GCC without the terminator, it breaks (at least some) clang
versions.

(cherry picked from commit 2f91e250f6)
2019-09-24 09:00:44 +02:00
Rémi Verschelde 8acaac10b6
Merge pull request #30864 from enzogupi/patch-1
HTML5 default loader: small bugfix
2019-09-03 13:32:40 +02:00
Rémi Verschelde 0db32ced78
Merge pull request #31712 from volzhs/fix-vibrate-3.1
Suppress MissingPermission warning for Android vibration
2019-08-27 17:42:24 +02:00
volzhs 3178dee53c Suppress MissingPermission warning for Android vibration
It does check its permission every `vibrate_handheld()` calls.
Vibrate permission is added by checking it on export settings.

And there are some changes for deprecated method.
2019-08-27 22:02:22 +09:00
Enzo Ferrari a5a413c7e9 Fixed javascript code to remove animateStatusIndeterminate callback when the game is loaded. 2019-08-23 21:33:18 +02:00
Rémi Verschelde 2c63c27ef1
Merge pull request #31438 from volzhs/vibrate-mobile-3.1
Support vibration for Android and iOS
2019-08-21 21:10:46 +02:00
volzhs 081751172a Support vibration for Android and iOS 2019-08-22 00:05:11 +09:00
Rémi Verschelde bac75bf0c2
Merge pull request #31493 from aaronfranke/mono-3.1-serial-ign
[3.1] [Mono] Backport serializable attributes and backport gitignore files
2019-08-20 13:04:11 +02:00
Aaron Franke 3a7aa3a0e4
[3.1] [Mono] Make all structs serializable
Manually cherrypicked from https://github.com/godotengine/godot/pull/31191
2019-08-19 19:23:18 -04:00
Aaron Franke 329817edad
[3.1] [Mono] Backport gitignore files
This avoids seeing files generated on master when switching to the 3.1 branch.
2019-08-19 19:19:21 -04:00
Rémi Verschelde 76776d181f Update AUTHORS and DONORS list
New contributors added to AUTHORS:
@Anutrix, @hbina, @santouits

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit 6d6b9ccc9a)
2019-08-02 09:44:54 +02:00
Rémi Verschelde d84e9f2948 Update AUTHORS and DONORS list
New contributor added to AUTHORS:
@aqnuep

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit ab1cb10317)
2019-08-02 09:44:50 +02:00
Rémi Verschelde a5082c010a doc: Fix invalid tags or properties introduced in recent cherry-picks 2019-07-29 17:55:20 +02:00
Chris Bradfield 2a9c2d95f5 [DOCS] Correct "fixed process" reference in KinematicBody doc
(cherry picked from commit 7f4059ceb7)
2019-07-29 17:47:46 +02:00
Michael Alexsander Silva Dias eef5dc98fa Update some dead links in the codebase
(cherry picked from commit 12ae7a4c02)
2019-07-29 17:47:46 +02:00
FlamyAT 5a8fad0f4e Documents the need for input_pickable in _input_event
Update CollisionObject2D.xml

Added member tags to missing docs

(cherry picked from commit 9a84cef4fc)
2019-07-29 17:47:46 +02:00
Hugo Locurcio 61eb6b5180 Improve the Variant class documentation
Taken from
https://docs.godotengine.org/en/latest/development/cpp/variant_class.html.

(cherry picked from commit 4840d36654)
2019-07-29 17:47:46 +02:00
unknown dbbbf7a7f4 AStar and AStar2D examples fixed to not use 'as' keyword and also removed error causing code
(cherry picked from commit d7cf3c8e72)
2019-07-29 17:47:46 +02:00
FlamyAT 4e07bab968 Added missing InputEvent documentation
(cherry picked from commit 2046d7b87a)
2019-07-29 17:47:46 +02:00
Meriipu 81ac9c9afb Document Tree column behaviour of min_width in conjunction w expand
(cherry picked from commit 94c5e6a97e)
2019-07-29 17:47:46 +02:00
Nathan Warden 0d4f6463f9 Completed documentation for BakedLightmap node.
(cherry picked from commit 643ea41c68)
2019-07-29 17:47:46 +02:00
Hugo Locurcio 1f8470eaf2 doc: Mention `Input.MOUSE_MODE_CAPTURED` is raw on Windows and Linux
(cherry picked from commit f4e99e2e39)
2019-07-29 17:47:46 +02:00
hbina085 f45b8c36fd Clarify what %APPDATA% expands to in Windows
Linux users should be familiar with "~" so I think it might be unnecessary.
Also changed the file separator in the description to use Windows' instead.

(cherry picked from commit 5f68ae93b5)
2019-07-29 17:47:46 +02:00
lmp f011721a6e Clearify how hex_to_int expects a '0x' prefixed string. Provide a small hex_to_int example
(cherry picked from commit cebb38e0b3)
2019-07-29 17:47:46 +02:00