Commit graph

6523 commits

Author SHA1 Message Date
kleonc 59f69e2b04
TabContainer Fix drawing current tab when it's disabled
(cherry picked from commit 8004678d57)
2021-09-29 08:57:26 +02:00
Haoyu Qiu 1722d0cc12
Fix LineEdit undo crash
Make sure all related member variables are initialized before creating
the first undo state.

(cherry picked from commit eab1e228c8)
2021-09-29 08:57:26 +02:00
laws65 8d0b878367
Prevent being able to set bone's parent as itself
(cherry picked from commit d1bacb53fd)
2021-09-29 08:57:26 +02:00
gyroninja 96d418cb94
Fail at instantiating if the root node is instantiated
(cherry picked from commit f400c9239e)
2021-09-29 08:57:26 +02:00
LeaoLuciano 138e995177
LinkButton's text now is automatically translated
(cherry picked from commit 9cecabb186)
2021-09-29 08:57:25 +02:00
Hugo Locurcio d8138c6f4a
Remove deprecation warning for BaseButton.enabled_focus_mode
There were too many instances of false positives that are difficult
to fix. The note in the class reference has been clarified instead.

(cherry picked from commit 43da1790c8)
2021-09-29 08:57:24 +02:00
Tom Coxon a2f3decb88
Prevent shaders from generating code before the constructor finishes.
Fixes #43733: "creating SpatialMaterial in a separate thread creates invalid
shaders (temporarily)."

The bug occurred because various setters called in materials' constructors add
materials to queues that are processed on the main thread. This means that
when the materials are created in another thread, they can be processed on the
main thread before the constructor has finished.

The fix adds a flag to affected materials that prevents them from being added
to the queue until their constructors have finished initialising all the
members.

(cherry picked from commit 9e9bac1549)
2021-09-21 13:53:31 +02:00
Marcus Brummer 0d88a4fded
Initialize n_warnings_dropped to 0 in ScriptDebuggerRemote
(cherry picked from commit d3866d78f2)
2021-09-16 16:00:48 +02:00
Raul Santos f38abd593d
Fix Path3D initial forward calculation
(cherry picked from commit 102ec1042b)
2021-08-13 12:17:15 +02:00
Raul Santos 32bbe644ca
Fix forward calculation in PathFollow3D for the position at the end of the curve
(cherry picked from commit e23f6a5bba)
2021-08-13 12:17:15 +02:00
JestemStefan 86466737ff
Added minimum scale for node 2D
(cherry picked from commit b7817c7b59)
2021-08-13 12:17:15 +02:00
Fredia Huya-Kouadio d4eecf4535
Update external texture flag configuration.
(cherry picked from commit 2cc1cdc27b)
2021-08-13 10:41:19 +02:00
clayjohn 279af47ef9
Allow unclamped colors in Sprite3D
(cherry picked from commit f7dbcf95e1)
2021-08-13 10:39:03 +02:00
kleonc 5acfb5127c
TileMap Fix trying to get data for tile not existing in attached TileSet
(cherry picked from commit 2eeed26d67)
2021-08-13 10:36:57 +02:00
kleonc 17fcd76a74
TabContainer Fix moving dropped tab at incorrect child index
(cherry picked from commit a5a4532378)
2021-08-05 16:38:29 +02:00
Rémi Verschelde 7be11742b5
VariantParser: Fix uninitialized ResourceParser funcs
They could cause a segfault when parsing values with ID "Resource"
as apparently we never set a valid `func` for it.

Fixes crash part of #42115.

(cherry picked from commit f3aaa713d9)
2021-08-03 09:25:48 +02:00
Haoyu Qiu 4641e6b170
Add check to internal methods to prevent crash
(cherry picked from commit 448295cd51)
2021-07-27 12:05:59 +02:00
Haoyu Qiu 385b88fced
Fix selection of spaced atlas tile when using priority
(cherry picked from commit 2131b3c61c)
2021-07-26 15:39:14 +02:00
Aaron Franke 752c1451db
[3.x] Allow reading shaders from .gdshader files
(cherry picked from commit 7dc2edc430)
2021-07-20 12:00:16 +02:00
Hugo Locurcio 7abe93ecf2
Tweak the GradientTexture property hint to follow CurveTexture
This prevents setting too large values and crashing the editor.

Very low values are also no longer allowed since they are generally
not detailed enough to represent complex gradients, leading to confusion.

(cherry picked from commit 2c7813385d)
2021-07-13 12:15:10 +02:00
voxelv 85fb2ea8b4
Avoid using a nullptr root in Tree._range_click_timeout().
Fixes #46648

(cherry picked from commit f17f3f8830)
2021-07-13 12:14:44 +02:00
Hugo Locurcio 747450a777
Fix flipped binormal in SpatialMaterial triplanar mapping
This made normal maps on triplanar materials use an inverted Y direction
compared to non-triplanar materials.

(cherry picked from commit 11033be5c6)
2021-06-29 14:02:57 +02:00
Yuri Sizov e1bc053496
Make relationship lines draw on top of TreeItems
(cherry picked from commit b91e3237c6)
2021-06-29 13:54:15 +02:00
Hugo Locurcio 5359b1dcc1
Tweak CylinderMesh rings property hint to allow a value of 0
A value of 0 rings is valid and results in a non-subdivided cylinder.

Compared to the previous lowest allowed value (1), a value of 0 halves
the triangle count in any cylinder.

(cherry picked from commit a82c90ca55)
2021-06-29 13:52:05 +02:00
PouleyKetchoupp 7a8020ea67
Fix export var override in PackedScene at runtime
Regression fix: update_exports is tool only and should be used only in
the editor, otherwise it can cause export variable overrides from
instances to be discarded in favor of the parent's value.

