Commit Graph

20414 Commits

Author SHA1 Message Date
Rémi Verschelde ec02a81f47 Bump version to 3.1.2-stable
Tons of bugfixes have been cherry-picked since 3.1.1 in April,
this should make the 3.1 branch a lot more reliable to ship games.

Thanks to all contributors! <3
2019-11-29 16:23:51 +01:00
Rémi Verschelde eabf4bbd67 Emscripten: Do not define BINARYEN_TRAP_MODE='clamp'
It is not supported in Emscripten's `latest-upstream` LLVM backend,
and doesn't seem necessary in the `latest` backend either.
It was initially added in #22857 to solve a compilation error with the latter.

Part of #30270.

(cherry picked from commit 63544e6b02)
2019-11-29 16:10:18 +01:00
Rémi Verschelde 6184ccca46 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@d329cb6a71.

(cherry picked from commit 502a667070)
2019-11-29 16:05:32 +01:00
bruvzg 56f5502402 [macOS] Fix locale detection.
(cherry picked from commit c8bf0ee062)
2019-11-29 16:05:07 +01:00
stoofin 577b6d1196 Fixed bug caused by a copy/paste error in Face3::get_closest_point_to
s * edge0 = -d / a * edge0 = -edge0⋅v0 / (edge0⋅edge0) * edge0 = vector projection of -v0 onto edge0

By incorrectly using -e/c instead of -d/a, Face3::get_closest_point_to was returning the wrong point in certain cases.  Specifically, I noticed it returning vertex[0] when it should have been returning vertex[1].

(cherry picked from commit 8abd64dcbb)
2019-11-29 16:04:41 +01:00
Rémi Verschelde 8a13eac43d HTML5: Explicitly link idbfs.js for IDBFS support
Upstream Emscripten changed this in 1.39.1+, so IDBFS is no longer
included by default and has to be linked manually.

The explicit linking doesn't seem to be problematic on earlier
versions (tested `1.38.47-upstream`).

Fixes #33724.

(cherry picked from commit e5dfcb5edd)
2019-11-29 16:02:17 +01:00
Ignacio Etcheverry 1d952f8d69 C#: Throw NullReferenceException for null NodePath/RID params
(cherry picked from commit 008769aee9)
2019-11-29 16:02:02 +01:00
Rémi Verschelde bf204bdc7c HTML5: Fix support for Emscripten 1.39.1+
A change in upstream Emscripten 1.39.1+ made our buildsystem error
out where it was previously only issuing a warning:
```
[  5%] Linking Static Library ==> main/libmain.javascript.opt.bc
shared:WARNING: Assuming object file output in the absence of `-c`, based on output filename. Please add with `-c` or `-r` to avoid this warning
Ranlib Library         ==> main/libmain.javascript.opt.bc
/opt/emsdk/upstream/bin/llvm-ranlib: error: unable to load 'main/libmain.javascript.opt.bc': file too small to be an archive
```

As advised on emscripten-core/emscripten#9806, we should be using
`emar` here to create the static library and not `emcc`.
This was apparently done to workaround Emscripten issues in the past,
but evidently this is no longer necessary.

The rest of the `env` redefinitions should probably be re-assessed
against the current state of Emscripten.

Fixes #33374.

(cherry picked from commit e9e2a4b044)
2019-11-29 15:58:41 +01:00
Hugo Locurcio 3b82f52f7d Add a tooltip to explain what marking a preset as "runnable" does
(cherry picked from commit bc8236bd39)
2019-11-29 15:58:28 +01:00
willnationsdev 4aeb7b41cb Added more in-depth examples of NodePaths in API docs.
(cherry picked from commit db0082534c)
2019-11-29 15:58:27 +01:00
Tomasz Chabora f161f7aa0b Make sure tile is selected when selecting TileMap
(cherry picked from commit f7476359e0)
2019-11-29 15:58:27 +01:00
Zak 7c67b1c9a2 Fix split/rsplit docs
(cherry picked from commit 79aca6b0c0)
2019-11-29 15:58:27 +01:00
JFonS 3436955c2e Fix broken gizmo interaction when Node is scaled
(cherry picked from commit 1f623c5a2b)
2019-11-29 15:58:27 +01:00
Rémi Verschelde 4b855aa88e
Merge pull request #33692 from JoshLee0915/3.1MonoHeadlesBuildFix
Added server platform to mono config script
2019-11-19 09:49:13 +01:00
Rémi Verschelde bfd993b0ca doc: Sync classref with current source 2019-11-12 21:49:04 +01:00
Rémi Verschelde 261b9d12b9 Update AUTHORS list
New contributors added to AUTHORS:
@kawa-yoiko, @m4gr3d, @QbieShay, @RevoluPowered, @rxlecky

