Commit Graph

28501 Commits

Author SHA1 Message Date
Maganty Rushyendra
b7d835d9ca Enable zero padding with float specifier for format strings
Godot currently supports zero padding for integers, octals and
hexadecimals when using format strings, but not for floats.

This commit adds support for zero padding for floats, thus ensuring
consistent behavior for all types, and making Godot's format specifiers'
behavior closer to c's `printf()`.

Before: `print("<%07.2f>" % -0.2345)` prints `<  -0.23>`.
Now: `print("<%07.2f>" % -0.2345)` prints `<-000.23>`.
     `print("<%7.2f>" % -0.2345)` prints `<  -0.23>`.
2020-06-03 21:21:27 +08:00
Rémi Verschelde
901832e21c
Merge pull request #39113 from nekomatata/bbcode-image-color
Add color option for img bbcode tag in RichTextLabel to tint images
2020-06-03 13:16:13 +02:00
Rémi Verschelde
7460bc36dd
Merge pull request #39130 from Calinou/dynamicfont-disable-outline-antialiasing
Disable antialiasing on the DynamicFont outline as well when requested
2020-06-03 12:59:15 +02:00
Rémi Verschelde
3a59c24b51
Merge pull request #39150 from dreamsComeTrue/project-manager-grab-focus-on-enter
Grabbing focus on ProjectList after clicking an item.
2020-06-03 11:31:54 +02:00
Rémi Verschelde
9043605ab8
Merge pull request #39201 from Calinou/midi-input-unsupported-error
Print errors when calling MIDI input methods on unsupported platforms
2020-06-03 11:09:10 +02:00
Rémi Verschelde
cec49bd194
Merge pull request #39203 from Xrayez/fix-no-lang-crash
Prevent crash attaching a script with no languages registered
2020-06-03 11:08:35 +02:00
Rémi Verschelde
4749437b23
Merge pull request #39209 from Xrayez/ray-shape-indie
Move `RayShape2D` implementation into its own translation unit
2020-06-03 11:07:32 +02:00
Rémi Verschelde
030a26206f
Merge pull request #39210 from Calinou/directional-light-performance-hint
Add performance hints to the DirectionalLight shadow mode property hint
2020-06-02 11:39:06 +02:00
Rémi Verschelde
6389b68cd8
Merge pull request #39214 from EricEzaM/improve-add-autoload-errors
Improved warning shown when autoload cannot be added.
2020-06-02 11:38:40 +02:00
Rémi Verschelde
82da6aabc0
Merge pull request #39234 from mrushyendra/animationtree_documentation
Clarify usage of AnimationPlayer with AnimationTree and fill empty doc descriptions
2020-06-02 11:37:21 +02:00
lawnjelly
61b3eb3b28 Light2D shadow mask construction fix
When using the default setting (layer 1 set only) nothing is stored in the tscn file for a Light2D, hence it relies on the value in the constructor.

The problem is the constructed value is 1 in Light2D, and -1 in RasterizerCanvas::Light. -1 results in all bits being set so all occluders are shown, rather than just those in layer 1.

This PR changes Rasterizer::Canvas constructor to set to 1. An alternative is to have -1 as the value for layer 1 throughout.

(cherry picked from commit bf54fa5a62)
2020-06-02 10:37:01 +02:00
Rémi Verschelde
07025e607d
Merge pull request #39227 from nekomatata/android-export-template-errors
Fix inconsistent error messages with Android custom export templates
2020-06-02 10:07:35 +02:00
Maganty Rushyendra
0451248ff1 Clarify usage of AnimationPlayer with AnimationTree and fill in empty method descriptions
Add clarification to docs to explain that when an `AnimationPlayer`
object is paired with an `AnimationTree`, several properties and
methods exposed by the `AnimationPlayer` class may not work as expected.
The issues occur because an `AnimationTree` runs independently, and
uses its member `AnimationPlayer* player` primarily for its
`Map<StringName, AnimationData> animation_set`.

