Commit graph

4695 commits

Author SHA1 Message Date
bruvzg dce7311aa5 Fix third and fourth level (AltGr / ⌥ modifier) keys input in LineEdit.
(cherry picked from commit 63d8dc0920)
2019-11-12 13:09:35 +01:00
Bojidar Marinov 22abeff592 Escape node names when saving to .tscn
Fixes #29401

(cherry picked from commit cc004485bc)
2019-11-12 13:09:35 +01:00
Rémi Verschelde 4d6517fad3 Bind missing FLAG_DISABLE_Z enum value in ParticlesMaterial
Fixes #29419.

(cherry picked from commit a3462c97ad)
2019-11-12 11:51:52 +01:00
Tomasz Chabora e66122e0bf Fixed get_item_at_position being weird
(cherry picked from commit 59f403de0b)
2019-11-12 11:47:55 +01:00
Rémi Verschelde f11588e5a5 Fix wrong property binding for NavigationPolygon::vertices
(cherry picked from commit 586539d867)
2019-11-12 11:45:29 +01:00
Rémi Verschelde 9591e2950a Node::duplicate: Don't set name if original node is nameless
In practice this only happens when duplicating a node which is not in
the scene tree yet, as nameless nodes get assigned a generated name
when added to the scene tree.

Fixes #27319.

(cherry picked from commit 0823ae7ae4)
2019-11-12 11:45:10 +01:00
Tomasz Chabora 7431d3c3c0 Don't modulate canvas on invisible color change
(cherry picked from commit 5e9400b2e3)
2019-11-12 11:42:25 +01:00
Pedro J. Estébanez aacefcb7dc Fix 2D bones ignored by onion skinning
Fixes #27819.

(cherry picked from commit 88153fbb61)
2019-11-12 11:41:51 +01:00
Guilherme Felipe 14587802f9 [StateMachine] Fix error message for travel method
(cherry picked from commit 4de6c94eb0)
2019-11-12 11:38:14 +01:00
Paulb23 909a1cced8 Fix text_edit drawing incorrect chars when syntax highlighting enabled
(cherry picked from commit a8a0392c12)
2019-11-12 11:26:14 +01:00
Bojidar Marinov d79be7ec33 Allow or_greater for most properties of NavMesh
Closes #28624

(cherry picked from commit 68bee3d9a2)
2019-11-12 11:23:47 +01:00
JFonS 49613428f1 Fixes to ClippedCamera
This work has been kindly sponsored by IMVU.

(cherry picked from commit 9e97bac0cf)
2019-11-12 11:22:14 +01:00
James Buck 7577dd804a Cancel tooltip when hiding the node it belongs to
(cherry picked from commit bc7863775c)
2019-11-12 11:12:33 +01:00
Jared 66c1b8adc4 Light2D height range expanded to -2048 to 2048.
(cherry picked from commit 307bc16523)
2019-11-12 11:07:41 +01:00
Aaron Winter 794341e0b5 added negative X and negative Y offset to TileMap
clang-format

added negative X and negative Y offset to TileMap

(cherry picked from commit 63e0fd7675)
2019-11-12 11:07:19 +01:00
PouleyKetchoupp 9360b23544 Fixed crash when pressing down key on empty Tree
Fixes #33554

(cherry picked from commit 47a4ca0022)
2019-11-12 08:41:00 +01:00
PouleyKetchoupp 8901ff5e58 Update transforms after timers update to make sure changes are made before render
Fixes #29952

(cherry picked from commit c6b82f108a)
2019-11-11 13:29:22 +01:00
Cameron Reikes 15be90bbf3 Same method when redrawing as when theme changed
(cherry picked from commit c123a8c4f5)
2019-11-08 15:48:19 +01:00
PouleyKetchoupp bbec80ca8a Fixed AnimationTreeStateMachine transition priority (last transition was always chosen instead of least cost)
Fixes #31132

(cherry picked from commit aaad50e4d9)
2019-11-08 15:48:19 +01:00
PouleyKetchoupp cdd63b8d12 Fixed error in ParallaxLayer when set_mirroring is called before entering the tree
Fixes #31300

(cherry picked from commit 927a7916f6)
2019-11-08 15:48:19 +01:00
ternvein 82f65f5b92 FIX: Tabs text translation
(cherry picked from commit 118940e7c5)
2019-11-08 15:48:18 +01:00
Michael Alexsander Silva Dias 5d1697b78f Fix 'TabContainer' not updating its tab titles when locale is changed
(cherry picked from commit a242bf464a)
2019-11-08 15:48:18 +01:00
ternvein 605dbffe93 FIX: WindowDialog title translation
(cherry picked from commit efc8314516)
2019-11-08 15:48:18 +01:00
Michael Alexsander Silva Dias f915d69e05 Update WindowDialog title when translation changes
(cherry picked from commit 06a890f7a3)
2019-11-08 15:48:18 +01:00
Rémi Verschelde b70788b4ad PopupMenu: Fix missing text/xl_text when using add_shortcut
Use macros to ensure that `text`, `xl_text` and `id` are always set
using the same logic.

Fixes #25519.

Also fixes up #26914 when `p_id == -1` handling was only added for a
couple methods instead of all of them.

(cherry picked from commit 58dd5d0c78)
2019-11-08 15:48:18 +01:00
fjordyo 5cdcf06ec1 Fix the edges of the mesh vertex
(cherry picked from commit 4c28053ead)
2019-11-08 15:48:18 +01:00
Robin Hübner 80752cca50 fix otherwise unitialized variables, found in #31694
(cherry picked from commit 4817595c0e)
2019-11-08 15:48:18 +01:00
clayjohn 61ef8e98ba toggle CPUParticles2D visibility when redrawing
(cherry picked from commit cb4d145c22)
2019-09-27 12:53:53 +02:00
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
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
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
AnthonyYoManz 41f6a800bd Fix Crash On Close When 3D Is Disabled
(cherry picked from commit fc65cc64b9)
2019-09-26 14:44:20 +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
Chaosus 9953b2ab43 Disallow loopback connection in visual scripts and visual shaders
(cherry picked from commit 21ca9f6c7c)
2019-09-24 09:00:46 +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
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
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
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
Guilherme Felipe 21d3ad2e52 Continuation of #27562
[AnimationTree] Fix scale interpolation

(cherry picked from commit dbda5b6700)
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
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
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
Daniel Rakos a670c66457 Fix texture resource reload bug
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:

First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).

Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.

To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.

(cherry picked from commit e34eb5c26c)
2019-07-17 09:49:34 +02:00
Juan Linietsky c7293e9b30 Properly deal with clicking on audio stream change or stop (AudioStreamPlayer only)
(cherry picked from commit 040b59c010)
2019-07-03 13:19:40 +02:00
Juan Linietsky 89402e38c7 Revert "Fix AudioStreams::stop possibly causing a small noise"
(cherry picked from commit 60eec47077)
2019-07-03 13:19:40 +02:00