(cherry picked from commit 62a09a2ee3)
2019-11-12 15:46:03 +01:00
Rémi Verschelde 7f6e2c5037
Merge pull request #33569 from akien-mga/3.1
Assorted cherry-picks from the master branch for Godot 3.1.2 [4th batch]
2019-11-12 15:45:30 +01:00
Rémi Verschelde 473e3665ff Bump version to 3.1.2-rc 2019-11-12 14:29:41 +01:00
Marcel Admiraal 7e56ef1484 Fix mismatch between RigidBody(2D) and Body(2D)SW can_sleep defaults.
- Set Body2DSW can_sleep default to true.

- Set Body2D can_sleep default to true.

(cherry picked from commit 42a9ae7a82)
2019-11-12 14:28:14 +01:00
Yuri Roubinsky c1cabb0bf5 Prevent shader crash if name of variable overrides function name
(cherry picked from commit 76324bec8d)
2019-11-12 14:28:14 +01:00
Ignacio Etcheverry 8b4eea3d6d Mono: Don't use project settings for debugger agent on exported games
(cherry picked from commit 5ff4e0516b)
2019-11-12 14:28:13 +01:00
Rémi Verschelde c3aefbd1d2 Android: Bump gradle version to 5.1.1
Matching changes made in #31521 and #31547 but only in the Jetbrains
IDE config.

(cherry picked from commit 1afd77e375)
2019-11-12 13:09:36 +01:00
fogine 6a4653f41c iOS>=11 platform - when handling gestures on screen edges, godot apps should have priority over OS
Solves an issue where iOS would steal InputEventTouch events when near
screen edges in order to handle system wide gestures.
Fixes #31503

(cherry picked from commit e0df9de0cb)
2019-11-12 13:09:36 +01:00
Hugo Locurcio 41d0e46f2d Always use lists for `LIBS` in SCons
This closes #31288.

(cherry picked from commit 05daf5c78b)
2019-11-12 13:09:36 +01:00
Cameron Reikes dd83296155 Add particles icon to CPUParticles
(cherry picked from commit 345fcb96a2)
2019-11-12 13:09:36 +01:00
iwek7 9bf2e54ca5 Fixes color picker in code editor - now it only changes one color
(cherry picked from commit e7b07e1e58)
2019-11-12 13:09:36 +01:00
Yuri Roubinski b5d8154d17 Added link to docs for shader editor
(cherry picked from commit 770ce20ea3)
2019-11-12 13:09:35 +01:00
santouits 7ebfb73a4a Hopefully fix the random crashes with threads
(cherry picked from commit 13efc1bb06)
2019-11-12 13:09:35 +01:00
clayjohn 0e76f2cc95 fix contact shadows appearing when shading casting is off
(cherry picked from commit b1839e5e85)
2019-11-12 13:09:35 +01:00
Bojidar Marinov 794bfe8aaa Fix invalid write in AudioStreamSample::save_to_wav
Fixes #29955

(cherry picked from commit ea949ab873)
2019-11-12 13:09:35 +01:00
SonerSound 20822ee87d Fix inconsistent lighting in GLES2
Issue was possibily being caused by duplicating a light even when that
light was not in the render_light_instances array.

(cherry picked from commit 545bf86d39)
2019-11-12 13:09:35 +01:00
Shiqing c9422b9c23 Fix #29478 multiple modals possibly freeze
(cherry picked from commit c16e764bb2)
2019-11-12 13:09:35 +01:00
Bojidar Marinov e17a57d88a Fix some issue with TileMap's and other nodes' boundaries
Fixes #30348
Addresses a small part of #30012