(cherry picked from commit f1587c8a7d)
2021-06-29 13:51:45 +02:00
PouleyKetchoupp 0938958111
Expose collider RID in 2D/3D kinematic collision
Can be useful to access the colliding body information for bodies
created with the physics server directly.

(cherry picked from commit a146e79758)
2021-06-29 13:48:37 +02:00
amor cefef7db05
Fixed inspector not updating anchor
(cherry picked from commit dacc726faf)
2021-06-29 13:48:14 +02:00
kleonc e8759f218d
TextureButton Update min size on any texture change
(cherry picked from commit 6c3c269f24)
2021-06-17 13:20:54 +02:00
Hugo Locurcio 0cb19bc69c
Allow higher and lower maximum zoom values in GraphEdit
Low zoom values result in unreadable text, but it can still be
useful for previewing purposes.

Eventually, characters could be replaced by rectangles at very low
zoom levels to improve the visual appearance.

(cherry picked from commit 74c584472c)
2021-06-17 13:20:23 +02:00
Haoyu Qiu 65e14eb8de
Fix RichTextLabel auto-wrapping on CJK
(cherry picked from commit 3a591aaeeb)
2021-06-17 13:16:59 +02:00
azagaya 1114c248b1 Fix vertical slider grabber_area height calculation 2021-06-14 15:51:12 -03:00
Hugo Locurcio c45ce8b6bb
Uncap the range for gravity and change the slider hints
There's not really a reason to cap the gravity amount, and we can also
give better hints for the range (for 3D, ±32 is much more sensible
than ±1024).

(cherry picked from commit e0facdaf61)
2021-06-03 12:42:30 +02:00
Haoyu Qiu 41206078dd
Check cache_parent_physical_bone when rebuilding parent cache
(cherry picked from commit 96fe795bdb)
2021-06-01 12:56:25 +02:00
Lynx 2ce5515762
Fix not updating fonts when parent theme changes
Reparsing the bbcode content when we receieve a theme changed
notification just like we already do in ENTER_TREE.

Resolves #49089

(cherry picked from commit 1b7c2a1428)
2021-05-31 12:41:38 +02:00
PouleyKetchoupp b9492b2659
Fix logic for showing tilemap debug collision
In editor: only when show_collision property is enabled
In game: only when 'Visible collision shapes' is enabled

(cherry picked from commit 114da550ec)
2021-05-31 11:34:00 +02:00
TwistedTwigleg 59745c9286
SkeletonIK: Fixed issue where bones become detached if multiple SkeletonIK nodes are used
(cherry picked from commit ec7b72e81d)
2021-05-31 11:28:31 +02:00
Fabio Alessandrelli d5089c4e4e
[Net] Implement String::parse_url for parsing URLs.
Splits the URL into (scheme, host, port, path).
Supports both literal IPv4 and IPv6.
Strip credentials when present (e.g. http://user:pass@example.com/).

Use that function in both HTTPRequest and WebSocketClient.

(cherry picked from commit 3bb40669d5)
2021-05-31 11:14:34 +02:00
trollodel 5b8b3f645e
Fix crash on debug shapes update if CollisionObject is not in tree
Also fix ConcavePolygonShape not emitting the changed signal

(cherry picked from commit 7043d6d1c6)
2021-05-22 19:12:39 +02:00
Haoyu Qiu e14d5062f7
Fix crash when using get_available_chars with invalid DynamicFontData
(cherry picked from commit bec1dcb6f6)
2021-05-22 19:09:11 +02:00
Hugo Locurcio 418e044789
Remove high radiance sizes from the editor due to issues on specific GPUs
These values can still be set by code, but are no longer presented in
the editor.

(cherry picked from commit 8d9cef3726)
2021-05-22 19:08:35 +02:00
Rémi Verschelde 337ef03958
Fix typos with codespell
Using codespell 2.0.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```

(cherry picked from commit eb78f80f03)
2021-05-20 14:36:39 +02:00
Haoyu Qiu f89120b895
Fix ragdoll simulation when parent was readded to scene
(cherry picked from commit a701927d89)
2021-05-19 19:45:35 +02:00
Sonoracpp d006f50db3
Disable GIProbe emission when disabled on a material
Fixes https://github.com/godotengine/godot/issues/48230

(cherry picked from commit 0b723358bb)
2021-05-18 11:58:45 +02:00
kleonc 5445d04fbe
Fix accessing scene tree without checking: MeshInstance3D::create_debug_tangents, GIProbe::bake
(cherry picked from commit ef589a7cd3)
2021-05-17 13:13:24 +02:00
John Wigg 4601328542
Fix normals of PrismMesh
(cherry picked from commit c8e402324e)
2021-05-17 13:13:02 +02:00
Haoyu Qiu a2b4093a50
Fix Tree::get_column_at_position crash
(cherry picked from commit c8efcf81d2)
2021-05-17 13:12:56 +02:00
Haoyu Qiu c804baf6a9
Fixes display of programmatically created value in remote inspector
(cherry picked from commit e3b7b861b0)
2021-05-17 13:02:57 +02:00
Brennen Green 77e3b51627
Manually unpacked normal mapping to fix issue with refraction being offset rather than distorted.
(cherry picked from commit 31f2d946ad)
2021-05-14 11:36:17 +02:00
Eoin O'Neill 70a2b746a3
Attempt to fix rich text label effects processing even when
the node is invisible.

ISSUE:47687
(cherry picked from commit c4f976b38b)
2021-05-14 10:18:55 +02:00
trollodel 140cf0f2cb
Create CollisionObject debug shapes using VS
(cherry picked from commit 60ee8c9639)
2021-05-09 18:58:33 +02:00