Added descriptions for `root_motion_track` and `get_root_motion_transform`.
2020-06-02 12:19:33 +08:00
PouleyKetchoupp
be22a1f9bc Fix inconsistent error messages with Android custom export templates 2020-06-01 23:13:31 +02:00
Rémi Verschelde
34ef9a5120
Merge pull request #39172 from madmiraal/fix-39157
Update OSX joypad GUID to SDL uid conversion.
2020-06-01 15:08:21 +02:00
Eric M
58caa2c453 Improved warning shown when autoload cannot be added. 2020-06-01 21:09:30 +10:00
Hugo Locurcio
b46756c723
Add performance hints to the DirectionalLight shadow mode property hint
This also clarifies some parts in the DirectionalLight documentation.
2020-06-01 01:20:35 +02:00
Andrii Doroshenko (Xrayez)
9bb070b030 Move RayShape2D implementation into its own translation unit 2020-06-01 01:52:07 +03:00
Andrii Doroshenko (Xrayez)
52f3cfca6f Prevent crash attaching a script with no languages registered 2020-05-31 21:01:42 +03:00
Hugo Locurcio
9c0d214776
Print errors when calling MIDI input methods on unsupported platforms
This partially addresses #32065.
2020-05-31 19:10:27 +02:00
Dominik 'dreamsComeTrue' Jasiński
1ec8f59397 Grabbing focus on ProjectList after clicking an item.
Fixes: #39012
2020-05-30 21:19:50 +02:00
PouleyKetchoupp
7b7d4ef079 Add color option for img bbcode tag in RichTextLabel to tint images 2020-05-30 19:13:16 +02:00
Marcel Admiraal
d04cbbd76b Update OSX GUID to SDL uid conversion.
Co-authored-by: John Wakley <johncwakley@users.noreply.github.com>
2020-05-30 17:38:39 +01:00
Rémi Verschelde
a8787d1ae5
Merge pull request #39159 from NutmegStudio/fix-mono-templates
Fix building mono release templates
2020-05-30 17:10:35 +02:00
Rémi Verschelde
20a6fcd3ea
Merge pull request #39163 from madmiraal/dinput-nullptr-checks
Add dinput nullptr checks.
2020-05-30 15:54:29 +02:00
Marcel Admiraal
bc49d34123 Add dinput nullptr checks. 2020-05-30 13:59:30 +01:00
Rémi Verschelde
240032ade7
Merge pull request #39168 from madmiraal/fix-javascript-ci
Activate emscripten with no-embedded option.
2020-05-30 14:39:04 +02:00
Marcel Admiraal
43371c9fbe Activate emscripten with no-embedded option. 2020-05-30 12:51:06 +01:00
NutmegStudio
a77f633161 Fixes building mono release templates 2020-05-30 12:21:24 +07:00
George Marques
0f1da72492
Actually set GDScript static reference 2020-05-29 11:01:48 -03:00
Rémi Verschelde
ef5910eea5
Merge pull request #39143 from madmiraal/fix-39116
Do not probe joypads if DirectInput cannot be initialized.
2020-05-29 13:44:53 +02:00
Marcel Admiraal
97a529b1d8 Do not probe joypads if DirectInput cannot be initialized. 2020-05-29 12:07:07 +01:00
Rémi Verschelde
d19257eb2b
Merge pull request #39010 from gvekan/fix-documentation
Fix ProjectSettings.save_custom documentation
2020-05-29 12:11:19 +02:00
Rémi Verschelde
e67339eeca
Merge pull request #39085 from madmiraal/fix-39059
Correct Bullet's default Area angular damp value.
2020-05-29 12:10:47 +02:00
Rémi Verschelde
1620669f4e
Merge pull request #39051 from Xrayez/geometry-split
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
2020-05-29 12:10:37 +02:00
Rémi Verschelde
6aa399be59
Merge pull request #39137 from Xrayez/custom-modules-profile
SCons: Allow to read `custom_modules` option via a file
2020-05-29 11:42:53 +02:00
Andrii Doroshenko (Xrayez)
6304d16915 SCons: Allow to read custom_modules option via a file
The `custom_modules` option was only read via the command line
by fetching `ARGUMENTS` dictionary directly.

Instead, the option's value can now be read via any existing
configuration files (`custom.py`) as well as command line, while also
updating the environment.
2020-05-29 12:11:53 +03:00
Rémi Verschelde
4448aca3a6
Merge pull request #39142 from akien-mga/all-your-bugs-are-belong-to-us
GitHub: Remove feature request placeholder template
2020-05-29 10:53:33 +02:00
Rémi Verschelde
a7214a4b9b GitHub: Remove feature request placeholder template
We now have a proper link to godotengine/godot-proposals thanks to
#39019 and #39132, so that hacky 'Don't open issues here' template
is no longer needed.
2020-05-29 10:21:01 +02:00
Rémi Verschelde
f65787a63e
Merge pull request #39129 from Xrayez/exit-here
SCons: Prefer `Exit()` method over `sys.exit()`
2020-05-29 09:39:20 +02:00
Rémi Verschelde
21686b89da
Merge pull request #39132 from aaronfranke/configdotyml
Fix GitHub issue template config not working
2020-05-29 09:38:37 +02:00
Rémi Verschelde
d2be503ebb
Merge pull request #39122 from Calinou/travis-xcode-11.5
Travis CI: Use the Xcode 11.5 image for macOS builds
2020-05-28 23:01:36 +02:00
Aaron Franke
389227bff1
Fix GitHub issue template config not working
It was in the wrong folder
2020-05-28 16:38:03 -04:00
Hugo Locurcio
2919fc7317
Disable antialiasing on the DynamicFont outline as well when requested
This partially addresses
https://github.com/godotengine/godot-proposals/issues/943.
2020-05-28 22:30:38 +02:00
Andrii Doroshenko (Xrayez)
5afe8cd782 SCons: Prefer Exit() method over sys.exit()
Sconscript provides it's own `Exit()` method which is currently
an alias for `sys.exit()` internally, with the only difference that if
no exit code is specified, it defaults to 0.

This encourages the usage of SCons-implemented methods like
`Glob()` over `glob.glob()`, which may overcome limitations of the
built-in Python features in the future.
2020-05-28 22:54:37 +03:00
Rémi Verschelde
105bef19ff
Merge pull request #39125 from Xrayez/py-modules-order-4.0
SCons: use `OrderedDict` to ensure insertion order of modules
2020-05-28 20:55:56 +02:00
Andrii Doroshenko (Xrayez)
17938fd547 SCons: use OrderedDict to ensure insertion order of modules
The insertion order for dictionaries is only a language feature for
Python 3.6/3.7+ implementations, and not prior to that.

This ensures that the engine won't be rebuilt if the order of detected
modules changes in any way, as the `OrderedDict` should guarantee
inerstion order.
2020-05-28 18:17:49 +03:00
Rémi Verschelde
4eef88b2c1
Merge pull request #39120 from volzhs/godotpayment-consume-master
Add missing consumePurchase plugin method for GodotPayment
2020-05-28 16:38:16 +02:00
Hugo Locurcio
4fec548065 Travis CI: Use the Xcode 11.5 image for macOS builds 2020-05-28 15:51:22 +02:00
volzhs
c227733bd8 Add missing consumePurchase plugin method for GodotPayment 2020-05-28 22:48:48 +09:00