(cherry picked from commit ebf2a4d553)
2019-11-12 13:09:35 +01:00
zwostein 0f0016bb75 Explicitly set a channel map when initialising the Pulseaudio stream.
(cherry picked from commit 9fa2e07588)
2019-11-12 13:09:35 +01:00
santouits 1c8984c433 Free server id pools directly.
When closing the game, we flush the command queue but after we are pushing the freeing calls of the id pool to the
command queue and they are never being run. Now we free them directly.

(cherry picked from commit 7aa4622222)
2019-11-12 13:09:35 +01:00
Tomasz Chabora 0fc4c3a308 Allow to remove 2D editor limits
(cherry picked from commit c81525ec05)
2019-11-12 13:09:35 +01:00
Marcus Brummer aa08c7c418 Check if autoload nodes are != NULL before deleting them.
This fixes #27854

(cherry picked from commit 0716c59f14)
2019-11-12 13:09:35 +01:00
Gwyneth Lowe 7a9eb587fd Correct typo that broke custom selected font color
Change several font_selected_color to font_color_selected; the actual name of the override

(cherry picked from commit 7142064110)
2019-11-12 13:09:35 +01:00
Rémi Verschelde e7e7d17f6b Display invalid value keys in AnimationTrackEdit
Godot 2.1 and 3.0 had this feature but it was lost in the rewrite
of the animation editor in 3.1.
Drop unused KeyValid icon, since all valid keys now have a custom
type icon.

(cherry picked from commit b3d772ed83)
2019-11-12 13:09:35 +01:00
Rémi Verschelde 229892c40b GDScript: Improve error on Object to Object invalid argument calls
Fixes #27804.

(cherry picked from commit 6750e1b3cd)
2019-11-12 13:09:35 +01:00
Rémi Verschelde cfd9121fa6 glTF: Fix import of animations with INTERPOLATION_LINEAR
Bug found thanks to GCC 8's -Wduplicated-branches.
Slight refactor for readability.

(cherry picked from commit b486f5dde0)
2019-11-12 13:09:35 +01:00
Paulb23 8148732bd1 Fix TextEdit cursor.column having a negative value
(cherry picked from commit 1d55207fd2)
2019-11-12 13:09:35 +01:00
Hein-Pieter van Braam-Stewart 7592b3b9ee Fix a random SSL crash I saw once.
I don't know why this happened, I was debugging another issue. This
should take care of it though.

(cherry picked from commit 64626f682e)
2019-11-12 13:09:35 +01:00
Leonardo Giovanni Scur 19f132b368 Fix pointer position in hidpi-corrected resolutions on web
(cherry picked from commit 31cc1bdb58)
2019-11-12 13:09:35 +01:00
bruvzg 9e2f76f17d [X11] Add window borderless state detection, fix borderless state restoration after exiting fullscreen.
(cherry picked from commit 2a950f3a7c)
2019-11-12 13:09:35 +01:00
Rémi Verschelde e23bde4358 Always pass script path to external editor
Previously you had to set the Exec Flags manually, reading the documentation
to find out what placeholders to use. As most editors should support having
the file path passed as the last argument, we default to doing this if no
custom {file} flag is defined. We also default the Exec Flags to "{file}" and
the placeholder text gives some documentation.

Fixes #29662.

(cherry picked from commit 4a757a2d96)
2019-11-12 13:09:35 +01:00
Toshiwo 656f23fde9 when doing Vector3 slerp it is not necessary to have it normalized.
(cherry picked from commit 3aff645114)
2019-11-12 13:09:35 +01:00
Toshiwo b56fa43090 Fix Vector3 slerp method normalizing cross product
(cherry picked from commit 416a7d06de)
2019-11-12 13:09:35 +01:00
qarmin 1d2aaa447e Fix RichLabelText::_process_line crash
(cherry picked from commit 685451967c)
2019-11-12 13:09:35 +01:00
SamSindt df2a809aae Reversed operator in SortLifetime fixing #29440
(cherry picked from commit 6a23eff748)
2019-11-12 13:09:35 +01:00