Nick Swoboda
4ec6513c42
Improve error messages related to failing to open files
...
(cherry picked from commit bf8f763524
)
2022-01-06 00:21:32 +01:00
Hugo Locurcio
299d277c9c
Warn when using GPU-based particles on macOS due to low performance
...
On macOS, Particles rendering is much slower than CPUParticles
due to transform feedback being implemented on the CPU instead
of the GPU.
2022-01-06 00:10:32 +01:00
Rémi Verschelde
91c5a336e8
Merge pull request #55718 from bruvzg/oversampling_override
2022-01-06 00:07:48 +01:00
Jake Young
09bc9eb101
Backport NavigationServer with RVO2 to 3.x
...
Change the entire navigation system.
Remove editor prefix from nav mesh generator class. It is now used for baking
at runtime as well.
Navigation supports obstacle avoidance now with the RVO2 library.
Nav system will also automatically link all nav meshes together to form one
overall complete nav map.
2022-01-05 16:00:56 +01:00
Pedro J. Estébanez
571e05d3d3
Clear only owners that are no longer in the same tree
...
(cherry picked from commit 2db9397fb9
)
2022-01-05 15:51:18 +01:00
Rémi Verschelde
e22f7ea3c0
Merge pull request #55514 from RandomShaper/better_node_delete_3.x
2022-01-05 10:25:33 +01:00
Rémi Verschelde
da7663189a
Merge pull request #56414 from eazrael/3.x-tree-fix-selectionmode-row
...
Tree: Fix de-select when selection mode set to SELECT_ROW (3.x)
2022-01-05 09:26:20 +01:00
Rémi Verschelde
25369acff9
Merge pull request #51708 from Calinou/viewport-add-32bpc-color-depth
2022-01-04 14:30:24 +01:00
jmb462
4de860c6d5
Fix PopupMenu bad item offset with custom vseparation
2022-01-03 22:15:59 +01:00
Yuri Roubinsky
5b0fe7880e
[3.x] Add hints and default values to the uniform nodes in visual shader
2022-01-03 22:59:10 +03:00
Christoph Nelles
72133365f4
Tree: Fix de-select when selection mode set to SELECT_ROW
...
It no longer de-selects an already selected row if the SELECT_MODE is
set to SELECT_ROW. Fixes #36047
Update scene/gui/tree.cpp
Co-authored-by: Michael Alexsander <michaelalexsander@protonmail.com>
2022-01-02 00:31:46 +00:00
vitika9
e88f387958
Added check for SceneTree being null
...
(cherry picked from commit 51501dadcc
)
2021-12-21 11:27:33 +01:00
Pedro J. Estébanez
4f38a9e4d6
Stop asuming a default value of NIL means there's no default
...
(cherry picked from commit 18663aa305
)
2021-12-21 11:27:14 +01:00
Zae
23aaf78391
[3.x]Fix BaseButton's localization for tooltip text with shortcut
2021-12-21 03:44:16 +08:00
Haoyu Qiu
2bff705e13
Improve axis awareness and visibility for Position2D and Position3D
...
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-12-18 12:53:24 +08:00
Haoyu Qiu
1cada6bfa9
Add proxy support for HTTPClient
and the editor
...
* Adds proxy related methods for `HTTPClient` and `HTTPRequest`
* Adds `network/http_proxy/{host,port}` editor settings
* Makes AssetLib and Export Template Manager proxy aware
2021-12-16 19:38:53 +08:00
Rémi Verschelde
4d709b71de
Merge pull request #55690 from akien-mga/3.x-scene-tree-doc-font-oversampling
2021-12-14 17:33:00 +01:00
Steve Szilágyi
285b816f1f
VehicleWheel can now return the surface it's colliding with.
...
Fixed PR issues.
Update vehicle_body_3d.cpp
Apply suggestions from code review
Co-authored-by: Camille Mohr-Daurat <pouleyKetchoup@gmail.com>
(cherry picked from commit 0c352407d8
)
2021-12-10 19:01:06 +01:00
Anilforextra
9351bc4b1c
Fixed awkwardly named AnimatedSprite Setters.
...
(cherry picked from commit 0c06ed98fb
)
2021-12-10 17:57:39 +01:00
Raffaele Picca
6dd593d579
Random initial color for all Particle Nodes
2021-12-10 16:35:25 +01:00
Rémi Verschelde
e82091db51
Merge pull request #55782 from RPicster/3.x-gpu-particle-vis-rect
2021-12-10 13:50:45 +01:00
Raffaele Picca
995408b492
GPU Particles (2D + 3D) visibility rect / gizmo optimization for reduced visual clutter
2021-12-10 11:22:44 +01:00
Rémi Verschelde
76ab82526a
Merge pull request #54650 from tinmanjuggernaut/fix_rid
2021-12-09 22:00:24 +01:00
Raffaele Picca
28a6d32971
Fixed texture animation speed when using random lifetime
2021-12-09 19:59:24 +01:00
Cory Petkovsek
3d20218dae
Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
2021-12-10 02:31:30 +08:00
bruvzg
eb54676e0f
Add DynamicFontData oversampling override property.
2021-12-08 11:34:56 +02:00
Rémi Verschelde
35b79284cc
SceneTree: Document font oversampling, remove warnings
2021-12-07 14:15:09 +01:00
Rémi Verschelde
98e0ebfc4b
Merge pull request #55480 from univeous/fix-joystick-focus-3.x
2021-12-07 12:15:42 +01:00
Rémi Verschelde
7c82db2cd4
Merge pull request #55607 from RPicster/3.x-particle-double-seed-use-fix
2021-12-07 12:01:08 +01:00
kobewi
9776241ce6
Bind column_titles_visible as property
...
(cherry picked from commit 7f6ab0006d
)
2021-12-06 16:52:00 +01:00
lawnjelly
3d981b8265
Add option to use handles to RID
...
Adds an option to compile an alternative implementation for RIDs, which allows checks for erroneous usage patterns as well as providing leak tests.
2021-12-06 14:43:34 +00:00
Raffaele Picca
20568b9768
Fix for double use of seed in random Particle shader variables.
2021-12-03 23:31:55 +01:00
Rémi Verschelde
ade0e700f1
Merge pull request #55591 from RPicster/3.x-particlemat-ring-axis-fix
...
Fix Ring-Axis parameter being always visible
2021-12-03 21:38:16 +01:00
Raffaele Picca
2f69caaff3
Fix Ring-Axis parameter being always visible
2021-12-03 21:16:32 +01:00
Rémi Verschelde
cd4a08ada3
Viewport: Fixup dragging code after a0fb66d
...
The check was removed by mistake while cherry-picking.
2021-12-03 13:19:59 +01:00
Haoyu Qiu
a0fb66d802
Fix mouse cursor and notification for force dragging
...
(cherry picked from commit 86a47c6540
)
2021-12-03 12:51:15 +01:00
Rémi Verschelde
d5b22e614e
Merge pull request #55484 from pycbouh/theme-load-and-order-3.x
2021-12-02 17:20:31 +01:00
Rémi Verschelde
97bbdde9e5
Merge pull request #55364 from Calinou/reflectionprobe-tweak-property-hint-3.x
2021-12-02 10:09:01 +01:00
Pedro J. Estébanez
b4998e7e1b
Rationalize Node removals and deletions
...
- Regarding preservation of owner, `free()` and `remove_child()` now behave the same: owner is kept during `tree_exiting` signal and `null` during `tree_exited`.
- Superfluous code to handle cancelation of ownership is removed.
2021-12-01 14:43:36 +01:00
Univeous
cf788ae684
Fix UI navigation with joysticks
2021-12-01 00:19:17 +08:00
Yuri Sizov
33fb44223f
Make default/project theme wait for modules before initializing
2021-11-30 18:59:32 +03:00
Rémi Verschelde
3be0f85e91
Merge pull request #54377 from lawnjelly/faster_editor_lines
2021-11-30 13:30:02 +01:00
Rémi Verschelde
5e9853b038
Merge pull request #55453 from ator-dev/block-hidden-tab-close-3.x
...
Prevent hidden tab close buttons from intercepting input [3.x]
2021-11-30 00:15:55 +01:00
ator-dev
a8977006fd
Prevent hidden tab close buttons from intercepting input [3.x]
2021-11-29 20:26:19 +00:00
Rémi Verschelde
964c6ec4d9
Merge pull request #55447 from KoBeWi/show_tooltips_only_when_node_is_not_paused_and_when_it's_paused_don't_show_three_dot_x_edition
2021-11-29 17:01:41 +01:00
kobewi
fe28e823c5
Don't show tooltips for paused controls
2021-11-29 16:44:32 +01:00
Red Headphone
aa95a4a436
progress_offset now added to reference cross draw function
...
(cherry picked from commit 8a6c6d5329
)
2021-11-29 16:43:25 +01:00
Eric
850ee9d4a2
Fix condition on 'jump to limits' logic
...
This is a fix for: #54856
(cherry picked from commit 7257bb6ad0
)
2021-11-29 16:14:04 +01:00
floppyhammer
689312267a
Fix nine patch of circular TextureProgressBar
...
(cherry picked from commit f9b1ce0922
)
2021-11-29 16:11:21 +01:00
Rémi Verschelde
df38da84b4
Merge pull request #55440 from bruvzg/fix_cell_width
2021-11-29 15:04:22 +01:00
Rémi Verschelde
eb5c2e1067
Merge pull request #55439 from KoBeWi/random_programming_ftw
2021-11-29 14:55:45 +01:00
bruvzg
33b26e5cdc
Fix RTL min/max line width calculation.
2021-11-29 15:36:42 +02:00
kobewi
820f7c9d15
Fix right alignment in RichTextLabel
2021-11-29 14:33:12 +01:00
Yuri Sizov
ba747e2a26
Add methods to get position from column and line in TextEdit
2021-11-29 00:06:16 +03:00
Hugo Locurcio
19de92636d
Tweak ReflectionProbe update mode property hint to mention performance
...
This is similar to the property hint used in `master`.
2021-11-26 19:20:26 +01:00
Rémi Verschelde
c3606a87fe
Merge pull request #55224 from KoBeWi/ΔV_even_when_paused
2021-11-22 14:09:56 +01:00
Rémi Verschelde
dc5cee74bd
Merge pull request #55197 from timothyqiu/bookmark-gutter
2021-11-22 13:00:42 +01:00
kobewi
5b55599211
Show tooltips even when paused or time_scale is 0
2021-11-22 12:54:05 +01:00
Rémi Verschelde
86fd7da7a3
Merge pull request #54899 from clayjohn/MultiMesh-update
2021-11-22 08:30:49 +01:00
clayjohn
b54d4a93be
Update CanvasItem when MultiMesh instance transform changes
2021-11-21 12:27:22 -08:00
Haoyu Qiu
eb6f74855f
Allow toggle TextEdit bookmark gutter
2021-11-21 21:34:30 +08:00
Marcel Admiraal
4d3690eba5
Remove unimplemented methods
2021-11-18 12:47:36 +00:00
Anton Christoffersson
62db47a7fb
Fixed crash in ScrollContainer
_notification
...
(cherry picked from commit ee81979f90
)
2021-11-18 12:22:26 +01:00
BrunoSXS
8fd0fe3d20
Fixes a game crash caused by instantiating Camera2D and sending a notification from it before adding it to the tree.
...
(cherry picked from commit eb2deabffe
)
2021-11-18 12:21:28 +01:00
Pedro J. Estébanez
0ebbc5b07c
Fix crash when loading scene instance after node vanished from parent
...
(cherry picked from commit 78ffc2a987
)
2021-11-17 15:55:36 +01:00
Rémi Verschelde
c3a6b0f418
Merge pull request #51433 from Calinou/spatialmaterial-improve-simple-parallax
2021-11-16 14:43:49 +01:00
Rémi Verschelde
4103b0b7d8
Merge pull request #50823 from fbcosentino/3d-material-overlay
2021-11-16 08:21:18 +01:00
Fernando Cosentino
cc8846bef6
Added material_overlay property to MeshInstance
...
Applying overlay materials into multi-surface meshes currently
requires adding a next pass material to all the surfaces, which
might be cumbersome when the material is to be applied to a range
of different geometries. This also makes it not trivial to use
AnimationPlayer to control the material in case of visual effects.
The material_override property is not an option as it works
replacing the active material for the surfaces, not adding a new pass.
This commit adds the material_overlay property to GeometryInstance
(and therefore MeshInstance), having the same reach as
material_override (that is, all surfaces) but adding a new material
pass on top of the active materials, instead of replacing them.
Implemented in rasterizer of both GLES2 and GLES3.
2021-11-15 23:50:34 +00:00
Rémi Verschelde
86e0a0674a
Merge pull request #54330 from LennyPhoenix/lennyphoenix-patch-1
2021-11-15 23:36:12 +01:00
Rémi Verschelde
6c0afa470e
Merge pull request #54435 from robfram/hidden-tile-map-light-occlusion
2021-11-15 23:29:04 +01:00
Rémi Verschelde
89792e5c49
Merge pull request #54921 from lawnjelly/portals_roaming_margin
2021-11-15 22:45:46 +01:00
vdyotte
30f359ee3c
fix hardcoded raycast distance with viewport object picking
...
having the raycast distance hardcoded to `10000` caused input events
to not be registered in very large 3D scenes.
This resolves the issue by using the cameras far distance instead.
Creating the more predictable behavior of if an object is visible,
it will be picked by the viewport.
resolves : #49735
(cherry picked from commit 02b6bbc5df
)
2021-11-15 16:31:25 +01:00
Lightning_A
086db0bf9f
Scrollwheel (w/o ctrl) to zoom, mouse warping when panning
...
Now uses Ctrl + Scrollwheel for vertical scrolling
Ctrl + Shift Scrollwheel for horizontal scrolling
Also converts some macros to constants
(cherry picked from commit 13ba788b63
)
2021-11-15 16:10:00 +01:00
lawnjelly
788f075b44
Portals - Allow user to set roaming expansion margin
...
Previously a crude metric was used to decide on the roaming expansion margin, but it created unexpected results in some scenarios. Instead this setting is exposed to the user via the RoomManager, allowing them to tailor it to the world size, room sizes, roaming objects sizes and the speeds of movement.
2021-11-12 15:46:04 +00:00
Rémi Verschelde
5752457854
Merge pull request #54911 from akien-mga/3.x-modules-check-enabled
2021-11-12 14:49:39 +01:00
Rémi Verschelde
6f4858f184
Modules: Make sure to include modules_enabled.gen.h
where needed
...
Fixes #51677 .
Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
2021-11-12 13:45:33 +01:00
Haoyu Qiu
936832d59c
Add methods to remove theme overrides
2021-11-11 18:23:37 +08:00
Hendrik Brucker
97074dcf95
Add GradientTexture2D
...
Co-authored-by: Mariano Javier Suligoy <marianognu.easyrpg@gmail.com>
Co-authored-by: Andrii Doroshenko <xrayez@gmail.com>
2021-11-10 19:00:40 -07:00
PouleyKetchoupp
1560c8b5aa
Fix test_move reporting collision when touching another body
...
Reporting rest collision information is needed for move_and_collide and
move_and_slide so floor detection can be done properly, but in the case
of just testing the motion for collision, it makes sense to return false
if the body is able to move all along the path without being stopped.
Updated the logic in test_move and clarified the documentation for
test_move and move_and_collide.
2021-11-10 11:07:32 -07:00
Haoyu Qiu
74e8d5c7bd
Fix AnimationTree function call track loop
2021-11-10 14:28:27 +08:00
PouleyKetchoupp
b93aeec4a2
Fix errors in KinematicBody when floor is destroyed or removed
...
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.
In 2D, there is no change in behavior (just no more errors).
In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.
2021-11-09 15:15:40 -07:00
Pedro J. Estébanez
a02bb2b598
Fix detection of non-default and overridden property values in scenes
2021-11-09 15:08:22 +01:00
Rémi Verschelde
1f8497d281
Merge pull request #53411 from RandomShaper/ubershaders_3.x
2021-11-09 13:12:44 +01:00
Pedro J. Estébanez
4c710780d4
Implement async shader compilation plus caching for GL ES 3
...
Async. compilation via ubershader is currently available in the scene and particles shaders only.
Bonus:
- Use `#if defined()` syntax for not true conditionals, so they don't unnecessarily take a bit in the version flagset.
- Remove unused `ENABLE_CLIP_ALPHA` from scene shader.
- Remove unused `PARTICLES_COPY` from the particles shader.
- Remove unused uniform related code.
- Shader language/compiler: use ordered hash maps for deterministic code generation (needed for caching).
2021-11-09 12:19:12 +01:00
Rémi Verschelde
f9174d1c28
Merge pull request #54625 from bruvzg/surrogates
2021-11-09 00:08:28 +01:00
Rémi Verschelde
8923e2d449
Merge pull request #54038 from nekomatata/fix-soft-body-memory-corruption-3.x
2021-11-09 00:01:00 +01:00
Rémi Verschelde
bee67513fb
Merge pull request #54033 from nekomatata/fix-collision-mouse-exit-error-3.x
2021-11-09 00:00:47 +01:00
Rémi Verschelde
4b4e92b3d4
Merge pull request #52944 from RandomShaper/property_pin_control_natural_3.x
2021-11-08 18:53:25 +01:00
Pedro J. Estébanez
4dba25b3ff
Add property value pinning
2021-11-08 17:42:27 +01:00
Rémi Verschelde
5f87d5ebea
Merge pull request #54385 from Calinou/colorpicker-overbright-indicator-tweak-icon-3.x
2021-11-08 13:15:35 +01:00
Pedro J. Estébanez
76b7d23a10
Unify determination of default property values
2021-11-08 11:17:49 +01:00
Hugo Locurcio
cc2b6acbd2
Improve the appearance of simple parallax in SpatialMaterial
...
This uses offset limiting to avoid distortion in the distance,
and makes simple (non-deep) parallax more usable overall.
2021-11-07 00:58:04 +01:00
Josh Jones
7df8bd6b85
Fix request headers being included in response.
2021-11-06 12:56:25 -07:00
bruvzg
262ec9033a
Implement limited surrogate pairs support for platforms with 16-bit wchar_t.
2021-11-06 11:55:06 +02:00
PouleyKetchoupp
ec0dc93083
Fix errors with invalid bone node path in Polygon2D
...
NodePath properties are designed to be relative to the given node, so
validity checks are failing in the editor for Polygon2D nodes, which are
relative to the Skeleton2D node rather than the Polygon2D node.
Fixed by saving bone paths as String properties instead of NodePath.
Shouldn't cause a difference for performance since NodePath properties
are technically saved as String anyway.
(cherry picked from commit 8d9619ad46
)
2021-11-03 17:31:10 +01:00
Yuri Sizov
ec15227be8
Prevent MeshDataTool from crashing due to invalid bones/weights arrays
2021-11-02 16:52:36 +03:00
Michael Alexsander
d5adb9e4b4
Fix uninteractable singular tab in TabBar
...
(cherry picked from commit 96fdb030ec
)
2021-10-31 23:10:47 +01:00
robfram
cf9220b7d5
Only visible TileMaps should add light occluders
2021-10-30 23:15:07 +02:00
Hugo Locurcio
cb441dd9eb
Tweak overbright indicator icon to be more visible on white background
...
An outline is now present on all sides to ensure it's more visible
when the "new" color (on the right of a ColorPicker) is overbright.
2021-10-29 16:20:40 +02:00
lawnjelly
ab76cd6ff2
Faster editor line drawing - Path2D and draw_line
...
Changes the Path2D drawing to use POLYLINE instead of thick lines.
Add a path to translate thick lines (that are not using anti-aliasing) to draw as polygons instead. This should be faster because polygons can be batched.
2021-10-29 12:40:24 +01:00
Rémi Verschelde
14ef65e49b
Merge pull request #54348 from akien-mga/3.x-clang-format-dont-align-operands
2021-10-28 15:43:15 +02:00
Rémi Verschelde
1b65550ec7
clang-format: Various fixes to comments alignment from clang-format
13
...
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 14:50:32 +02:00
Rémi Verschelde
42d385b312
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Lenny Critchley
3d1249a520
Add error condition for Control EXIT_TREE notif
2021-10-28 00:26:57 +01:00
Rémi Verschelde
187f293189
Merge pull request #54154 from bjauny/fix_areanotification
2021-10-27 20:38:55 +02:00
Bastien JAUNY
a6ca61797c
Checking validity of world reference before using it. Fix #54094 .
2021-10-27 19:32:44 +02:00
Haoyu Qiu
23c64fc43c
Fix RichTextLabel underline appearance when inside fill tag
2021-10-27 21:04:20 +08:00
Yuri Sizov
b3fc278dcf
Ignore property groups and categories in GDScript code completion
2021-10-26 20:01:49 +03:00
Yuri Sizov
7fe0dab69b
Add focus font color to Button and derivatives
2021-10-26 17:40:51 +03:00
kobewi
cef504b955
Fix multiple definitions of Listener2D
...
(cherry picked from commit 6b68445e4d
)
2021-10-26 13:34:33 +02:00
Rémi Verschelde
8ff437822a
Control: Rename Input
group that confuses GDScript completion
...
Fixes #47926 .
2021-10-25 22:07:20 +02:00
Zae
a1b282cc16
Fix unexpected crashes in notification
...
(cherry picked from commit 924c2078da
)
2021-10-25 11:16:59 +02:00
Anton Christoffersson
35eeafdb0c
Fixes crash in caused by calling ColorPickerButton.propagate_notification(33)
2021-10-25 08:47:44 +02:00
Rémi Verschelde
62f56af694
Merge pull request #54146 from akien-mga/3.x-cherrypicks
2021-10-23 18:34:23 +02:00
Rémi Verschelde
5a48cba649
Merge pull request #54152 from bjauny/fix_treenotification
2021-10-23 18:33:32 +02:00
Bastien JAUNY
e74db1de23
#54143 Fix potential null pointer dereference
2021-10-23 14:47:02 +02:00
Sean Kim
378ca68dc1
Fix potential nullptr dereference in CanvasLayer
...
* Changed another instance of ERR_FAIL_COND in the same file to
ERR_FAIL_NULL_MSG instead.
* Checked for potential access of the viewport pointer elsewhere in same
file.
Fixes #54098
(cherry picked from commit 497b00a937
)
2021-10-23 11:57:52 +02:00
Kemikal1
fa2feb9bec
Change the unreacheable return value of shape_find_owner()
...
(cherry picked from commit 563d3dbf94
)
2021-10-23 11:57:10 +02:00
kobewi
f0dabe4ac5
Fix MeshInstance2D rect
...
(cherry picked from commit 1a347e9cf3
)
2021-10-23 11:54:55 +02:00
Robin Arys
0dcf1e3a45
Fix Tabs crash where it still tries to detect the clicked tab even if there are none
...
(cherry picked from commit 2203670ccc
)
2021-10-23 11:53:58 +02:00
Haoyu Qiu
5366743454
Fix RichTextLabel meta link detection when used inside a fill tag
2021-10-22 16:20:56 +08:00
Rémi Verschelde
2c548d5005
Merge pull request #54049 from rxlecky/baked-lightmap-add-no-root-error-53774
2021-10-21 13:51:30 +02:00
SeleckyErik
98c0ffb749
Add BAKE_ERROR_NO_ROOT to BakedLightmap
...
Add new error type to BakeError to signalise that there is no root node to
start baking from.
Document the new error type, as well as BAKE_ERROR_NO_LIGHTMAPPER.
2021-10-21 13:32:03 +02:00
Rémi Verschelde
b7ded89fe9
Merge pull request #54057 from skimmedsquare/procedural-sky-thread-done-crash-53621
2021-10-21 12:00:07 +02:00
Sean Kim
8de5b78a97
Fix crash on null image ref in ProceduralSky
2021-10-20 22:55:08 -07:00
Haoyu Qiu
7e6e6c871b
Make RichTextLabel honor content margin when drawing font shadow
2021-10-21 11:30:45 +08:00
PouleyKetchoupp
67635bfcc2
Fix SoftBody memory corruption when switching mesh at runtime
...
When switching the mesh at runtime, the physics server wasn't properly
updated with the new mesh. Now we keep track of the soft body mesh to
make sure everything is properly initialized on pre-draw.
Also cleaned a few things around private methods.
2021-10-20 10:52:38 -07:00
PouleyKetchoupp
b4b94ac8a0
Fix errors in mouse detection when removing collision object from tree
...
Now behaves the same way as ui elements, mouse exit is skipped when the
object is removed from the tree.
2021-10-20 09:01:26 -07:00
Haoyu Qiu
37ef6036d0
Add missing cache clear in RichTextLabel::_process_line
2021-10-20 23:46:57 +08:00
Hugo Locurcio
dc3b614a6a
Tweak AudioStreamPlayer3D property hints for usability
...
This also improves the documentation for the `max_distance` property.
(cherry picked from commit b383181851
)
2021-10-18 11:24:42 +02:00
Rémi Verschelde
f6784e18d1
Merge pull request #53848 from MaxLap/backport_doc_shape_signals
2021-10-15 18:54:43 +02:00
Maxime Lapointe
f3002c62b7
Improve area/body_shape_entered/exited signals parameter names and doc
...
Fix some typoed names from the doc
Add _index to "index" parameters of *_shape_* signals, this is both in doc and in the template. This makes the code, signature and doc easier to understand
Add method to get Node from the _index params of those signals. This was not as easy to find as one would expect. Putting this information where it is needed will help.
2021-10-15 11:28:17 -04:00
floppyhammer
0b5724514d
Fix bilinear TextureProgressBar with nine patch enabled
...
(cherry picked from commit a238816f0b
)
2021-10-15 12:51:42 +02:00
Red Headphone
066f214654
no limit of negative value for engine_force (VehicleBody class)
...
(cherry picked from commit fff70a6427
)
2021-10-15 12:51:42 +02:00
Fabio Alessandrelli
6c4bb3fc4a
Revert HTTPRequest gzip compression support.
...
Partial revert of commit c1135cf006
.
2021-10-14 12:51:37 +02:00
Yuri Sizov
b02c61ddb1
Ignore OS specific values (constants, project settings, properties)
...
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2021-10-10 23:40:32 +03:00
Michael Alexsander
eeb6652436
Fix invisible tabs not being ignored in Tabs
...
(cherry picked from commit 3c5103ac1d
)
2021-10-10 12:27:51 +02:00
Haoyu Qiu
52ebe5993e
Use loop instead of recursion when clearing proximity groups
...
(cherry picked from commit 6072f38bb1
)
2021-10-10 12:27:51 +02:00
Hugo Locurcio
7dcefa7c1b
Add a warning for Timer nodes with very low wait times
...
Very low wait times behave in unpredictable ways depending on the
rendered frame rate. This is because the timeout signal is only emitted
once per rendered frame (or physics frame, depending on the timer's
process mode).
2021-10-09 11:36:03 +02:00
Rémi Verschelde
c00848ae03
Merge pull request #53572 from kleonc/scene-tree-free-objects-queued-during-destruction-3x
2021-10-08 18:10:45 +02:00
kleonc
ae96da28d8
Delete objects enqueued for deletion during SceneTree destruction
2021-10-08 16:38:38 +02:00
Rémi Verschelde
06fc2378de
Merge pull request #51491 from Calinou/glow-add-high-quality-mode-3.x
...
Add high quality glow mode (3.x)
2021-10-08 07:47:07 +02:00
Haoyu Qiu
ff27b994cd
Re-prepare VisualServer if SoftBody mesh changed
2021-10-06 23:25:14 +08:00
Haoyu Qiu
52a840b9c9
Fix crash when tooltip_request_func object is freed
2021-10-06 15:33:31 +08:00
PouleyKetchoupp
00d4a30b05
Fix editable children errors when packing scene tree at runtime
...
When packing a scene node which is not the root, errors where caused
by internal checks in is_editable_instance method.
This check can be safely made outside instead.
(cherry picked from commit 2f6cf3b8a8
)
2021-10-06 09:29:31 +02:00
Haoyu Qiu
0f18f225ee
Fix crash when deleting Camera2D and Viewport assigned to it
2021-10-06 13:41:21 +08:00
Rémi Verschelde
77f52bdf99
Merge pull request #52137 from Ansraer/3.x-2d-scale-factor
2021-10-05 19:12:19 +02:00
Rémi Verschelde
d35fccb651
Merge pull request #52365 from jitspoe/3.x.viewport_error_fix
...
[3.x] Fix ViewportTexture error when viewport is used from a child scene
2021-10-05 18:51:51 +02:00
Rémi Verschelde
bd7bea2087
Merge pull request #53233 from metinc/fix-animated-sprite-precision-error
2021-10-05 15:23:51 +02:00
Ansraer
d44aa61735
implement better ui scaling
2021-10-05 14:30:38 +02:00
kobewi
f9720a9bf2
Add Listener2D
2021-10-05 13:29:59 +02:00
jitspoe
d2637ca950
Fix ViewportTexture error when viewport is used from a child scene
...
Fix invalid errors when a separate child scene file contains a viewport and
that viewport is used for a texture in the current scene.
Fixes #27790 .
2021-10-05 12:17:42 +02:00
Rémi Verschelde
69437eb746
Merge pull request #53012 from lawnjelly/portals_unload_reason
2021-10-05 12:00:43 +02:00
Rémi Verschelde
58fe0bd2cb
Merge pull request #53052 from kleonc/animated-sprites-centered-rendering-3x
2021-10-05 11:22:26 +02:00
Michael Alexsander
a5214f437f
Fix Tabs
offset overreaching when scrolling fast
...
(cherry picked from commit 0dd65fff3b
)
2021-10-05 10:53:06 +02:00
Rémi Verschelde
72a922eb4e
Merge pull request #53300 from Calinou/viewport-tweak-configuration-warning-3.x
2021-10-04 20:31:05 +02:00
Rémi Verschelde
55c9cc21e9
Merge pull request #53397 from pycbouh/theme-improve-change-propagation-3.x
...
[3.x] Make `Theme` report property list changes less often, and other backports
2021-10-04 18:05:16 +02:00
Yuri Sizov
457d48a1f1
Make Theme report property list changes less often
2021-10-04 18:05:23 +03:00
Yuri Sizov
98cf645258
Expose API to retrieve Theme's default font
2021-10-04 17:44:53 +03:00
Yuri Sizov
cd45a70f2d
Reorganize Theme resource code for better maintainability
2021-10-04 17:09:32 +03:00
Florian Kothmeier
5185cd4f80
Fix AnimationNodeStateMachinePlayback start() on nonexistent node
...
(cherry picked from commit b6e7df56cb
)
2021-10-04 15:22:16 +02:00
Rémi Verschelde
2b642d68c1
Merge pull request #52752 from Pineapple/fix-richtextlabel-character-offsets
2021-10-04 08:52:26 +02:00
kleonc
e2e149f4df
Fix rendering centered odd-size texture in AnimatedSprite/AnimatedSprite3D
2021-10-03 14:15:21 +02:00
Hugo Locurcio
c6617e956c
Tweak the Viewport configuration warning to mention 2×2 size requirement
2021-10-01 16:43:33 +02:00
boruok
85dd970b81
[3.x] Fix AtlasTexture get_data crash
2021-09-30 22:22:10 +09:00
Metin Celik
edcb7b8129
Add half frame to floor()
2021-09-29 20:03:07 +02:00
Duarte David
a4fecbb0da
Fixes the normals of SphereMesh when the sphere/hemisphere is oblong
...
(cherry picked from commits f4ac08a182
and 7d53755ca7
)
2021-09-29 10:55:51 +02:00
Rémi Verschelde
60bcc91dd5
Merge pull request #53190 from nekomatata/software-skinning-aabb-optimization
2021-09-29 10:34:55 +02:00
Haoyu Qiu
eab1e228c8
Fix LineEdit undo crash
...
Make sure all related member variables are initialized before creating
the first undo state.
2021-09-29 13:52:40 +08:00
PouleyKetchoupp
304102f66f
Optimize AABB calculation in software skinning
...
Using min/max instead of regular AABB for optimal processing.
2021-09-28 10:11:04 -07:00
Rémi Verschelde
72950684c8
Merge pull request #53157 from boruok/fix-atlas-texture-return-null
2021-09-28 18:53:53 +02:00
boruok
768cff7c02
fix atlas texture return null
2021-09-28 16:34:00 +09:00
Rémi Verschelde
d4d4603827
Merge pull request #53144 from nekomatata/software-skinning-aabb
...
Update mesh AABB when software skinning is used
2021-09-28 07:27:23 +02:00
PouleyKetchoupp
941cff4157
Update mesh AABB when software skinning is used
...
Not updating the mesh properly can cause rendering issues in some cases,
like shadows not updating properly.
2021-09-27 11:56:58 -07:00
Rémi Verschelde
ac01b1cb1c
Revert "Fixes the normals of SphereMesh when the sphere/hemisphere is oblong"
...
This reverts commit c4d0074aae
.
It caused regression #52965 .
2021-09-27 18:27:55 +02:00
Matthew Newall
e01d609c02
Updated Tabs to not update excessively
...
(cherry picked from commit 082f924566
)
2021-09-27 18:09:47 +02:00
Michael Alexsander
b4d6afb7ad
Expose TabContainer
's tab hidding for scripts
...
(cherry picked from commit 7ce02b642e
)
2021-09-27 18:06:36 +02:00
Yuri Sizov
020807dc0f
Correctly calculate position of the folding arrow in Tree
2021-09-25 02:01:35 +03:00
Laurenz Reinthaler
aad01cd0c6
Fix VisibilityEnabler2D throwing a signal error when process_parent or physics_process_parent are enabled
2021-09-24 19:03:10 +02:00
lawnjelly
279e6f65cd
Portals - add reason string to unload message
...
To help users identify conditions that are causing room system invalidation, a reason message is passed to the unload function and logged.
2021-09-24 14:00:24 +01:00
Rémi Verschelde
044cafc31a
Merge pull request #52894 from laws65/3d-skeleton-bone-fix
2021-09-23 12:10:26 +02:00
Rémi Verschelde
08887fd391
Merge pull request #52955 from nekomatata/fix-kinematic-collision-reference-3.x
2021-09-23 10:26:17 +02:00
PouleyKetchoupp
8b562543df
Don't override KinematicCollision reference when still in use in script
...
In case the reference is stored in script, create a new instance to
avoid overriding the previous values.
Otherwise, re-use the reference as before to avoid extra allocations.
2021-09-22 18:15:03 -07:00
Haoyu Qiu
45b4304f10
Fix crash in Tween.follow_property
...
Check `p_object` for null before using it.
2021-09-22 13:38:21 +08:00
Rémi Verschelde
dd0ee48728
Merge pull request #52900 from akien-mga/3.x-cherrypicks
2021-09-21 21:40:47 +02:00
John Wigg
d484e30247
Fix y billboard shear when rotating camera
...
Fixes shear effect with `BILLBOARD_FIXED_Y` when the camera is rotated around the z-axis by rotating the mesh correctly into view space.
Also removes shearing effects that occur when rotating the mesh by excluding the model rotation and scale from the billboard matrix.
(cherry picked from commit d3850a0954
)
2021-09-21 20:33:11 +02:00
PouleyKetchoupp
ad5e70cde4
Fix moving platforms with ray shapes
...
In the case of ray shapes, the body RID used to apply platform velocity
wasn't properly set.
2021-09-21 09:00:23 -07:00
Espeute Clement
a259112d6e
Fixed Animation Playback Track not seeking properly
...
Fixes #38093 .
(cherry picked from commit aa72af4f46
)
2021-09-21 17:15:00 +02:00
skysphr
f53294f874
Added increment_pressed and decrement_pressed icons to scrollbars
...
(cherry picked from commit e27ab2708f
)
2021-09-21 17:14:59 +02:00
kobewi
44a56c9742
Add offset for TextureProgress progress texture
...
(cherry picked from commit e78ee616f7
)
2021-09-21 17:14:59 +02:00
gyroninja
9f0d7b70fd
Fail at instantiating if the root node is instantiated
...
(cherry picked from commit f400c9239e
)
2021-09-21 17:14:58 +02:00
Silc 'Tokage' Renew
fa45aa22cb
Fixed seeking behavior of property track with discrete interpolation
...
(cherry picked from commit 6613d9cf67
)
2021-09-21 17:14:57 +02:00
laws65
d1bacb53fd
Prevent being able to set bone's parent as itself
2021-09-21 22:06:03 +09:30
Rémi Verschelde
be6b7b4f9f
Merge pull request #52475 from tcoxon/fix_43733_3.x
...
Prevent shaders from generating code before the constructor finishes. [3.x]
2021-09-21 13:53:17 +02:00
Tom Coxon
9e9bac1549
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.
2021-09-21 11:47:51 +01:00
Rémi Verschelde
22aab6be1c
Merge pull request #51796 from RandomShaper/dangling_obj_release_3.x
...
[3.x] Promote object validity checks to release builds
2021-09-21 11:48:11 +02:00
Pedro J. Estébanez
26edc6cd41
Promote object validity checks to release builds
...
Extra:
- Optimized the debug-only check about why the object is null to determine if it's because it has been deleted (the RC is enough; no need to check the ObjectDB).
- Because of the previous point. the debugger being attached is not required anymore for giving the "Object was deleted" error; from now, it only matters that it's a debug build.
- `is_instance_valid()` is now trustworthy. It will return `true` if, and only if, the last object assigned to a `Variant` is still alive (and not if a new object happened to be created at the same memory address of the old one).
- Replacements of `instance_validate()` are used where possible `Variant::is_invalid_object()` is introduced to help with that. (GDScript's `is_instance_valid()` is good.)
2021-09-21 10:39:04 +02:00
Rémi Verschelde
b37776fa2f
Merge pull request #52591 from timothyqiu/error-macros
...
[3.x] Remove do{ } while(0) wrapper around error macros
2021-09-21 10:38:34 +02:00
Rémi Verschelde
1ceba6e1b0
Merge pull request #52585 from Calinou/screen-texture-improve-no-sampling-error
2021-09-20 16:25:16 +02:00
Silc 'Tokage' Renew
a95b015968
fixed AnimationNodeTransition when xfade time is zero
...
(cherry picked from commit 02d8166427
)
2021-09-20 13:19:41 +02:00